From e78458a96dd19e95b520b7bc22dede70caee8c03 Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Wed, 20 Apr 2022 00:07:17 +0900 Subject: [PATCH] libvpx: Add SOVERSION guard %ci:no-build --- packages/libvpx/build.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/libvpx/build.sh b/packages/libvpx/build.sh index 5cd02b956..5fb06f900 100644 --- a/packages/libvpx/build.sh +++ b/packages/libvpx/build.sh @@ -56,3 +56,15 @@ termux_step_configure() { --enable-small \ --extra-cflags="-fPIC" } + +termux_step_post_massage() { + # Do not forget to bump revision of reverse dependencies and rebuild them + # after SOVERSION is changed. + local _SOVERSION_GUARD_FILES="lib/libvpx.so.7" + local f + for f in ${_SOVERSION_GUARD_FILES}; do + if [ ! -e "${f}" ]; then + termux_error_exit "Error: file ${f} not found; please check if SOVERSION has changed." + fi + done +}