summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2017-08-09 19:08:58 +0000
committerAxel Beckert <abe@deuxchevaux.org>2017-08-10 22:42:32 +0200
commite795f448b745ec049ba74a3656343a4b2ab179ab (patch)
tree9922c1c8bf12054737ab29e43e0edcf06a07db3e /debian/rules
parent4cbb92565ce94a888802643e62cfbffc24794097 (diff)
downloadzsh-e795f448b745ec049ba74a3656343a4b2ab179ab.tar.gz
zsh-e795f448b745ec049ba74a3656343a4b2ab179ab.zip
Change the value of $ZSH_PATCHLEVEL.
Before this patch the value was 'Debian'. With this patch the value embeds the vendor name and package version number: 'debian/5.3.1-5'. Upstream's default is `git describe` output, e.g., '5.3.1-test-2-0-gd17f9d32f'.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules
index 77ac1e303..c4cd9c06f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/pkg-info.mk
H_LDFLAGS = $(LDFLAGS)
VENDOR=$(shell dpkg-vendor --query vendor | env LC_ALL=C tr A-Z a-z | env LC_ALL=C tr -d -c '[:alnum:]')
@@ -28,7 +29,7 @@ CONFIGFLAGS += --with-tcsetpgrp
CONFIGFLAGS += --with-term-lib="ncursesw tinfo"
CONFIGFLAGS += --enable-cap --enable-pcre
CONFIGFLAGS += --enable-readnullcmd=pager
-CONFIGFLAGS += --enable-custom-patchlevel=Debian
+CONFIGFLAGS += --enable-custom-patchlevel=$(VENDOR)/$(DEB_VERSION)
CONFIGFLAGS += --enable-additional-fpath=/usr/share/zsh/vendor-functions,/usr/share/zsh/vendor-completions
CONFIGFLAGS += --disable-ansi2knr