Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699558 - app-portage/portage-utils-0.81 - qfile prints "plib_registry" lines wrong with --root-prefix /
Summary: app-portage/portage-utils-0.81 - qfile prints "plib_registry" lines wrong wit...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 22:07 UTC by Sławomir Nizio
Modified: 2019-12-28 09:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Nizio 2019-11-07 22:07:48 UTC
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
Comment 1 Sławomir Nizio 2019-11-07 22:08:46 UTC
workaround: --skip-plibreg
Comment 2 Fabian Groffen gentoo-dev 2019-12-27 21:44:15 UTC
just for clarity:

You basically run qfile with "/ /bin/sh", --root-prefix is only useful when you actually set $ROOT.
Comment 3 Larry the Git Cow gentoo-dev 2019-12-27 21:45:53 UTC
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(-)
Comment 4 Larry the Git Cow gentoo-dev 2019-12-28 09:42:39 UTC
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(-)