[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#777011: sgmltools-lite: please make the build reproducible



Source: sgmltools-lite
Version: 3.0.3.0.cvs.20010909-17
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 sgmltools-lite could not be built reproducibly.

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

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
diff -urNad sgmltools-lite.orig/sgmltools-lite-3.0.3.0.cvs.20010909/debian/rules sgmltools-lite/sgmltools-lite-3.0.3.0.cvs.20010909/debian/rules
--- sgmltools-lite.orig/sgmltools-lite-3.0.3.0.cvs.20010909/debian/rules	2015-02-04 00:06:24.504613000 +0000
+++ sgmltools-lite/sgmltools-lite-3.0.3.0.cvs.20010909/debian/rules	2015-02-04 00:12:04.703738937 +0000
@@ -119,13 +119,13 @@
 	sh debian/common/checkdir.sh
 	bash debian/common/checkroot.sh
 	sh debian/common/installdocs.sh $(PKG)
-	gzip -9 $(PKGDIR)/usr/share/man/man1/*
+	gzip -9n $(PKGDIR)/usr/share/man/man1/*
 	install -o 0 -g 0 -p -m 644 debian/changelog \
 	  $(PKGDOCDIR)/changelog.Debian
 	install -o 0 -g 0 -p -m 644 src/ChangeLog \
 	  $(PKGDOCDIR)/changelog
-	gzip -9 $(PKGDOCDIR)/changelog*
-	gzip -9 $(PKGDOCDIR)/README*
+	gzip -9n $(PKGDOCDIR)/changelog*
+	gzip -9n $(PKGDOCDIR)/README*
 
 	find $(PKGDIR) -print0 2>/dev/null | \
 	  xargs -0r chown --no-dereference 0.0

Reply to: