Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 611808

Summary: app-portage/gentoolkit-0.3.3: revdep-rebuild not locating plex-media-server package for some installed files
Product: Portage Development Reporter: smkbot
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: handle directory symlinks

Description smkbot 2017-03-05 19:12:24 UTC
revdep-rebuild says this:


$ sudo revdep-rebuild -- -a
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
        Could not save cache: write() argument 1 must be unicode, not str
 * Checking dynamic linking consistency
 * Assign files to packages

 !!! Broken orphaned files: No installed package was found for the following:
        * /usr/lib64/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/_bsddb.so
        * /usr/lib64/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/dbm.so

There is nothing to emerge. Exiting.


However, these files are installed as part of the media-tv/plex-media-server package:



$ sudo equery f plex-media-server | grep -e 'dbm.so' -e '_bsddb.so'
/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/_bsddb.so
/usr/lib/plexmediaserver/Resources/Python/lib/python2.7/lib-dynload/dbm.so




I am using =app-portage/gentoolkit-0.3.2-r1.
Comment 1 Zac Medico gentoo-dev 2017-03-09 17:13:26 UTC
It's using naive string comparison here:

https://gitweb.gentoo.org/proj/gentoolkit.git/tree/pym/gentoolkit/revdep_rebuild/assign.py?h=gentoolkit-0.3.3#n25

The portageq owners command solves this problem by comparing the inode numbers of the files' parent directories.
Comment 2 Zac Medico gentoo-dev 2017-03-10 09:40:58 UTC
Created attachment 466538 [details, diff]
handle directory symlinks

Use a _file_matcher class to make file comparisons work regardless
of directory symlinks.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2017-03-10 17:25:11 UTC
Thanks, Zac, patch looks good, merge please  :)
Comment 5 Joonas Niilola gentoo-dev 2020-01-10 04:02:30 UTC
The original issue should be solved by now. Closing. Please reopen or make a new bug if it still repeats.