From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97210139083 for ; Thu, 7 Dec 2017 08:08:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C381E0F24; Thu, 7 Dec 2017 08:08:17 +0000 (UTC) Received: from smarthost01a.mail.zen.net.uk (smarthost01a.mail.zen.net.uk [212.23.1.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 03911E0F15 for ; Thu, 7 Dec 2017 08:08:16 +0000 (UTC) Received: from [81.108.251.46] (helo=mail.digimed.co.uk) by smarthost01a.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1eMrE6-0006T4-TZ for gentoo-user@lists.gentoo.org; Thu, 07 Dec 2017 08:08:15 +0000 Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id EE65567129 for ; Thu, 7 Dec 2017 08:08:13 +0000 (GMT) Date: Thu, 7 Dec 2017 08:08:12 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] New profile 17: How urgent is the rebuild of world technically? Message-ID: <20171207080812.022c11f4@digimed.co.uk> In-Reply-To: <20171206235933.GB5249@tp> References: <20171203021528.xmulbskbadhglyda@solfire> <73314087-5fa1-d75f-8a2e-a74857026f9c@gentoo.org> <20171203032655.tg6xodvlb3i5xpm3@solfire> <20171206235933.GB5249@tp> Organization: Digital Media Production X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/GWwqybLlTMhkhiX5Na5V95m"; protocol="application/pgp-signature" X-Originating-smarthost01a-IP: [81.108.251.46] Feedback-ID: 81.108.251.46 X-Archives-Salt: 61f0a7e9-ef90-40f8-bea9-4bf7e31454f1 X-Archives-Hash: c7013d4bfb5ce9dc6a1e678730dfcfc7 --Sig_/GWwqybLlTMhkhiX5Na5V95m Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, 7 Dec 2017 00:59:33 +0100, Frank Steinmetzger wrote: > > How does a restarted emerge @world recognizes packages, which are > > already compiled according to the new standard? =20 >=20 > I =E2=80=9Ccircumvent=E2=80=9D those questions by doing: > emerge -pveD world > worldlist > emerge -1O $(cat worldlist) >=20 > If the system for whatever reason fails and I need to interrupt the > merge, I simply remove the lines from worldlist that have already been > built and then repeat the last command. Plus I can exclude some > packages that don=E2=80=99t need a rebuild: -bins, -docs, virtuals, most = perl > and tex packages and so on. This saves a bit of time on the slower > laptop. I wrote a script to handle this some years ago, and it has come in handy this week. It emerges all packages that have not been done since a given time. In this case, I run mergeolderthan -r glibc since glibc was emerged right before the world emerge #!/bin/bash EMERGE_ARGS=3D"--oneshot --keep-going" usage() { echo -e "\nUsage: $(basename $0) [-f file] [-r category/package[-version] = [-h]" echo " -f re-emerge all packages older than this file" echo " -r re-emerge all packages older than this package" echo " -h Show this text" echo -e "\n All other options are passed to the emerge command" echo -e "$*" exit } while getopts f:r:pvlh ARG; do case "${ARG}" in f) REFFILE=3D${OPTARG} ;; r) REFFILE=3D$(ls -1 /var/db/pkg/${OPTARG}*/environment.bz2 | head -n 1) = ;; p) EMERGE_ARGS=3D"${EMERGE_ARGS} --pretend" ;; v) EMERGE_ARGS=3D"${EMERGE_ARGS} --verbose" ;; l) LIST=3D"y" ;; h) usage ;; esac done shift $(expr ${OPTIND} - 1) [[ "${REFFILE}" ]] || usage "\nYou must specify a reference with -f or -r\n" [[ -f ${REFFILE} ]] || usage "\n${REFFILE} not found\n" PKGLIST=3D$(mktemp -t mergeolderthan.XXXXXXXX) emerge -ep --exclude gentoo-sources @world | grep -v sys-kernel/gentoo-sour= ces | awk -F] '/^\[ebuild/ {print $2}' | awk '{print $1}' | while read PKG;= do if [[ /var/db/pkg/${PKG}/environment.bz2 -ot ${REFFILE} ]]; then echo "=3D${PKG}" >>$PKGLIST fi done if [[ "${LIST}" ]]; then cat ${PKGLIST} && rm -f ${PKGLIST} else cat ${PKGLIST} | xargs --no-run-if-empty emerge ${EMERGE_ARGS} && rm -f ${= PKGLIST} fi --=20 Neil Bothwick Hickory Dickory Dock, The mice ran up the clock, The clock struck one, The others escaped with minor injuries. --Sig_/GWwqybLlTMhkhiX5Na5V95m Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAloo9uwACgkQ92eFu0QS MJjByxAApvdI46/6gVhKMu3NzRujWe/NS9xLw6N4a/ZXmZcIoUSdonzbw86SRr6H 4bHXykgiCXXv+HQx7xbpp19yL3NK74FxsNNxI/PAd4fzSHQ3Nf+XXeQvusJ87qWS LXKJfOuz8mLlZgGHFEyngaUN0HKeY8lMw2y4Fr2Q4unxlOIvmO4pFXZ4SxazpoHB EInGP8BgiKF7PdKtYVDvmRSXA9HMVsZOV8rHiyNhFFRQwytnm02nDvW1SizligDd 1L6k8PfizShnp3FbIRlhlR41W+dwRkrd2oz8iVQItTu+xljrLHYpOJDEnD/5m7EO JG9rdwOodQIxM9vSJqelUreLQko7C+vNBF78aPjqzoqk4yxvNEjTk1LSPpXFtw3Y iFClAsI0jVisQ2bWOfwzoyzVQUDsHAS5IZuAb6vJWzRkb4i6Yl8xsYd5yk9E7eV7 T16R0bNVrOyjnikFXXgv2DAeUeM90e9ALc13tL6Gq8N4VRYHYklOSwILuZpVq5WZ mlk2cKV7WyG8IPfuAIPib9WaMsuQe+kTpn43li4yoKHRU+Z1+2VL5Du6BQKnlT92 nTzL/yPPI15N73RdBBD7u1FmRcSIRzXGwgBGVFkO2KngMvP33qkS6EJGstsOt5Nr SAlnPlte4B3hhcAhUXhHa4l118U10RW5PU/YI5UWK+4nl/M0Lko= =RDQs -----END PGP SIGNATURE----- --Sig_/GWwqybLlTMhkhiX5Na5V95m--