]> git.proxmox.com Git - systemd.git/commitdiff
Unbreak upstream PR which dropped PACKAGE_VERSION
authorMichael Biebl <biebl@debian.org>
Thu, 20 Dec 2018 23:39:36 +0000 (00:39 +0100)
committerMichael Biebl <biebl@debian.org>
Thu, 20 Dec 2018 23:48:12 +0000 (00:48 +0100)
Support both PACKAGE_VERSION and PROJECT_VERSION for now.
PACKAGE_VERSION and the tr mangling can be dropped when a version with
this change lands in Debian.

See https://github.com/systemd/systemd/pull/11230

Gbp-Dch: Ignore

debian/rules

index d737e5b4fdd4f998860e5206a60985e2de9e1b66..e7e7980a0d507323584f1cfa038bcf8013f6d697 100755 (executable)
@@ -265,7 +265,7 @@ override_dh_missing:
 override_dh_installinit:
        dh_installinit --no-start
 
-PROJECT_VERSION ?= $(shell awk '/PACKAGE_VERSION/ {print $$3}' build-deb/config.h | tr -d \")
+PROJECT_VERSION ?= $(shell awk '/(PROJECT|PACKAGE)_VERSION/ {print $$3}' build-deb/config.h | tr -d \")
 
 # The SysV compat tools (which are symlinks to systemctl) are
 # quasi-essential, so add their dependencies to Pre-Depends