diff --git a/abuild.in b/abuild.in index 5e47256..5f58a49 100644 --- a/abuild.in +++ b/abuild.in @@ -743,6 +743,16 @@ postcheck() { 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 if ! options_has "libtool"; then find "$dir" -name '*.la' -type f -delete