aboutsummaryrefslogtreecommitdiff
path: root/gnu/build/svg.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2016-10-25 13:56:23 +0200
committerLudovic Courtès <ludo@gnu.org>2016-10-25 13:57:28 +0200
commit8ce84bf1f5705f5280e8bf8f150ec2e859b045ee (patch)
treeaa7ef89a9609d05a4a09e33d9e74068eded52fae /gnu/build/svg.scm
parente9a19bde40a3c8488b30cc3dbc74ea84879decc0 (diff)
downloadguix-8ce84bf1f5705f5280e8bf8f150ec2e859b045ee.tar
guix-8ce84bf1f5705f5280e8bf8f150ec2e859b045ee.tar.gz
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!'.
Diffstat (limited to 'gnu/build/svg.scm')
-rw-r--r--gnu/build/svg.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/build/svg.scm b/gnu/build/svg.scm
index d9b909cd73..f7e92a1a19 100644
--- a/gnu/build/svg.scm
+++ b/gnu/build/svg.scm
@@ -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