I have a hand crafted /var/lib/portage/preserved_libs_registry which I hopefully made right, please confirm (I did it to test a problem with a "script" that uses qfile underneath): # qfile /bin/ls sys-apps/coreutils: /bin/ls # qfile --root-prefix "" /bin/ls sys-apps/coreutils: /bin/ls # qfile --root-prefix "nope" /bin/ls sys-apps/coreutils: /bin/ls --- but: --- # qfile --root-prefix / /bin/ls sys-apps/coreutils: /bin/ls plib_registry plib_registry plib_registry plib_registry plib_registry plib_registry plib_registry plib_registry plib_registry (with -q) # qfile --root-prefix / -q /bin/ls sys-apps/coreutils plib_registry: plib_registry: plib_registry: plib_registry: plib_registry: plib_registry: plib_registry: plib_registry: plib_registry: Reproducible: Always
workaround: --skip-plibreg
just for clarity: You basically run qfile with "/ /bin/sh", --root-prefix is only useful when you actually set $ROOT.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=eddd1df90bc5d27e726c02e8aac8cfa9484ed3a8 commit eddd1df90bc5d27e726c02e8aac8cfa9484ed3a8 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-12-27 21:44:46 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-12-27 21:44:46 +0000 qfile: make qfile_check_plibreg not trigger on an empty file (/) This really is an edge case, as result of a misinterpretation of the -R option. Bug: https://bugs.gentoo.org/699558 Signed-off-by: Fabian Groffen <grobian@gentoo.org> qfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccbfbff3ffb51a9e7783458c9dad3e6d2cb49e29 commit ccbfbff3ffb51a9e7783458c9dad3e6d2cb49e29 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2019-12-28 09:42:05 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2019-12-28 09:42:23 +0000 app-portage/portage-utils-0.83: version bump with bugfixes Drop overshadowed testing versions. Closes: https://bugs.gentoo.org/701968 Closes: https://bugs.gentoo.org/701470 Bug: https://bugs.gentoo.org/701402 Closes: https://bugs.gentoo.org/701392 Closes: https://bugs.gentoo.org/701386 Closes: https://bugs.gentoo.org/700850 Closes: https://bugs.gentoo.org/699558 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Fabian Groffen <grobian@gentoo.org> app-portage/portage-utils/Manifest | 3 +- .../portage-utils/portage-utils-0.74-r1.ebuild | 38 ---------- .../portage-utils/portage-utils-0.81.ebuild | 87 ---------------------- ...utils-0.82.ebuild => portage-utils-0.83.ebuild} | 0 4 files changed, 1 insertion(+), 127 deletions(-)