/lib & /bin consistency

Cardoe wrote this late at night:

One of the things I’ve occasionally bumped into on a system that’s gone south and required some recovery is that tools that exist in /bin and /sbin rely on something in /usr, which is often not mounted at the time.

I was thinking of possibly adding this as a Portage QA check. Basically, anything that is installed into /lib, /lib32, /lib64, /bin, and /sbin get passed through scanelf -Ln or ldd to determine if anything would be outside the scope of those directories and it could be fixed.

Also, if any of the people that build binary packages and then do some tests against them want to add this as a test to their system, I’m sure people would be appreciative.

Leave a Reply