mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 07:52:30 +00:00
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:
parent
a3eb828a7c
commit
ba3e575d37
16
abuild.in
16
abuild.in
@ -755,12 +755,16 @@ 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
|
||||
if [ -e "$dir"/lib64 ]; then
|
||||
error "Packages must not put anything under /lib64, use /lib instead"
|
||||
e=1
|
||||
elif [ -e "$dir"/usr/lib64 ]; then
|
||||
error "Packages must not put anything under /usr/lib64, use /usr/lib instead"
|
||||
e=1
|
||||
# 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
|
||||
elif [ -e "$dir"/usr/lib64 ]; then
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user