Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 443590 - sys-apps/portage: Request for automatic QA check for cross / vs. /usr linking (NEEDED entries)
Summary: sys-apps/portage: Request for automatic QA check for cross / vs. /usr linking...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-17 10:12 UTC by Samuli Suominen
Modified: 2012-11-30 02:38 UTC (History)
4 users (show)

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 Samuli Suominen gentoo-dev 2012-11-17 10:12:13 UTC
Now that we udev-ng (fork) is going to be created and some packages will be moved to / from /usr to support it, such as kmod, we need an QA check that checks files in /lib, /lib32, /lib64 for NEEDED entries and prints a warning
at the end of emerge if libraries from / link to libraries in /usr

Otherwise the / will not be maintainable, and it is the main reason that led to this mess we are currently in

As in, the output of `scanelf -n` or possible `objdump` needs to be parsed

This is my main concern with the issues around the udev-ng fork

Thank you!
Comment 1 Zac Medico gentoo-dev 2012-11-29 08:02:09 UTC
We also need to check binaries in /sbin and /bin, right?

Also should't we check /lib* (not just /lib{,32,64}), since we want to get libx32 as in bug #435834?
Comment 2 Zac Medico gentoo-dev 2012-11-30 02:38:30 UTC
If anybody wants to try a patch for this, I'd suggest to do something like our existing "Missing soname symlink(s)" check, which parses the NEEDED.ELF.2 file that's created with scanelf:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=31c9c68d7e96070166fe385141400fa3bcb5950e