error out if /lib64 or /usr/lib64 is found
This commit is contained in:
parent
b5549436df
commit
cd004c0232
10
abuild.in
10
abuild.in
|
@ -743,6 +743,16 @@ postcheck() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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
|
||||||
|
if [ -e "$dir"/lib64 ]; then
|
||||||
|
error "Packages must not put anything under /lib64, use /lib instead"
|
||||||
|
return 1
|
||||||
|
elif [ -e "$dir"/usr/lib64 ]; then
|
||||||
|
error "Packages must not put anything under /usr/lib64, use /usr/lib instead"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
# remove *.la files if libtool is not set
|
# remove *.la files if libtool is not set
|
||||||
if ! options_has "libtool"; then
|
if ! options_has "libtool"; then
|
||||||
find "$dir" -name '*.la' -type f -delete
|
find "$dir" -name '*.la' -type f -delete
|
||||||
|
|
Loading…
Reference in New Issue