mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05: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 @@ (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
|
||||
|
|
Loading…
Reference in a new issue