[Pkg-zsh-devel] [PATCH] Change the value of $ZSH_PATCHLEVEL.
Daniel Shahaf
danielsh at apache.org
Wed Aug 9 19:08:58 UTC 2017
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'.
---
I assume this is uncontroversial, but I can't commit it myself since
parts of /git/pkg-zsh/zsh.git are owned by group 'Debian'.
Cheers,
Daniel
debian/rules | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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
More information about the Pkg-zsh-devel
mailing list