summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-12-17 21:31:59 +0100
committerLudovic Courtès <ludo@gnu.org>2017-12-17 21:38:03 +0100
commit16613d230b3d9a9cf307c5c5d3899eb0a0c93b0e (patch)
tree25320b48fc0c6fba8d9d8b250e9b9d84fe47f8a9
parente8a051ee7c140886bce8dcd191cb10918b2d4078 (diff)
downloadguix-16613d230b3d9a9cf307c5c5d3899eb0a0c93b0e.tar.gz
man-db: Autoload (gdbm).
Fixes 'guix pull'.
Reported by ofosos on #guix.

* guix/man-db.scm: Use 'module-autoload!' instead of 'module-use!'.
so that (gdbm) is not loaded until we need it.
-rw-r--r--guix/man-db.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/man-db.scm b/guix/man-db.scm
index ae960e5a1e..5d62e0c82d 100644
--- a/guix/man-db.scm
+++ b/guix/man-db.scm
@@ -45,7 +45,7 @@
 ;;; Code:
 
 ;; Load 'gdbm-ffi' at run time to simplify the job of 'imported-modules' & co.
-(module-use! (current-module) (resolve-interface '(gdbm)))
+(module-autoload! (current-module) '(gdbm) '(gdbm-open GDBM_WRCREAT))
 
 (define-record-type <mandb-entry>
   (mandb-entry file-name name section synopsis kind)