Skip to content

Commit

Permalink
debian: check for binutils version
Browse files Browse the repository at this point in the history
  • Loading branch information
bluca committed Nov 28, 2022
1 parent 767e108 commit 2b8d3cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion debian/package-notes.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# SPDX-License-Identifier: CC0-1.0
# Include from debian/rules to use with dh_package_notes.
# See dh_package_notes(1) for details

# binutils 2.39 is required for --package-metadata=
ifeq (0, $(shell dpkg --compare-versions $$(dpkg-query -f '$${Version}' -W binutils) ge 2.39; echo $$?))
include /usr/share/dpkg/vendor.mk
ifeq (, $(filter nocheck, $(DEBUGINFOD_URLS)))
ifeq ($(DEB_VENDOR),Ubuntu)
Expand All @@ -11,6 +14,8 @@ endif
endif
export DEB_SOURCE_PACKAGE_VERSION=$(shell dpkg-parsechangelog -S Version)
export DEB_SOURCE_PACKAGE_NAME=$(shell dpkg-parsechangelog -S Source)
export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs
# Set by /usr/share/dpkg/vendor.mk
export DEB_VENDOR
export DEB_LDFLAGS_MAINT_APPEND+= -specs=/usr/share/debhelper/dh_package_notes/debian-package-notes.specs
endif

0 comments on commit 2b8d3cd

Please sign in to comment.