Source: file-rc
Version: 0.8.16
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: umask

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that file-rc could not be built reproducibly.

The attached patch replaces the `grep`+`mv` by `sed -i` to keep
the file permissions identical even with different umasks.
Once applied, file-rc can be built reproducibly in our current
experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
diff -Nru file-rc-0.8.16/debian/changelog file-rc-0.8.16.0~reproducible1/debian/changelog
--- file-rc-0.8.16/debian/changelog	2013-05-24 06:02:40.000000000 +0000
+++ file-rc-0.8.16.0~reproducible1/debian/changelog	2015-05-06 13:43:38.000000000 +0000
@@ -1,3 +1,10 @@
+file-rc (0.8.16.0~reproducible1) UNRELEASED; urgency=low
+
+  * Use `sed -i` to keep permisions when modifying conffiles list.
+    This makes the result identical with different umasks.
+
+ -- Jérémy Bobbio <lu...@debian.org>  Wed, 06 May 2015 13:42:47 +0000
+
 file-rc (0.8.16) unstable; urgency=low
 
   [ Colin Watson ]
diff -Nru file-rc-0.8.16/debian/rules file-rc-0.8.16.0~reproducible1/debian/rules
--- file-rc-0.8.16/debian/rules	2012-07-02 20:47:12.000000000 +0000
+++ file-rc-0.8.16.0~reproducible1/debian/rules	2015-05-06 13:47:19.000000000 +0000
@@ -64,9 +64,7 @@
 	dh_installdeb
 #	Workaround to avoid rc, rcS and README from /etc/init.d being 
 #	conffiles:
-	grep -v /etc/init.d/ $(debroot)/DEBIAN/conffiles \
-		> $(debroot)/DEBIAN/conffiles.tmp
-	mv $(debroot)/DEBIAN/conffiles.tmp $(debroot)/DEBIAN/conffiles
+	sed -e '\,/etc/init.d/,d' -i $(debroot)/DEBIAN/conffiles
 #	dh_perl
 	dh_gencontrol
 	dh_md5sums

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