libarchive: Add SOVERSION guard

%ci:no-build
This commit is contained in:
Tee KOBAYASHI 2022-12-27 22:41:09 +09:00 committed by xtkoba
parent ac991b4167
commit 6a9c7e0c5b
1 changed files with 12 additions and 0 deletions

View File

@ -20,6 +20,18 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-xattr
"
termux_step_post_get_source() {
# Do not forget to bump revision of reverse dependencies and rebuild them
# after SOVERSION is changed.
local _SOVERSION=13
local v=$(sed -En 's/^ARCHIVE_INTERFACE=`echo \$\(\(([0-9]+).*/\1/p' \
configure.ac)
if [ "${v}" != "${_SOVERSION}" ]; then
termux_error_exit "SOVERSION guard check failed."
fi
}
termux_step_post_make_install() {
# https://github.com/libarchive/libarchive/issues/1766
sed -i '/^Requires\.private:/s/ iconv//' \