gnu: guile: Fix 'posix_spawn' usage for GNU/Hurd.

* gnu/packages/guile.scm (guile-3.0)[arguments]: Add
'patch-posix-spawn-usage' phase.
* gnu/packages/patches/guile-hurd-posix-spawn.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
This commit is contained in:
Ludovic Courtès 2023-03-28 15:35:56 +02:00
parent 0b2d1fd410
commit 14cd517e0c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5
3 changed files with 55 additions and 0 deletions

View file

@ -371,6 +371,16 @@ without requiring the source code to be rewritten.")
(("!#")
"!#\n(exit 77)\n"))))
#$@(if (target-hurd?)
#~((add-before 'build 'patch-posix-spawn-usage
(lambda _
;; TODO: Move patch to 'source' on next rebuild
;; cycle.
(define patch
#$(local-file
(search-patch "guile-hurd-posix-spawn.patch")))
(invoke "patch" "--force" "-p1" "-i" patch))))
#~())
#$@(if (target-ppc32?)
#~((add-after 'unpack 'adjust-bootstrap-flags
(lambda _