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 d0f8c74 commit 83f4f77
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 @@ -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
Expand Down

0 comments on commit 83f4f77

Please sign in to comment.