I put the following in ice-9/slib.scm, and while a bit gross, let me
load stdio and use printf.  This assumes that slib is a directory in
pkgdatadir; pkgsrc systems install it in /usr/pkg/share/slib and then
symlink it to /usr/pkg/share/guile/slib.

;; Load slib's init file directly, implicitly symbols into the current
;; module.
(load (string-append (assoc-ref %guile-build-info 'pkgdatadir)
                     "/slib/guile.init")))

;; use-modules will fail if the file fails to define the module
(define-module (ice-9 slib))


I'm probably going to  add a patch to pkgsrc's guile entry to change
ice-9/slib.scm to the above; right now gnucash doesn't work in pkgsrc.

Comments on the above, and how better to do it appreciated.


-- 
        Greg Troxel <[EMAIL PROTECTED]>


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to