diff options
author | Dmitry Bogatov <KAction@gnu.org> | 2018-02-14 21:45:19 +0300 |
---|---|---|
committer | Dmitry Bogatov <KAction@gnu.org> | 2018-02-14 21:45:19 +0300 |
commit | b074407df49953011b916f5b76ce8d93bd25efed (patch) | |
tree | 7560ef2937771f3b6e8b7cf7a7c93b6df5cb223f | |
parent | b91fc25cdc78b8a4df7e9171959c81ed4b0f60d7 (diff) |
Add get-orig-source rule into debian/rules
Unlike gbp(1), dgit(1) do not automatically extracts orig.tar.gz archive
from tag or pristine-tar, requiring extra manual step. But even gbp(1),
which do extract from pristine-tar automatically, do not extract
signature file, leading to lintian warning.
All in all, automating extraction of original tarball seems like good
idea.
-rwxr-xr-x | debian/rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index bbf9d00..d56f5e3 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,7 @@ export DEB_BUILD_MAINT_OPTIONS = noautodbgsym export DEB_BUILD_MAINT_OPTIONS += hardening=+all BUILT_USING := $(shell dpkg-query -f'$${source:Package} (= $${source:Version})' -W dietlibc-dev) +include /usr/share/dpkg/default.mk %: dh $@ @@ -12,3 +13,7 @@ override_dh_gencontrol: override_dh_installchangelogs: dh_installchangelogs CHANGES + +ORIG = ../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.bz2 +get-orig-source: + pristine-tar checkout $(ORIG) -s $(ORIG).asc |