[equivs] 18/36: Replace usage of dpkg-parsechangelog with $SOURCE_DATE_EPOCH
Axel Beckert
abe at deuxchevaux.org
Fri Jul 28 23:04:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository equivs.
commit 04aa02557583d47a3954887c36bef5167b028db9
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Tue Jul 18 01:47:52 2017 +0200
Replace usage of dpkg-parsechangelog with $SOURCE_DATE_EPOCH
Fixes lintian warning debian-rules-parses-dpkg-parsechangelog.
---
debian/changelog | 2 ++
debian/rules | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1b807a1..9b7adae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ equivs (2.0.11) UNRELEASED; urgency=medium
* Switch debian/rules to minimal dh v7 style.
+ Replace override_dh_auto_{install,clean} with debian/{clean,install}
+ Remove obsolete variables.
+ + Replace usage of dpkg-parsechangelog with $SOURCE_DATE_EPOCH. Fixes
+ lintian warning debian-rules-parses-dpkg-parsechangelog.
* Rename debian/equivs.* to debian/*.
* Move documentation files from debian/*.pod to doc/*.pod.
diff --git a/debian/rules b/debian/rules
index 526fdee..eaf6211 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,10 +2,10 @@
#export DH_VERBOSE=1
MANPAGES := doc/equivs-control.1 doc/equivs-build.1
-BUILD_DATE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE = $(shell LC_ALL=C date -u +'%d %b %Y' -d "@$(SOURCE_DATE_EPOCH)")
%.1: %.pod
- pod2man --section=1 --release="$$(LC_ALL=C date -u +'%d %b %Y' -d '$(BUILD_DATE)')" \
+ pod2man --section=1 --release="$(BUILD_DATE)" \
--center="Debian/GNU" --date=' ' $< > $@
%:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/equivs.git
More information about the Pkg-perl-cvs-commits
mailing list