summary refs log tree commit diff
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2023-01-15 01:00:29 +0100
committerTobias Geerinckx-Rice <me@tobias.gr>2023-01-15 01:00:00 +0100
commitea37595a7c71a430b0d1a2c860b9b0e37ec126bd (patch)
treef31cde06a1849ed492548947da3c1053f198120b
parent598e43c9dfdb95ab299909478f894fb5f968a972 (diff)
downloadguix-ea37595a7c71a430b0d1a2c860b9b0e37ec126bd.tar.gz
gnu: lirc: Build reproducibly.
* gnu/packages/lirc.scm (lirc)[arguments]: Add a new 'omit-pip-sourceball phase.
-rw-r--r--gnu/packages/lirc.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/lirc.scm b/gnu/packages/lirc.scm
index 5c89e83d7c..58d63cbdab 100644
--- a/gnu/packages/lirc.scm
+++ b/gnu/packages/lirc.scm
@@ -83,7 +83,15 @@
              (substitute* "doc/Makefile.in"
                (("^vardocs_DATA =.*") "vardocs_DATA =\n")
                (("^varimage_DATA =.*") "varimage_DATA =\n"))
-             #t)))))
+             #t))
+         (add-after 'unpack 'omit-pip-sourceball
+           ;; ‘make install’ invokes ’setup.py sdist’, which has no known (to
+           ;; nckx) way to enforce mtimes.  The utility of this is questionable,
+           ;; IMO: let's disable it entirely & listen for complaints, if any.
+           (lambda _
+             (substitute* "Makefile.in"
+               (("(PYTHON_TARBALL.*=).*" _ tarball=)
+                (string-append tarball= "\n"))))))))
     (native-inputs
      (list pkg-config libxslt))
     (inputs