Created attachment 890470 [details, diff] 3.7.3-configure-fix-bashism.patch Libarchive's configure.ac contains a Bashism (use of == operator with test built-in). Thus, configure emits an error when /bin/sh is not Bash. This doesn't cause the build to fail outright, but it may be causing misdetection of features. checking whether C compiler accepts -Wall... (cached) yes checking whether C compiler accepts -Wformat... (cached) yes checking whether C compiler accepts -Wformat-security... (cached) yes checking whether ld supports --gc-sections... yes checking whether C compiler accepts -ffunction-sections... (cached) yes checking whether C compiler accepts -fdata-sections... (cached) yes /var/tmp/portage/app-arch/libarchive-3.7.3/work/libarchive-3.7.3/configure: 17818: test: -Wl,--gc-sections: unexpected operator The error is due to this Bashism in configure.ac: if test "$DEAD_CODE_REMOVAL" == ""; then The attached patch corrects the Bashism and allows app-arch/libarchive-3.7.3 to configure without error. Note: The patch has to touch the aclocal.m4 file to set its mtime after configure.ac's, or else the build fails due to auto-regenerating only some of the generated build system, leading to a libtool version mismatch.
I should've done -z, but I fixed it upstream already with =.