Control: reopen -1

>    * Configure with --enable-deterministic-archives. Closes: #774429.

Waow, that's great and will help many more packages become reproducible.

Unfortunately binutils itself is still not reproducible:
https://reproducible.debian.net/dbd/unstable/amd64/binutils_2.25-6.debbindiff.html

The attached patch fixes the two remaining issues in the current
experimental environment.

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -u binutils-2.25/debian/changelog binutils-2.25/debian/changelog
--- binutils-2.25/debian/changelog
+++ binutils-2.25/debian/changelog
@@ -1,3 +1,11 @@
+binutils (2.25-6.0~reproducible1) UNRELEASED; urgency=low
+
+  * Make the package build reproducibly:
+    - Fix file permissions when building source tarball.
+    - Remove user and timestamps from test-summary.
+
+ -- Jérémy Bobbio <lu...@debian.org>  Fri, 02 Jan 2015 16:33:56 +0100
+
 binutils (2.25-6) unstable; urgency=medium
 
   * Apply patches from the 2.25 branch to address PR binutils/17512,
diff -u binutils-2.25/debian/rules binutils-2.25/debian/rules
--- binutils-2.25/debian/rules
+++ binutils-2.25/debian/rules
@@ -943,7 +943,8 @@
 	$(install_file) debian/patches/* $(d_src)/$(PF)/src/binutils/patches/
 	cd .. && find $(sources_files) -depth -newermt '$(BUILD_DATE)' -print0 | \
 		xargs -0r touch --no-dereference --date='$(BUILD_DATE)' && \
-		find $(source_files) -type f -print0 | LC_ALL=C sort -z | tar --null -T - -c --xz --exclude=CVS \
+		find $(source_files) -type f -print0 | LC_ALL=C sort -z | \
+		tar --null -T - -c --xz --exclude=CVS --mode=go=rX,u+rw,a-s \
 		-f $(pwd)/$(d_src)/$(PF)/src/binutils/binutils-$(VERSION).tar.xz \
 		$(source_files)
 
@@ -1096,6 +1097,8 @@
 
 ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
 ifeq ($(with_check),yes)
+	# remove user and date from test-summary for reproducible builds
+	sed -e '/Test Run By/d' -i $(pwd)/test-summary
 	$(install_file) $(pwd)/test-summary $(d_bin)/$(PF)/share/doc/$(p_bin)/
 endif
 endif

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to