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.
This commit is contained in:
Ludovic Courtès 2017-12-17 21:31:59 +01:00
parent e8a051ee7c
commit 16613d230b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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>
(mandb-entry file-name name section synopsis kind)