Lines 797-805
perlcore() {
Link Here
|
797 |
fi |
797 |
fi |
798 |
} |
798 |
} |
799 |
|
799 |
|
|
|
800 |
no_arch() { |
801 |
[ -z "$NO_ARCH" ] && return |
802 |
rc=0 |
803 |
while read f; do |
804 |
[ -z "$f" ] && continue |
805 |
if [ "$NO_ARCH" != yes ]; then |
806 |
skip= |
807 |
for blacklist in $NO_ARCH; do |
808 |
case $f in |
809 |
*$blacklist) skip=1; break;; |
810 |
esac |
811 |
done |
812 |
[ "$skip" ] && continue |
813 |
fi |
814 |
err "'${f#${STAGEDIR}${PREFIX}/}' is a architecture specific binary file and you have set NO_ARCH. Either remove NO_ARCH or add '$(basename $f)' to NO_ARCH." |
815 |
rc=1 |
816 |
done <<-EOF |
817 |
$(find ${STAGEDIR} -type f \ |
818 |
| xargs file -N \ |
819 |
| grep -E ': ELF .* [LM]SB .*, .*, version [0-9]+ \(FreeBSD\)' \ |
820 |
| cut -f 1 -d :) |
821 |
EOF |
822 |
return $rc |
823 |
} |
824 |
|
825 |
|
800 |
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo" |
826 |
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo" |
801 |
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo" |
827 |
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo" |
802 |
checks="$checks proxydeps sonames perlcore" |
828 |
checks="$checks proxydeps sonames perlcore no_arch" |
803 |
|
829 |
|
804 |
ret=0 |
830 |
ret=0 |
805 |
cd ${STAGEDIR} |
831 |
cd ${STAGEDIR} |