mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 23:02:16 -05:00
gnu: guile: Switch to gexps.
* gnu/packages/guile.scm (guile-3.0)[arguments]: Switch to gexps. (guile-next)[arguments]: Likewise.
This commit is contained in:
parent
ca7b1e2fd7
commit
b37825934e
1 changed files with 57 additions and 56 deletions
|
@ -58,6 +58,7 @@ (define-module (gnu packages guile)
|
|||
#:use-module (gnu packages sqlite)
|
||||
#:use-module (gnu packages texinfo)
|
||||
#:use-module (gnu packages version-control)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix git-download)
|
||||
|
@ -344,24 +345,24 @@ (define-public guile-3.0
|
|||
;; cross-compiling.
|
||||
((#:parallel-build? _ #f)
|
||||
(not (%current-target-system)))
|
||||
((#:configure-flags flags ''())
|
||||
((#:configure-flags flags #~'())
|
||||
;; XXX: JIT-enabled Guile crashes in obscure ways on GNU/Hurd.
|
||||
`(cons* ,@(if (hurd-target?)
|
||||
'("--disable-jit")
|
||||
'())
|
||||
#~(cons* #$@(if (hurd-target?)
|
||||
#~("--disable-jit")
|
||||
#~())
|
||||
;; -fexcess-precision=standard is required when compiling for
|
||||
;; i686-linux, otherwise "numbers.test" will fail
|
||||
;; (see <https://issues.guix.gnu.org/49368> and
|
||||
;; <https://issues.guix.gnu.org/49659>).
|
||||
;; TODO: Keep this in GUILE-2.2 and remove from here on next
|
||||
;; rebuild cycle.
|
||||
,@(if (target-x86-32?)
|
||||
'("CFLAGS=-g -O2 -fexcess-precision=standard")
|
||||
'())
|
||||
#$@(if (target-x86-32?)
|
||||
#~("CFLAGS=-g -O2 -fexcess-precision=standard")
|
||||
#~())
|
||||
"--enable-mini-gmp"
|
||||
'("--disable-static")))
|
||||
((#:phases phases)
|
||||
`(modify-phases ,phases
|
||||
#~(modify-phases #$phases
|
||||
(add-before 'check 'disable-stack-overflow-test
|
||||
(lambda _
|
||||
;; This test can invoke the "OOM killer", especially when
|
||||
|
@ -370,8 +371,8 @@ (define-public guile-3.0
|
|||
(("!#")
|
||||
"!#\n(exit 77)\n"))))
|
||||
|
||||
,@(if (target-ppc32?)
|
||||
`((add-after 'unpack 'adjust-bootstrap-flags
|
||||
#$@(if (target-ppc32?)
|
||||
#~((add-after 'unpack 'adjust-bootstrap-flags
|
||||
(lambda _
|
||||
;; Upstream knows about suggested solution.
|
||||
;; https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45214
|
||||
|
@ -379,16 +380,16 @@ (define-public guile-3.0
|
|||
(substitute* "stage0/Makefile.in"
|
||||
(("^GUILE_OPTIMIZATIONS.*")
|
||||
"GUILE_OPTIMIZATIONS = -O1 -Oresolve-primitives -Ocps\n")))))
|
||||
'())
|
||||
,@(if (or (target-ppc32?)
|
||||
#~())
|
||||
#$@(if (or (target-ppc32?)
|
||||
(target-riscv64?))
|
||||
`((add-after 'unpack 'skip-failing-fdes-test
|
||||
#~((add-after 'unpack 'skip-failing-fdes-test
|
||||
(lambda _
|
||||
;; ERROR: ((system-error "seek" "~A" ("Bad file descriptor") (9)))
|
||||
(substitute* "test-suite/tests/ports.test"
|
||||
(("fdes not closed\"" all) (string-append all "(exit 77)")))
|
||||
#t)))
|
||||
'())))))
|
||||
#~())))))
|
||||
|
||||
(native-search-paths
|
||||
(list (search-path-specification
|
||||
|
@ -436,7 +437,7 @@ (define-public guile-next
|
|||
(arguments
|
||||
(substitute-keyword-arguments (package-arguments guile-3.0)
|
||||
((#:phases phases '%standard-phases)
|
||||
`(modify-phases ,phases
|
||||
#~(modify-phases ,phases
|
||||
(add-before 'bootstrap 'set-version
|
||||
(lambda _
|
||||
;; Tell 'git-version-gen' what version this is, or it will
|
||||
|
@ -446,7 +447,7 @@ (define-public guile-next
|
|||
;; wouldn't give us a valid version string.
|
||||
(call-with-output-file ".tarball-version"
|
||||
(lambda (port)
|
||||
(display ,version port)))))
|
||||
(display #$version port)))))
|
||||
(add-before 'check 'skip-failing-tests
|
||||
(lambda _
|
||||
(delete-file "test-suite/tests/version.test")))))))
|
||||
|
|
Loading…
Reference in a new issue