# http://bugs.gentoo.org/4411
abort="no"
for a in "${D}"usr/lib*/*.a ; do
+ [[ ! -e ${a} ]] && continue
s=${a%.a}.so
if [[ ! -e ${s} ]] ; then
s=${s%usr/*}${s##*/usr/}
[[ ${abort} == "yes" ]] && die "add those ldscripts"
# Make sure people don't store libtool files or static libs in /lib
- f=$(ls "${D}"lib*/*.{a,la} 2>/dev/null)
+ f=()
+ for a in "${D}"lib*/*.{a,la} ; do
+ [[ ! -e ${a} ]] && continue
+ f=("${f[@]}" "${a}")
+ done
if [[ -n ${f} ]] ; then
vecho -ne '\a\n'
- vecho "QA Notice: excessive files found in the / partition\a"
- vecho "${f}"
+ vecho "QA Notice: excessive files found in the / partition"
+ for a in "${f[@]}" ; do
+ vecho "${a}"
+ done
vecho -ne '\a\n'
die "static archives (*.a) and libtool library files (*.la) do not belong in /"
fi
# Verify that the libtool files don't contain bogus $D entries.
abort="no"
for a in "${D}"usr/lib*/*.la ; do
+ [[ ! -e ${a} ]] && continue
s=${a##*/}
if grep -qs "${D}" "${a}" ; then
vecho -ne '\a\n'