~ruther/guix-local

8ce84bf1f5705f5280e8bf8f150ec2e859b045ee — Ludovic Courtès 9 years ago e9a19bd
svg: Autoload Guile-RSVG and Guile-Cairo.

Fixes compilation by 'guix pull' where Guile-{RSVG,Cairo} are missing.
Reported by Efraim Flashner.

* gnu/build/svg.scm: Use 'module-autoload!' rather than 'module-use!'.
1 files changed, 5 insertions(+), 3 deletions(-)

M gnu/build/svg.scm
M gnu/build/svg.scm => gnu/build/svg.scm +5 -3
@@ 22,9 22,11 @@
  #:export (svg->png))

;; We need Guile-RSVG and Guile-Cairo.  Load them lazily, at run time, to
;; allow compilation to proceed.
(module-use! (current-module) (resolve-interface '(rsvg)))
(module-use! (current-module) (resolve-interface '(cairo)))
;; allow compilation to proceed.  See also <http://bugs.gnu.org/12202>.
(module-autoload! (current-module)
                  '(rsvg) '(rsvg-handle-new-from-file))
(module-autoload! (current-module)
                  '(cairo) '(cairo-image-surface-create))

(define* (downscaled-surface surface
                             #:key