unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28015] [PATCH] Reproducible issue for djvulibre
@ 2017-08-08  7:31 Z. Ren
  2017-08-22 12:55 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Z. Ren @ 2017-08-08  7:31 UTC (permalink / raw)
  To: 28015

[-- Attachment #1: Type: text/plain, Size: 590 bytes --]

Hi!
While conducting a study inspired by the "reproducible builds" practice [1], we have noticed that the package djvulibre could not be built reproducibly.

After investigation, we observe that the unreproducibility is caused by "desktopfiles/Makefile.in", in which the command gzip is invoked without the "-n" argument. Consequently, timestamp is captured in the built file "share/icons/hicolor/scalable/mimetypes/djvu.svgz".

The attached patch adds the argument to the gzip command. Once applied, djvulibre could be built reproducibly.

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

[-- Attachment #2: 0001-reproducible-fix-for-djvulibre.patch --]
[-- Type: application/octet-stream, Size: 973 bytes --]

From b068209414c8f176abd8603ad75f91dc79cd1f31 Mon Sep 17 00:00:00 2001
From: Z. Ren <zren@dlut.edu.cn>
Date: Tue, 8 Aug 2017 14:22:18 +0800
Subject: [PATCH] reproducible fix for djvulibre

---
 gnu/packages/djvu.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/djvu.scm b/gnu/packages/djvu.scm
index e739df377..a374174b7 100644
--- a/gnu/packages/djvu.scm
+++ b/gnu/packages/djvu.scm
@@ -34,6 +34,13 @@
                (base32
                 "0psh3zl9dj4n4r3lx25390nx34xz0bg0ql48zdskhq354ljni5p6"))))
     (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+        (add-after 'unpack 'reproducible
+         (lambda _
+          (substitute* "desktopfiles/Makefile.in"
+           (("gzip") "gzip -n")))))))
     (home-page "http://djvu.sourceforge.net/")
     (synopsis "Implementation of DjVu, the document format")
     (description "DjVuLibre is an implementation of DjVu,
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-09-01  9:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-08  7:31 [bug#28015] [PATCH] Reproducible issue for djvulibre Z. Ren
2017-08-22 12:55 ` Ludovic Courtès
2017-08-23  9:48   ` [bug#28015] " Z. Ren
2017-09-01  9:08     ` bug#28015: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).