summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@reproducible-builds.org>2022-06-09 21:35:14 -0700
committerVagrant Cascadian <vagrant@debian.org>2022-06-09 21:44:23 -0700
commit7795a5dd6bb16ee5ec938ba26b91f69459639189 (patch)
tree256564977025794b7eeb711ef8e69dd3c9f5f65b /gnu/packages/python-xyz.scm
parent01596f40a994a2bb39dde5867ca66e9f7e9e67e0 (diff)
gnu: python-miniupnpc: Do not embed running kernel version.
* gnu/packages/python-xyz.scm (python-miniupnpc)[arguments]: Add 'remove-kernel-version phase.
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5f9ce4fdfe..a6b412e799 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3086,7 +3086,13 @@ server.")
(chdir "miniupnpc")
(setenv "CC" #$(cc-for-target))
(substitute* "Makefile"
- (("/bin/sh") (search-input-file inputs "/bin/sh"))))))))
+ (("/bin/sh") (search-input-file inputs "/bin/sh")))))
+ (add-before 'subdir 'remove-kernel-version
+ ;; Avoid embedding the running kernel version for reproducible builds
+ (lambda _
+ (substitute*
+ "miniupnpc/updateminiupnpcstrings.sh"
+ (("^OS_VERSION=`uname -r`") "OS_VERSION=Guix")))))))
(inputs (list python)) ;we are building a Python extension
(synopsis "UPnP client for Python")
(description "Miniupnpc is a client library for Python programs to set up