mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 12:00:35 +02:00
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:
parent
01596f40a9
commit
7795a5dd6b
1 changed files with 7 additions and 1 deletions
|
@ -3086,7 +3086,13 @@ server.")
|
||||||
(chdir "miniupnpc")
|
(chdir "miniupnpc")
|
||||||
(setenv "CC" #$(cc-for-target))
|
(setenv "CC" #$(cc-for-target))
|
||||||
(substitute* "Makefile"
|
(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
|
(inputs (list python)) ;we are building a Python extension
|
||||||
(synopsis "UPnP client for Python")
|
(synopsis "UPnP client for Python")
|
||||||
(description "Miniupnpc is a client library for Python programs to set up
|
(description "Miniupnpc is a client library for Python programs to set up
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue