Skip to content

Commit 2b8d3cd

Browse files
committed
debian: check for binutils version
1 parent 767e108 commit 2b8d3cd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

debian/package-notes.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: CC0-1.0
22
# Include from debian/rules to use with dh_package_notes.
33
# See dh_package_notes(1) for details
4+
5+
# binutils 2.39 is required for --package-metadata=
6+
ifeq (0, $(shell dpkg --compare-versions $$(dpkg-query -f '$${Version}' -W binutils) ge 2.39; echo $$?))
47
include /usr/share/dpkg/vendor.mk
58
ifeq (, $(filter nocheck, $(DEBUGINFOD_URLS)))
69
ifeq ($(DEB_VENDOR),Ubuntu)
@@ -11,6 +14,8 @@ endif
1114
endif
1215
export DEB_SOURCE_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version)
1316
export DEB_SOURCE_PACKAGE_NAME=$(shell dpkg-parsechangelog -S Source)
14-
export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs
17+
# Set by /usr/share/dpkg/vendor.mk
1518
export DEB_VENDOR
19+
export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs
20+
endif
1621

0 commit comments

Comments
 (0)