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 1F10C158086 for ; Wed, 13 Oct 2021 00:29:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5D909E0827; Wed, 13 Oct 2021 00:29:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41FEEE0827 for ; Wed, 13 Oct 2021 00:29:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3469B342FFB for ; Wed, 13 Oct 2021 00:29:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D7E3EA for ; Wed, 13 Oct 2021 00:29:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1634084978.8e7f2dd261654f4876ac16cf9f50b24003f4f7e2.sam@gentoo> Subject: [gentoo-commits] data/gentoo-news:master commit in: 2021-09-29-possible-failure-to-preserve-libraries/ X-VCS-Repository: data/gentoo-news X-VCS-Files: 2021-09-29-possible-failure-to-preserve-libraries/2021-09-29-possible-failure-to-preserve-libraries.en.txt X-VCS-Directories: 2021-09-29-possible-failure-to-preserve-libraries/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8e7f2dd261654f4876ac16cf9f50b24003f4f7e2 X-VCS-Branch: master Date: Wed, 13 Oct 2021 00:29:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 865fb294-c188-4450-aa74-5ab8d0c5c401 X-Archives-Hash: 4e4c1555e46314829b5b0cf6b9df36d4 commit: 8e7f2dd261654f4876ac16cf9f50b24003f4f7e2 Author: Sam James gentoo org> AuthorDate: Wed Oct 13 00:29:17 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Oct 13 00:29:38 2021 +0000 URL: https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=8e7f2dd2 2021-09-29-possible-failure-to-preserve-libraries: clarify world upgrade Signed-off-by: Sam James gentoo.org> ...9-possible-failure-to-preserve-libraries.en.txt | 27 +++++++++++++--------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/2021-09-29-possible-failure-to-preserve-libraries/2021-09-29-possible-failure-to-preserve-libraries.en.txt b/2021-09-29-possible-failure-to-preserve-libraries/2021-09-29-possible-failure-to-preserve-libraries.en.txt index cfff106..7154bc4 100644 --- a/2021-09-29-possible-failure-to-preserve-libraries/2021-09-29-possible-failure-to-preserve-libraries.en.txt +++ b/2021-09-29-possible-failure-to-preserve-libraries/2021-09-29-possible-failure-to-preserve-libraries.en.txt @@ -44,7 +44,7 @@ Fixing a broken system is not always straightforward. It is strongly recommended to take a backup of your full system before proceeding, as well as a copy of /var/db/pkg (the VDB): -1. A tool has been developed [5] to attempt to fix the consistency +Step 1. A tool has been developed [5] to attempt to fix the consistency of the Portage database. Using this tool to modify the VDB is NOT mandatory (read the full news item before proceeding) - you can skip to Step 2 if you wish, but fixing the integrity of the VDB @@ -72,23 +72,28 @@ as well as a copy of /var/db/pkg (the VDB): # into your real /var/db/pkg/ directory tree. ``` -2. Attempt to rebuild the affected packages, first upgrading +Step 2. Attempt to rebuild the affected packages, first upgrading app-misc/pax-utils to the latest version: ``` $ emerge --ask --verbose --oneshot ">=app-misc/pax-utils-1.3.3" $ emerge --ask --verbose --oneshot --usepkg=n $(grep -v '#' broken_vdb_packages) ``` -Given that there are possible other side-effects of the corruption/bug, -it is strongly recommended that if any corruption is detected, all -packages on the system should be rebuilt, after following the above -steps: -``` -$ emerge --ask --emptytree --usepkg=n @world -``` + It's possible that the relevant versions have disappeared from the tree, so + if the emerge command fails, please attempt a normal world upgrade. + +Step 3. Given that there are possible other side-effects of the corruption/bug, + it is strongly recommended that if any corruption is detected, all + packages on the system should be rebuilt, after following the above + steps: + ``` + $ emerge --ask --emptytree --usepkg=n @world + ``` + + Note that binary packages may need to be discarded given they may + contain corrupt metadata. -Note that binary packages may need to be discarded given they may -contain corrupt metadata. + If no libraries were broken, it is likely safe to skip this step. Please see the wiki [0] for a full description of the background of this problem and handling corner cases such as e.g. already