guix-commits
[Top][All Lists]
Advanced

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

01/02: svg: Autoload Guile-RSVG and Guile-Cairo.


From: Ludovic Courtès
Subject: 01/02: svg: Autoload Guile-RSVG and Guile-Cairo.
Date: Tue, 25 Oct 2016 12:01:30 +0000 (UTC)

civodul pushed a commit to branch master
in repository guix.

commit 8ce84bf1f5705f5280e8bf8f150ec2e859b045ee
Author: Ludovic Courtès <address@hidden>
Date:   Tue Oct 25 13:56:23 2016 +0200

    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!'.
---
 gnu/build/svg.scm |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/build/svg.scm b/gnu/build/svg.scm
index d9b909c..f7e92a1 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



reply via email to

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