summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-09-30 00:03:14 +0200
committerLudovic Courtès <ludo@gnu.org>2021-09-30 00:06:30 +0200
commitb00fbabdf6e5d472e0ef47d6e927045cf7a3bccc (patch)
treea8f88fc7f8dc9b0b9e7f992654be1c88ac5f326a /gnu/packages
parentf17517d6c842116da04d8fff9e635a86fcdcbbaa (diff)
gnu: guile: Use 'modify-inputs' where appropriate.
* gnu/packages/guile.scm (guile-3.0)[propagated-inputs]: Use 'modify-inputs'. (guile-3.0/libgc-7)[propagated-inputs]: Likewise. (guile-for-guile-emacs)[native-inputs]: Likewise. * gnu/packages/make-bootstrap.scm (make-guile-static): Likewise.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/guile.scm29
-rw-r--r--gnu/packages/make-bootstrap.scm9
2 files changed, 17 insertions, 21 deletions
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 5cb7ab23dc5..c1a551f56a5 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -63,9 +63,7 @@
63 #:use-module (guix build-system gnu) 63 #:use-module (guix build-system gnu)
64 #:use-module (guix build-system guile) 64 #:use-module (guix build-system guile)
65 #:use-module (guix deprecation) 65 #:use-module (guix deprecation)
66 #:use-module (guix utils) 66 #:use-module (guix utils))
67 #:use-module (ice-9 match)
68 #:use-module ((srfi srfi-1) #:prefix srfi-1:))
69 67
70;;; Commentary: 68;;; Commentary:
71;;; 69;;;
@@ -327,9 +325,8 @@ without requiring the source code to be rewritten.")
327 ;; Build with the bundled mini-GMP to avoid interference with GnuTLS' own 325 ;; Build with the bundled mini-GMP to avoid interference with GnuTLS' own
328 ;; use of GMP via Nettle: <https://issues.guix.gnu.org/46330>. 326 ;; use of GMP via Nettle: <https://issues.guix.gnu.org/46330>.
329 (propagated-inputs 327 (propagated-inputs
330 (srfi-1:fold srfi-1:alist-delete 328 (modify-inputs (package-propagated-inputs guile-2.2)
331 (package-propagated-inputs guile-2.2) 329 (delete "gmp" "libltdl")))
332 '("gmp" "libltdl")))
333 (arguments 330 (arguments
334 (substitute-keyword-arguments (package-arguments guile-2.0) 331 (substitute-keyword-arguments (package-arguments guile-2.0)
335 ((#:configure-flags flags ''()) 332 ((#:configure-flags flags ''())
@@ -394,8 +391,8 @@ without requiring the source code to be rewritten.")
394 (package 391 (package
395 (inherit guile-3.0-latest) 392 (inherit guile-3.0-latest)
396 (propagated-inputs 393 (propagated-inputs
397 `(("bdw-gc" ,libgc-7) 394 (modify-inputs (package-propagated-inputs guile-3.0)
398 ,@(srfi-1:alist-delete "bdw-gc" (package-propagated-inputs guile-3.0))))))) 395 (replace "bdw-gc" libgc-7))))))
399 396
400(define-public guile-3.0/fixed 397(define-public guile-3.0/fixed
401 ;; A package of Guile that's rarely changed. It is the one used in the 398 ;; A package of Guile that's rarely changed. It is the one used in the
@@ -596,18 +593,18 @@ GNU@tie{}Guile. Use the @code{(ice-9 readline)} module and call its
596 ;; FAIL: test-out-of-memory 593 ;; FAIL: test-out-of-memory
597 (substitute* "test-suite/standalone/Makefile.am" 594 (substitute* "test-suite/standalone/Makefile.am"
598 (("(check_SCRIPTS|TESTS) \\+= test-out-of-memory") "")) 595 (("(check_SCRIPTS|TESTS) \\+= test-out-of-memory") ""))
599 596
600 (patch-shebang "build-aux/git-version-gen") 597 (patch-shebang "build-aux/git-version-gen")
601 (invoke "sh" "autogen.sh") 598 (invoke "sh" "autogen.sh")
602 #t)))))) 599 #t))))))
603 (native-inputs 600 (native-inputs
604 `(("autoconf" ,autoconf) 601 (modify-inputs (package-native-inputs guile-2.2)
605 ("automake" ,automake) 602 (prepend autoconf
606 ("libtool" ,libtool) 603 automake
607 ("flex" ,flex) 604 libtool
608 ("texinfo" ,texinfo) 605 flex
609 ("gettext" ,gettext-minimal) 606 texinfo
610 ,@(package-native-inputs guile-2.2)))))) 607 gettext-minimal))))))
611 608
612 609
613;;; 610;;;
diff --git a/gnu/packages/make-bootstrap.scm b/gnu/packages/make-bootstrap.scm
index 0014783b4ad..267adde48c5 100644
--- a/gnu/packages/make-bootstrap.scm
+++ b/gnu/packages/make-bootstrap.scm
@@ -686,13 +686,12 @@ for `sh' in $PATH, and without nscd, and with static NSS modules."
686 (outputs (delete "debug" (package-outputs guile))) 686 (outputs (delete "debug" (package-outputs guile)))
687 687
688 (inputs 688 (inputs
689 `(("libunistring:static" ,libunistring "static") 689 (modify-inputs (package-inputs guile)
690 ,@(package-inputs guile))) 690 (prepend `(,libunistring "static"))))
691 691
692 (propagated-inputs 692 (propagated-inputs
693 `(("bdw-gc" ,libgc/static-libs) 693 (modify-inputs (package-propagated-inputs guile)
694 ,@(alist-delete "bdw-gc" 694 (replace "bdw-gc" libgc/static-libs)))
695 (package-propagated-inputs guile))))
696 (arguments 695 (arguments
697 (substitute-keyword-arguments (package-arguments guile) 696 (substitute-keyword-arguments (package-arguments guile)
698 ((#:configure-flags flags '()) 697 ((#:configure-flags flags '())