diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 17:35:57 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 17:58:42 +0100 |
commit | c7b64d0b57bd904279b7d17452e0ba553c0009c6 (patch) | |
tree | 319e6988761c3f55c2083bb29faac2d88a64628c /debian/rules | |
parent | 09ab159217771479a944fa84334dc4587e3c4f23 (diff) | |
download | zsh-c7b64d0b57bd904279b7d17452e0ba553c0009c6.tar.gz zsh-c7b64d0b57bd904279b7d17452e0ba553c0009c6.zip |
Apply changes from Ubuntu's zsh 5.7.1-1ubuntu2 package
… except all debian/changelog entries and modifying the Maintainer
field.
This includes:
* debian/zshrc: Enable completions by default, unless
skip_global_compinit is set.
* Support cross-compiling:
+ Adjust upstream autoconf cross-compile default fallbacks.
+ Skip zcompile when cross-compiling.
+ Add libelf-dev build-dependency.
Gbp-Dch: Full
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index eb98a4dce..b7f817434 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/architecture.mk include /usr/share/dpkg/pkg-info.mk H_LDFLAGS = $(LDFLAGS) @@ -93,6 +94,8 @@ override_dh_auto_install-indep: build-dynamic cd obj && $(MAKE) install.fns DESTDIR=$(CURDIR)/debian/zsh-common +# move this to a non-root section; also drop it for cross-compiles +ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) awk '/^#define FPATH_DIR/ { head=$$3; gsub(/"/,"",head); }; \ /^#define FPATH_SUBDIRS/ { $$1=""; $$2=""; gsub(/[" ]/,""); tail=$$0; } \ END { printf "%s/%s\n", head, tail; };' \ @@ -103,6 +106,7 @@ override_dh_auto_install-indep: build-dynamic zcompile -U -M $$i.zwc $$i/*~*.zwc(^/); \ chmod 644 $$i.zwc; \ done' +endif # Docs: Info + HTML cd obj && $(MAKE) install.info install.html \ |