From 83f4f7744b44bed997803aa0775b38258a7a1b0e Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 25 Jan 2024 11:16:48 +0000 Subject: [PATCH] packaging: Forbid compilation if the symbols file is outdated An outdated symbols file results in automatic versioned dependencies in projects which use this library. When these projects are built, shlibs:Depends cannot find a version number for the set of symbols so it uses the full version of the library package, including suffixes such as +virginia. We end up with depends lib (>== 6.0.0+virginia) instead of lib (>== 6.0.0). --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 5bbdcf6..b85d0fe 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,7 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DPKG_GENSYMBOLS_CHECK_LEVEL = 2 %: dh $@ --with=gir