Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611808 - app-portage/gentoolkit-0.3.3: revdep-rebuild not locating plex-media-server package for some installed files
Summary: app-portage/gentoolkit-0.3.3: revdep-rebuild not locating plex-media-server p...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2017-03-05 19:12 UTC by smkbot
Modified: 2020-01-10 04:02 UTC (History)
0 users

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


Attachments
handle directory symlinks (0001-revdep_rebuild-assign.py-handle-directory-symlinks-b.patch,3.59 KB, patch)
2017-03-10 09:40 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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.