abuild: accept lib64 as an option to ignore /lib64 checks

this is required when we package stuff with compatibility to glibc like
libc6-compat
This commit is contained in:
Leo 2020-07-20 14:03:52 -03:00
parent a3eb828a7c
commit ba3e575d37

View File

@ -755,6 +755,9 @@ postcheck() {
# Alpine Linux as a musl libc distro does not use /lib64 or /usr/lib64 under
# any circunstance, packages installing to it are 100% sure a packaging error
# except when we are doing GNU Libc compatibility which should be rare enough
# to warrant a lib64 check
if ! options_has "lib64"; then
if [ -e "$dir"/lib64 ]; then
error "Packages must not put anything under /lib64, use /lib instead"
e=1
@ -762,6 +765,7 @@ postcheck() {
error "Packages must not put anything under /usr/lib64, use /usr/lib instead"
e=1
fi
fi
# remove *.la files if libtool is not set
if ! options_has "libtool"; then