[pkg-bacula-devel] Debian release specific code in debian/rules

Sven Hartge sven at svenhartge.de
Fri May 1 18:38:11 BST 2020


Hi,

I want to pick your brain a bit:

Lintian now warns about "export DEB_LDFLAGS_MAINT_APPEND = 
-Wl,--as-needed" via debian-rules-uses-as-needed-linker-flag, saying the 
toolchain in Bullseye will do this out-of-the-box.

Now, removing that code is simple, but it needs to be added back for 
every upload to buster-backports and I am sure either of us is going to 
forget this.

So, idea is to add something like

DEBIAN_RELEASE = $(shell cut -f1 -d'.' /etc/debian_version)
ifeq ($(DEBIAN_RELEASE,10))
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
endif

Question here is: is this allowed? Would it even work to query the 
build-environment that way?

Grüße,
Sven.



More information about the pkg-bacula-devel mailing list