gnu: python-miniupnpc: Do not embed running kernel version.

* gnu/packages/python-xyz.scm (python-miniupnpc)[arguments]: Add
  'remove-kernel-version phase.
This commit is contained in:
Vagrant Cascadian 2022-06-09 21:35:14 -07:00 committed by Vagrant Cascadian
parent 01596f40a9
commit 7795a5dd6b
No known key found for this signature in database
GPG key ID: DC518FC87F9716AA

View file

@ -3086,7 +3086,13 @@ (define-public python-miniupnpc
(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