summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-01-06 21:54:08 +0100
committerLudovic Courtès <ludo@gnu.org>2019-01-09 14:47:53 +0100
commit0991fd53367907908fbd901a9fbe79540e4e4527 (patch)
tree059aa4ed7c61bb868d7d41a22b60cd91dffd2dce
parent6df4d8338d2bf94ab729e3b12e42ace0a06687ae (diff)
build: Require Guile 2.2.
* configure.ac: Require Guile 2.2. * README: Adjust accordingly. * doc/guix.texi (Requirements): Likewise. * gnu/packages/package-management.scm (guile2.0-guix): Deprecate. (guix-minimal): Inherit from GUIX, not from GUILE2.0-GUIX.
-rw-r--r--README2
-rw-r--r--configure.ac6
-rw-r--r--doc/guix.texi5
-rw-r--r--gnu/packages/package-management.scm39
4 files changed, 17 insertions, 35 deletions
diff --git a/README b/README
index e7871917f2e..296df415164 100644
--- a/README
+++ b/README
@@ -20,7 +20,7 @@ Guix is based on the [[https://nixos.org/nix/][Nix]] package manager.
20 20
21GNU Guix currently depends on the following packages: 21GNU Guix currently depends on the following packages:
22 22
23 - [[https://gnu.org/software/guile/][GNU Guile 2.2.x or 2.0.x]], version 2.0.13 or later 23 - [[https://gnu.org/software/guile/][GNU Guile 2.2.x]]
24 - [[https://notabug.org/cwebber/guile-gcrypt][Guile-Gcrypt]] 0.1.0 or later 24 - [[https://notabug.org/cwebber/guile-gcrypt][Guile-Gcrypt]] 0.1.0 or later
25 - [[https://www.gnu.org/software/make/][GNU Make]] 25 - [[https://www.gnu.org/software/make/][GNU Make]]
26 - [[https://www.gnutls.org][GnuTLS]] compiled with guile support enabled 26 - [[https://www.gnutls.org][GnuTLS]] compiled with guile support enabled
diff --git a/configure.ac b/configure.ac
index 2817e6e24d4..891fce28ae7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,16 +93,12 @@ m4_pattern_forbid([^GUIX_])
93 93
94dnl Search for 'guile' and 'guild'. This macro defines 94dnl Search for 'guile' and 'guild'. This macro defines
95dnl 'GUILE_EFFECTIVE_VERSION'. 95dnl 'GUILE_EFFECTIVE_VERSION'.
96GUILE_PKG([2.2 2.0]) 96GUILE_PKG([2.2])
97GUILE_PROGS 97GUILE_PROGS
98if test "x$GUILD" = "x"; then 98if test "x$GUILD" = "x"; then
99 AC_MSG_ERROR(['guild' binary not found; please check your guile-2.x installation.]) 99 AC_MSG_ERROR(['guild' binary not found; please check your guile-2.x installation.])
100fi 100fi
101 101
102if test "x$GUILE_EFFECTIVE_VERSION" = "x2.0"; then
103 PKG_CHECK_MODULES([GUILE], [guile-2.0 >= 2.0.13])
104fi
105
106dnl Installation directories for .scm and .go files. 102dnl Installation directories for .scm and .go files.
107guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION" 103guilemoduledir="${datarootdir}/guile/site/$GUILE_EFFECTIVE_VERSION"
108guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache" 104guileobjectdir="${libdir}/guile/$GUILE_EFFECTIVE_VERSION/site-ccache"
diff --git a/doc/guix.texi b/doc/guix.texi
index 96654165bb0..7c6a7148300 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -17,7 +17,7 @@
17@set SUBSTITUTE-SERVER ci.guix.info 17@set SUBSTITUTE-SERVER ci.guix.info
18 18
19@copying 19@copying
20Copyright @copyright{} 2012, 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès@* 20Copyright @copyright{} 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès@*
21Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@* 21Copyright @copyright{} 2013, 2014, 2016 Andreas Enge@*
22Copyright @copyright{} 2013 Nikita Karetnikov@* 22Copyright @copyright{} 2013 Nikita Karetnikov@*
23Copyright @copyright{} 2014, 2015, 2016 Alex Kost@* 23Copyright @copyright{} 2014, 2015, 2016 Alex Kost@*
@@ -645,8 +645,7 @@ GNU Guix is available for download from its website at
645GNU Guix depends on the following packages: 645GNU Guix depends on the following packages:
646 646
647@itemize 647@itemize
648@item @url{http://gnu.org/software/guile/, GNU Guile}, version 2.0.13 or 648@item @url{http://gnu.org/software/guile/, GNU Guile}, version 2.2.x;
649later, including 2.2.x;
650@item @url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version 649@item @url{https://notabug.org/cwebber/guile-gcrypt, Guile-Gcrypt}, version
6510.1.0 or later; 6500.1.0 or later;
652@item 651@item
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 85c95a75e92..8eb4e2eefe5 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net> 3;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
4;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com> 4;;; Copyright © 2017 Muriithi Frederick Muriuki <fredmanglis@gmail.com>
5;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com> 5;;; Copyright © 2017, 2018 Oleg Pykhalov <go.wigust@gmail.com>
@@ -362,36 +362,23 @@ the Nix package manager.")
362 (delete 'wrap-program))))))) 362 (delete 'wrap-program)))))))
363 363
364(define-public guile2.0-guix 364(define-public guile2.0-guix
365 (package 365 (deprecated-package "guile2.0-guix" guix))
366 (inherit guix)
367 (name "guile2.0-guix")
368 (inputs
369 `(("guile" ,guile-2.0)
370 ,@(alist-delete "guile" (package-inputs guix))))
371 (propagated-inputs
372 `(("gnutls" ,gnutls/guile-2.0)
373 ("guile-gcrypt" ,guile2.0-gcrypt)
374 ("guile-json" ,guile2.0-json)
375 ("guile-sqlite3" ,guile2.0-sqlite3)
376 ("guile-ssh" ,guile2.0-ssh)
377 ("guile-git" ,guile2.0-git)))))
378 366
379(define-public guix-minimal 367(define-public guix-minimal
380 ;; A version of Guix which is built with the minimal set of dependencies, as 368 ;; A version of Guix which is built with the minimal set of dependencies, as
381 ;; outlined in the README "Requirements" section. Intended as a CI job, so 369 ;; outlined in the README "Requirements" section. Intended as a CI job, so
382 ;; marked as hidden. 370 ;; marked as hidden.
383 (let ((guix guile2.0-guix)) 371 (hidden-package
384 (hidden-package 372 (package
385 (package 373 (inherit guix)
386 (inherit guix) 374 (name "guix-minimal")
387 (name "guix-minimal") 375 (inputs
388 (inputs 376 `(("guile" ,guile-2.2)
389 `(("guile" ,guile-2.0.13) 377 ,@(alist-delete "guile" (package-inputs guix))))
390 ,@(alist-delete "guile" (package-inputs guix)))) 378 (propagated-inputs
391 (propagated-inputs 379 (fold alist-delete
392 (fold alist-delete 380 (package-propagated-inputs guix)
393 (package-propagated-inputs guix) 381 '("guile-ssh"))))))
394 '("guile-ssh")))))))
395 382
396(define (source-file? file stat) 383(define (source-file? file stat)
397 "Return true if FILE is likely a source file, false if it is a typical 384 "Return true if FILE is likely a source file, false if it is a typical