Skip to content

Commit

Permalink
packaging: Forbid compilation if the symbols file is outdated
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
clefebvre committed Jan 25, 2024
1 parent 4b29b2b commit 3ca1085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ built_binaries := $(shell dh_listpackages)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
export DPKG_GENSYMBOLS_CHECK_LEVEL = 2

include /usr/share/dpkg/default.mk

Expand Down

0 comments on commit 3ca1085

Please sign in to comment.