From 16613d230b3d9a9cf307c5c5d3899eb0a0c93b0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 17 Dec 2017 21:31:59 +0100 Subject: [PATCH] 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. --- guix/man-db.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ (define-module (guix man-db) ;;; 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 file-name name section synopsis kind)