[Pkg-libvirt-commits] [libvirt] 01/01: Don't use current user, hostname and build time
Guido Guenther
agx at moszumanska.debian.org
Sat Sep 5 12:46:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/experimental
in repository libvirt.
commit 6eb4fb638fd131a731b4d1992816c4bc630481ef
Author: Guido Günther <agx at sigxcpu.org>
Date: Fri Sep 4 16:41:27 2015 +0200
Don't use current user, hostname and build time
but parse debian/changelog instead to work towards reproducibility.
Thanks: Ben Hutchings for pointing this out
---
debian/rules | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/debian/rules b/debian/rules
index b327e50..208663c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,8 @@
#!/usr/bin/make -f
DEB_RELEASE=$(shell dpkg-parsechangelog -SVersion | sed 's/[^-]\+-//')
-DEB_BUILDHOST=$(shell hostname)
-DEB_BUILDDATE=$(shell date +"%F-%T")
-DEB_BUILDUSER=${USER}
+DEB_BUILDDATE=$(shell dpkg-parsechangelog -SDate)
+DEB_BUILDUSER=$(shell dpkg-parsechangelog -SMaintainer)
ifneq (,$(findstring $(DEB_HOST_ARCH_OS), linux))
ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
@@ -83,7 +82,7 @@ else
endif
DEB_CONFIGURE_EXTRA_ARGS := \
- --with-packager="$(DEB_BUILDUSER) $(DEB_BUILDDATE) $(DEB_BUILDHOST)" \
+ --with-packager="$(DEB_BUILDUSER) $(DEB_BUILDDATE)" \
--with-packager-version="$(DEB_RELEASE)" \
--with-default-editor="sensible-editor" \
--disable-silent-rules \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git
More information about the Pkg-libvirt-commits
mailing list