[Pkg-fglrx-devel] r1484 - fglrx-driver/trunk/debian

Andreas Beckmann anbe at moszumanska.debian.org
Thu Jul 9 17:25:47 UTC 2015


Author: anbe
Date: 2015-07-09 17:25:47 +0000 (Thu, 09 Jul 2015)
New Revision: 1484

Modified:
   fglrx-driver/trunk/debian/changelog
   fglrx-driver/trunk/debian/rules
Log:
create /usr/src/fglrx.tar.bz2 reproducibly

Modified: fglrx-driver/trunk/debian/changelog
===================================================================
--- fglrx-driver/trunk/debian/changelog	2015-07-09 14:10:57 UTC (rev 1483)
+++ fglrx-driver/trunk/debian/changelog	2015-07-09 17:25:47 UTC (rev 1484)
@@ -7,6 +7,7 @@
       longer needed.
     - Ship dri/{xvba,fglrx}_drv_video.so symlinks.
   * Update list of supported models.
+  * Create /usr/src/fglrx.tar.bz2 reproducibly.
 
  -- Andreas Beckmann <anbe at debian.org>  Thu, 09 Jul 2015 14:55:04 +0200
 

Modified: fglrx-driver/trunk/debian/rules
===================================================================
--- fglrx-driver/trunk/debian/rules	2015-07-09 14:10:57 UTC (rev 1483)
+++ fglrx-driver/trunk/debian/rules	2015-07-09 17:25:47 UTC (rev 1484)
@@ -4,6 +4,7 @@
 
 packagename		:= $(shell dpkg-parsechangelog | sed -nr '/^Source:/s/Source: (.*)/\1/p')
 upstream_version	:= $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*:)?(.*)-(.*)/\2/p')
+BUILD_DATE		:= $(shell dpkg-parsechangelog --show-field=Date)
 
 DEB_HOST_ARCH		?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 DEB_HOST_MULTIARCH	?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
@@ -138,10 +139,17 @@
 		$(badlib64files)
 	test ! -f debian/lib$(fglrx)-amdxvba1/$(libdir)/libAMDXvBA.so.1.0 || \
 		rpl -e 'libAMDXvBA.cap' '$(cap)' debian/lib$(fglrx)-amdxvba1/$(libdir)/libAMDXvBA.so.1.0
+	chmod -R a-sx,u=rwX,go=rX debian/$(fglrx)-source/usr/src/modules
 	chmod a+x debian/$(fglrx)-source/usr/src/modules/$(fglrx)/debian/rules
-	tar cfj debian/$(fglrx)-source/usr/src/$(fglrx).tar.bz2 \
-		--owner=root --group=src --remove-files \
-		--directory debian/$(fglrx)-source/usr/src/ modules
+	find 'debian/$(fglrx)-source/usr/src/modules' -depth -newermt '$(BUILD_DATE)' -print0 | \
+		xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
+	(cd debian/$(fglrx)-source/usr/src && find modules -print0) | \
+	    LC_ALL=C sort -z | \
+	    tar cfj debian/$(fglrx)-source/usr/src/$(fglrx).tar.bz2 \
+		--owner=root --group=src \
+		--directory debian/$(fglrx)-source/usr/src/ \
+		--null -T - --no-recursion
+	$(RM) -r debian/$(fglrx)-source/usr/src/modules
 	mv debian/$(fglrx)-control/usr/sbin/atigetsysteminfo.sh \
 		debian/$(fglrx)-control/usr/sbin/atigetsysteminfo
 




More information about the Pkg-fglrx-devel mailing list