[Pkg-fglrx-devel] r1571 - fglrx-driver/branches/15.12/debian

Andreas Beckmann anbe at moszumanska.debian.org
Sat Jan 16 03:07:26 UTC 2016


Author: anbe
Date: 2016-01-16 03:07:26 +0000 (Sat, 16 Jan 2016)
New Revision: 1571

Modified:
   fglrx-driver/branches/15.12/debian/changelog
   fglrx-driver/branches/15.12/debian/rules
Log:
generate tarball reproducibly

Modified: fglrx-driver/branches/15.12/debian/changelog
===================================================================
--- fglrx-driver/branches/15.12/debian/changelog	2016-01-16 01:42:46 UTC (rev 1570)
+++ fglrx-driver/branches/15.12/debian/changelog	2016-01-16 03:07:26 UTC (rev 1571)
@@ -1,6 +1,7 @@
 fglrx-driver (1:15.12-1) UNRELEASED; urgency=medium
 
   * New upstream release 15.12 (2015-12-18) (15.302).  (Closes: #807575)
+  * get-orig-source: Generate tarball reproducibly.
 
  -- Andreas Beckmann <anbe at debian.org>  Sat, 16 Jan 2016 02:04:51 +0100
 

Modified: fglrx-driver/branches/15.12/debian/rules
===================================================================
--- fglrx-driver/branches/15.12/debian/rules	2016-01-16 01:42:46 UTC (rev 1570)
+++ fglrx-driver/branches/15.12/debian/rules	2016-01-16 03:07:26 UTC (rev 1571)
@@ -236,6 +236,7 @@
 $(packagename)_$(REAL_UPSTREAM_VERSION).orig.tar.xz: $(INSTALLER) debian/rules
 	rm -fr $(packagename)-$(REAL_UPSTREAM_VERSION).orig
 	sh $(INSTALLER) --extract $(packagename)-$(REAL_UPSTREAM_VERSION).orig
+	touch -r $$(ls -tr $$(find $(packagename)-$(REAL_UPSTREAM_VERSION).orig -type f) | grep -v etc/ati/signature | tail -n 1) newest.stamp
 	@set -x ; \
 	    cd $(packagename)-$(REAL_UPSTREAM_VERSION).orig \
 	    && rm -f README.distro *.sh *.exp cimle-xdgsu installer_creation_policy \
@@ -244,12 +245,16 @@
 	    && rm -f arch/*/lib/modules/fglrx/fglrx.*.o \
 	    && chmod -R a-sx,u=rwX,go=rX . \
 	    && find . -type f \( -path '*/bin/*' -o -path '*/sbin/*' -o -name '*.sh' \) -exec chmod a+x {} +
+	find $(packagename)-$(REAL_UPSTREAM_VERSION).orig -depth -newer newest.stamp -exec touch -r newest.stamp {} \;
 	# Create the tarball.
 	tar -cJf $(packagename)_$(REAL_UPSTREAM_VERSION).orig.tar.xz \
+	    --sort=name \
 	    --owner=root --group=src \
 	    $(packagename)-$(REAL_UPSTREAM_VERSION).orig
+	touch -r newest.stamp $(packagename)_$(REAL_UPSTREAM_VERSION).orig.tar.xz
 	# Cleanup.
 	rm -fr $(packagename)-$(REAL_UPSTREAM_VERSION).orig
+	rm -f newest.stamp
 
 get-orig-source: get-orig-source-checks $(INSTALLER)
 	$(MAKE) -f debian/rules repack_upstream_archive




More information about the Pkg-fglrx-devel mailing list