commit: ae2a76261fd7e519bfbb3b8c4b41aa511d039245 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Sun Nov 3 20:12:02 2019 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Sun Nov 3 20:14:42 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=ae2a7626
Revert "install-qa-check.d: remove check that bans libtool files and static libs from /" This reverts commit 498900e5e51460502d8271f409a4c614a021613b. This change is still being discussed. See: https://archives.gentoo.org/gentoo-portage-dev/message/6e4cfbb0ef9c36dc6511d4f2003cc458 Bug: https://bugs.gentoo.org/699252 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> bin/install-qa-check.d/80libraries | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/install-qa-check.d/80libraries b/bin/install-qa-check.d/80libraries index e59369bf6..d1d2c4fdd 100644 --- a/bin/install-qa-check.d/80libraries +++ b/bin/install-qa-check.d/80libraries @@ -152,6 +152,16 @@ lib_check() { done [[ ${abort} == "yes" ]] && die "add those ldscripts" + # Make sure people don't store libtool files or static libs in /lib + f=$(ls "${ED%/}"/lib*/*.{a,la} 2>/dev/null) + if [[ -n ${f} ]] ; then + __vecho -ne '\n' + eqawarn "QA Notice: Excessive files found in the / partition" + eqawarn "${f}" + __vecho -ne '\n' + die "static archives (*.a) and libtool library files (*.la) belong in /usr/lib*, not /lib*" + fi + # Verify that the libtool files don't contain bogus $D entries. local abort=no gentoo_bug=no always_overflow=no for a in "${ED%/}"/usr/lib*/*.la ; do