mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Python: Support cross-compiling for the Hurd.
* gnu/packages/python.scm (python-3.8): When cross-compiling for Hurd, add substitution for the configure script.
This commit is contained in:
parent
efc396ef3d
commit
c8a4e59ac4
1 changed files with 11 additions and 0 deletions
|
@ -401,6 +401,17 @@ (define-public python-3.8
|
||||||
,@(if (hurd-system?)
|
,@(if (hurd-system?)
|
||||||
`((delete 'patch-regen-for-hurd)) ;regen was removed after 3.5.9
|
`((delete 'patch-regen-for-hurd)) ;regen was removed after 3.5.9
|
||||||
'())
|
'())
|
||||||
|
,@(if (hurd-target?)
|
||||||
|
;; The build system refuses to cross-compile for unknown targets
|
||||||
|
;; even though it works fine. Add GNU/Hurd target.
|
||||||
|
;; TODO: Make it a patch in a future rebuild cycle.
|
||||||
|
'((add-before 'configure 'support-hurd-cross-compile
|
||||||
|
(lambda _
|
||||||
|
(substitute* "configure"
|
||||||
|
(("\\*-\\*-vxworks.*" all)
|
||||||
|
(string-append "*-*-gnu)\nac_sys_system=GNU\n;;\n" all)))
|
||||||
|
#t)))
|
||||||
|
'())
|
||||||
(add-before 'check 'set-TZDIR
|
(add-before 'check 'set-TZDIR
|
||||||
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
;; test_email requires the Olson time zone database.
|
;; test_email requires the Olson time zone database.
|
||||||
|
|
Loading…
Reference in a new issue