This is an automated email from the git hooks/post-receive script.

glondu pushed a commit to branch experimental/master
in repository ocaml.

commit 5d69569e0d821d613d343f3bea17ef43b8256bc5
Author: Stephane Glondu <st...@glondu.net>
Date:   Wed Aug 12 14:11:12 2015 +0200

    Reproducible ocaml-source package (Closes: #779086)
    
    Patch from Chris Lamb.
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 095e192..b29587a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -38,6 +38,8 @@ SRCTARBALL = $(PACKAGE)-source-$(OCAML_ABI).tar
 TESTDIR := debian/test-build
 TESTRULES := debian/rules DEB_TEST_BUILD_PREFIX=$(CURDIR)/$(TESTDIR)
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field=Date)
+
 ifeq (,$(DEB_TEST_BUILD_PREFIX))
 ifneq (,$(findstring ocaml-source,$(ALL_PACKAGES)))
   TARBALL_TARGET = debian/$(SRCTARBALL)
@@ -110,7 +112,11 @@ $(TARBALL_TARGET): $(UPSTREAM_TARBALL)
 # Copy debian/patches
        cp -a debian/patches debian/$(DISTDIR)/debian-patches
 # Create the tarball and cleanup
-       tar -C debian -cf $@ $(DISTDIR)
+       cd debian && find $(DISTDIR) -not -type d -print0 | \
+               LC_ALL=C sort --zero-terminated | \
+               tar --create --null --files-from=- \
+                       --file=$(abspath $@) --mtime="$(BUILD_DATE)" \
+                       --owner=root --group=root --numeric-owner
        rm -Rf debian/$(DISTDIR)
 endif
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/ocaml.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to