Source: yocto-reader
Version: 0.9.4
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that yocto-reader could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, yocto-reader can be built reproducibly in our current
experimental
framework.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad yocto-reader.orig/yocto-reader-0.9.4/Makefile 
yocto-reader/yocto-reader-0.9.4/Makefile
--- yocto-reader.orig/yocto-reader-0.9.4/Makefile       2015-02-07 
17:22:43.607052763 +0000
+++ yocto-reader/yocto-reader-0.9.4/Makefile    2015-02-07 17:44:59.950806828 
+0000
@@ -16,6 +16,7 @@
 #  License along with this program in the file LICENSE.txt.  If not, see
 #  <http://www.gnu.org/licenses/>.
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
 
 DIST_FILES = ./ChangeLog ./LICENSE.txt ./Makefile ./README.txt 
./apache-alias.conf \
        ./apache.conf ./backend/resttest.php ./debian/README.Debian 
./debian/changelog \
@@ -95,7 +96,7 @@
        /bin/rm -rf yocto-reader-$$VERSION; \
        mkdir yocto-reader-$$VERSION; \
        /bin/echo $(DIST_FILES) | /usr/bin/perl -ne 'foreach $$f (split(/\s+/)) 
{ print "$$f\n";}' | /bin/cpio -padum yocto-reader-$$VERSION; \
-       /bin/tar cf - yocto-reader-$$VERSION | /bin/gzip --best > 
yocto-reader-$$VERSION.tar.gz; \
+       /bin/tar cf - yocto-reader-$$VERSION --mtime="$(BUILD_DATE)" | 
/bin/gzip -n --best > yocto-reader-$$VERSION.tar.gz; \
        /bin/rm -rf yocto-reader-$$VERSION )
 
 clean:
_______________________________________________
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