diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2018-06-04 22:31:48 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2018-06-14 11:16:58 +0200 |
| commit | c5a2e1ffcb029f50c4c18352cf378b61c41c625e (patch) | |
| tree | d0b509f57430e6ffa40233fe8cd87d6bbd5b0a3c | |
| parent | 6892f0a247a06ac12c8c462692f8b3f93e872911 (diff) | |
build: Require Guile-SQLite3.
The next commits make (sqlite3) an indirect dependency of (gnu build
install), which is itself used by (guix scripts system), hence this new
requirement.
* configure.ac: Error out when $guix_cv_have_recent_guile_sqlite3 is
false. Remove HAVE_GUILE_SQLITE3 Automake conditional.
* Makefile.am (MODULES, SCM_TESTS): Remove HAVE_GUILE_SQLITE3 conditions.
* doc/guix.texi (Requirements): Add Guile-SQLite3.
* README: Ditto.
* gnu/packages/package-management.scm (guix)[propagated-inputs]: Add
GUILE-SQLITE3.
[arguments]: In 'wrap-program' phase, take guile-sqlite3 into account.
| -rw-r--r-- | Makefile.am | 16 | ||||
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | configure.ac | 5 | ||||
| -rw-r--r-- | doc/guix.texi | 3 | ||||
| -rw-r--r-- | gnu/packages/package-management.scm | 4 |
5 files changed, 14 insertions, 17 deletions
diff --git a/Makefile.am b/Makefile.am index 0267e8fe50f..f4cdba94a2d 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -262,11 +262,7 @@ STORE_MODULES = \ | |||
| 262 | guix/store/database.scm \ | 262 | guix/store/database.scm \ |
| 263 | guix/store/deduplication.scm | 263 | guix/store/deduplication.scm |
| 264 | 264 | ||
| 265 | if HAVE_GUILE_SQLITE3 | ||
| 266 | MODULES += $(STORE_MODULES) | 265 | MODULES += $(STORE_MODULES) |
| 267 | else | ||
| 268 | MODULES_NOT_COMPILED += $(STORE_MODULES) | ||
| 269 | endif !HAVE_GUILE_SQLITE3 | ||
| 270 | 266 | ||
| 271 | # Internal modules with test suite support. | 267 | # Internal modules with test suite support. |
| 272 | dist_noinst_DATA = guix/tests.scm guix/tests/http.scm | 268 | dist_noinst_DATA = guix/tests.scm guix/tests/http.scm |
| @@ -379,7 +375,9 @@ SCM_TESTS = \ | |||
| 379 | tests/scripts-build.scm \ | 375 | tests/scripts-build.scm \ |
| 380 | tests/containers.scm \ | 376 | tests/containers.scm \ |
| 381 | tests/pack.scm \ | 377 | tests/pack.scm \ |
| 382 | tests/import-utils.scm | 378 | tests/import-utils.scm \ |
| 379 | tests/store-database.scm \ | ||
| 380 | tests/store-deduplication.scm | ||
| 383 | 381 | ||
| 384 | if HAVE_GUILE_JSON | 382 | if HAVE_GUILE_JSON |
| 385 | 383 | ||
| @@ -391,14 +389,6 @@ SCM_TESTS += \ | |||
| 391 | 389 | ||
| 392 | endif | 390 | endif |
| 393 | 391 | ||
| 394 | if HAVE_GUILE_SQLITE3 | ||
| 395 | |||
| 396 | SCM_TESTS += \ | ||
| 397 | tests/store-database.scm \ | ||
| 398 | tests/store-deduplication.scm | ||
| 399 | |||
| 400 | endif | ||
| 401 | |||
| 402 | SH_TESTS = \ | 392 | SH_TESTS = \ |
| 403 | tests/guix-build.sh \ | 393 | tests/guix-build.sh \ |
| 404 | tests/guix-download.sh \ | 394 | tests/guix-download.sh \ |
| @@ -23,7 +23,8 @@ GNU Guix currently depends on the following packages: | |||
| 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 or 2.0.x]], version 2.0.13 or later |
| 24 | - [[https://gnupg.org/][GNU libgcrypt]] | 24 | - [[https://gnupg.org/][GNU libgcrypt]] |
| 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 |
| 27 | - [[https://notabug.org/civodul/guile-sqlite3][Guile-SQLite3]] | ||
| 27 | - [[https://gitlab.com/guile-git/guile-git][Guile-Git]] | 28 | - [[https://gitlab.com/guile-git/guile-git][Guile-Git]] |
| 28 | - [[http://www.zlib.net/][zlib]] | 29 | - [[http://www.zlib.net/][zlib]] |
| 29 | - optionally [[https://savannah.nongnu.org/projects/guile-json/][Guile-JSON]], for the 'guix import pypi' command | 30 | - optionally [[https://savannah.nongnu.org/projects/guile-json/][Guile-JSON]], for the 'guix import pypi' command |
diff --git a/configure.ac b/configure.ac index d338bfda53b..b866e91b2c5 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -126,8 +126,9 @@ AM_CONDITIONAL([HAVE_GUILE_JSON], [test "x$have_guile_json" = "xyes"]) | |||
| 126 | 126 | ||
| 127 | dnl Guile-Sqlite3 is used by the (guix store ...) modules. | 127 | dnl Guile-Sqlite3 is used by the (guix store ...) modules. |
| 128 | GUIX_CHECK_GUILE_SQLITE3 | 128 | GUIX_CHECK_GUILE_SQLITE3 |
| 129 | AM_CONDITIONAL([HAVE_GUILE_SQLITE3], | 129 | if test "x$guix_cv_have_recent_guile_sqlite3" != "xyes"; then |
| 130 | [test "x$guix_cv_have_recent_guile_sqlite3" = "xyes"]) | 130 | AC_MSG_ERROR([A recent Guile-SQLite3 could not be found; please install it.]) |
| 131 | fi | ||
| 131 | 132 | ||
| 132 | dnl Make sure we have a full-fledged Guile. | 133 | dnl Make sure we have a full-fledged Guile. |
| 133 | GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads]) | 134 | GUIX_ASSERT_GUILE_FEATURES([regex posix socket net-db threads]) |
diff --git a/doc/guix.texi b/doc/guix.texi index 4871bbcfe48..d86ac5044f1 100644 --- a/doc/guix.texi +++ b/doc/guix.texi | |||
| @@ -615,6 +615,9 @@ later, including 2.2.x; | |||
| 615 | Guile,, gnutls-guile, GnuTLS-Guile}); | 615 | Guile,, gnutls-guile, GnuTLS-Guile}); |
| 616 | @item | 616 | @item |
| 617 | @c FIXME: Specify a version number once a release has been made. | 617 | @c FIXME: Specify a version number once a release has been made. |
| 618 | @uref{https://notabug.org/civodul/guile-sqlite3, Guile-SQLite3}; | ||
| 619 | @item | ||
| 620 | @c FIXME: Specify a version number once a release has been made. | ||
| 618 | @uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, from August | 621 | @uref{https://gitlab.com/guile-git/guile-git, Guile-Git}, from August |
| 619 | 2017 or later; | 622 | 2017 or later; |
| 620 | @item @url{http://zlib.net, zlib}; | 623 | @item @url{http://zlib.net, zlib}; |
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 19954c3608b..786d2a53e99 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm | |||
| @@ -213,12 +213,13 @@ | |||
| 213 | (let* ((out (assoc-ref outputs "out")) | 213 | (let* ((out (assoc-ref outputs "out")) |
| 214 | (guile (assoc-ref inputs "guile")) | 214 | (guile (assoc-ref inputs "guile")) |
| 215 | (json (assoc-ref inputs "guile-json")) | 215 | (json (assoc-ref inputs "guile-json")) |
| 216 | (sqlite (assoc-ref inputs "guile-sqlite3")) | ||
| 216 | (git (assoc-ref inputs "guile-git")) | 217 | (git (assoc-ref inputs "guile-git")) |
| 217 | (bs (assoc-ref inputs | 218 | (bs (assoc-ref inputs |
| 218 | "guile-bytestructures")) | 219 | "guile-bytestructures")) |
| 219 | (ssh (assoc-ref inputs "guile-ssh")) | 220 | (ssh (assoc-ref inputs "guile-ssh")) |
| 220 | (gnutls (assoc-ref inputs "gnutls")) | 221 | (gnutls (assoc-ref inputs "gnutls")) |
| 221 | (deps (list json gnutls git bs ssh)) | 222 | (deps (list json sqlite gnutls git bs ssh)) |
| 222 | (effective | 223 | (effective |
| 223 | (read-line | 224 | (read-line |
| 224 | (open-pipe* OPEN_READ | 225 | (open-pipe* OPEN_READ |
| @@ -275,6 +276,7 @@ | |||
| 275 | (propagated-inputs | 276 | (propagated-inputs |
| 276 | `(("gnutls" ,gnutls) | 277 | `(("gnutls" ,gnutls) |
| 277 | ("guile-json" ,guile-json) | 278 | ("guile-json" ,guile-json) |
| 279 | ("guile-sqlite3" ,guile-sqlite3) | ||
| 278 | ("guile-ssh" ,guile-ssh) | 280 | ("guile-ssh" ,guile-ssh) |
| 279 | ("guile-git" ,guile-git))) | 281 | ("guile-git" ,guile-git))) |
| 280 | 282 | ||
