summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2019-11-03 12:12:02 -0800
committerZac Medico <zmedico@gentoo.org>2019-11-03 12:14:42 -0800
commitae2a76261fd7e519bfbb3b8c4b41aa511d039245 (patch)
treeb4efb8af7052c0424102cedafc9f1531184f9695
parentRevert "install-qa-check.d: handle libtool files and static libs from /" (diff)
downloadportage-ae2a76261fd7e519bfbb3b8c4b41aa511d039245.tar.gz
portage-ae2a76261fd7e519bfbb3b8c4b41aa511d039245.tar.bz2
portage-ae2a76261fd7e519bfbb3b8c4b41aa511d039245.zip
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@gentoo.org>
-rw-r--r--bin/install-qa-check.d/80libraries10
1 files changed, 10 insertions, 0 deletions
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