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

Sven Hartge sven at svenhartge.de
Wed May 6 09:12:40 BST 2020


Um 19:40 Uhr am 01.05.20 schrieb Sven Hartge:
> On 01.05.20 19:38, Sven Hartge wrote:
 
>> DEBIAN_RELEASE = $(shell cut -f1 -d'.' /etc/debian_version)
>> ifeq ($(DEBIAN_RELEASE,10))
>> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
>> endif
 
> Right, better ideas always manifest themselves *after* pressing "send":
> 
> DEBIAN_RELEASE = $(shell dpkg-parsechangelog -S Distribution)
> ifeq ($(DEBIAN_RELEASE,buster-backports))
> export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
> endif
> 
> That would work independently of what the build-chroot says, right?

Well, scratch that, 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959696 reduces the tag 
to pedantic until after the release of bullseye.

Grüße,
Sven.



More information about the pkg-bacula-devel mailing list