From: Étienne Mollier Date: Thu, 12 Feb 2026 18:43:30 +0000 (+0100) Subject: d/rules: guard against accidental ABI breakages. X-Git-Tag: archive/raspbian/3.7.0+really3.7.0-1+rpi1^2~18 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8df4b1f3e28cc7f84d8be790e47a66414c1e72ec;p=dcmtk.git d/rules: guard against accidental ABI breakages. --- diff --git a/debian/rules b/debian/rules index 61b07630..92178284 100755 --- a/debian/rules +++ b/debian/rules @@ -59,6 +59,20 @@ ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) CMAKE_EXTRA_FLAGS += -DBUILD_TESTING:BOOL=OFF endif +# Guard against accidental ABI breakages. +DCMTK_SOVERSION != sed -n 's/set(DCMTK_ABI_VERSION \([0-9]\+\))/\1/p' CMake/dcmtkPrepare.cmake +DEB_SOVERSION != sed -n 's/Package: libdcmtk\([0-9]\+\)/\1/p' debian/control +execute_before_dh_autoreconf: + @ if [ $(DCMTK_SOVERSION) != $(DEB_SOVERSION) ] \ + ; then \ + printf 'E: libdcmtk%s package mismatches dcmtk soversion %s.\n' \ + $(DEB_SOVERSION) $(DCMTK_SOVERSION) \ + ; printf 'E: Please bump the package soversion to libdcmtk%s\n' \ + $(DCMTK_SOVERSION) \ + ; printf 'E: and coordinate a transition.\n' \ + ; exit 1 \ + ; fi + override_dh_auto_configure: dh_auto_configure -- $(CMAKE_EXTRA_FLAGS)