guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: man-db: Autoload (gdbm).


From: Ludovic Courtès
Subject: 01/02: man-db: Autoload (gdbm).
Date: Sun, 17 Dec 2017 15:38:14 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 16613d230b3d9a9cf307c5c5d3899eb0a0c93b0e
Author: Ludovic Courtès <address@hidden>
Date:   Sun Dec 17 21:31:59 2017 +0100

    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 ae960e5..5d62e0c 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]