From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 14 18:00:12 2021 Received: (at 47115) by debbugs.gnu.org; 14 Mar 2021 22:00:12 +0000 Received: from localhost ([127.0.0.1]:34365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLYmR-0003kI-O1 for submit@debbugs.gnu.org; Sun, 14 Mar 2021 18:00:12 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:34132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLYmP-0003j1-RL for 47115@debbugs.gnu.org; Sun, 14 Mar 2021 18:00:10 -0400 Received: from marsh.hcoop.net ([45.55.52.66]) by minsky.hcoop.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLYmK-0006lX-92 for 47115@debbugs.gnu.org; Sun, 14 Mar 2021 18:00:04 -0400 Date: Sun, 14 Mar 2021 18:00:03 -0400 (EDT) From: Jack Hill X-X-Sender: jackhill@marsh.hcoop.net To: 47115@debbugs.gnu.org Subject: Re: bug#47115: Failure building grub-img.png when reconfiguring In-Reply-To: Message-ID: References: <87a6r7294k.fsf@netris.org> <877dmb1owa.fsf@netris.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="925712948-1059117909-1615759204=:8138" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47115 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --925712948-1059117909-1615759204=:8138 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: 8BIT Okay, I've started looking at the builder a little more: jackhill@alperton ~$ cat /gnu/store/larqpc2wjhnc6jmj4885k8lynd19fl4m-grub-image.png-builder (if (string-suffix? ".svg" "/gnu/store/83qplqmavzphd30hm1maxwlh166ylpwr-guix-artwork-2f2fe74-checkout/grub/GuixSD-fully-black-4-3.svg") (begin (use-modules (gnu build svg)) (svg->png "/gnu/store/83qplqmavzphd30hm1maxwlh166ylpwr-guix-artwork-2f2fe74-checkout/grub/GuixSD-fully-black-4-3.svg" ((@ (guile) getenv) "out") #:width 1024 #:height 768)) (copy-file "/gnu/store/83qplqmavzphd30hm1maxwlh166ylpwr-guix-artwork-2f2fe74-checkout/grub/GuixSD-fully-black-4-3.svg" ((@ (guile) getenv) "out"))) The problem appears to be in the svg->png procedure or at least in the svg.scm file. On the "bad" system: jackhill@kalessin ~$ guix environment --ad-hoc guile guile-rsvg guile-readline jackhill@kalessin ~ [env]$ guile GNU Guile 3.0.5 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use (gnu build svg) ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /run/current-system/profile/share/guile/site/3.0/gnu/build/svg.scm ;;; WARNING: compilation of /run/current-system/profile/share/guile/site/3.0/gnu/build/svg.scm failed: ;;; failed to create path for auto-compiled file "/run/current-system/profile/share/guile/site/3.0/gnu/build/svg.scm" scheme@(guile-user)> (svg->png "/gnu/store/83qplqmavzphd30hm1maxwlh166ylpwr-guix-artwork-2f2fe74-checkout/grub/GuixSD-fully-black-4-3.svg" "/tmp/test.png") ice-9/boot-9.scm:1669:16: In procedure raise-exception: Wrong type (expecting finalized smob): # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. On the good system ckhill@alperton ~$ guix environment --ad-hoc guile guile-rsvg guile-readline jackhill@alperton ~ [env]$ guile GNU Guile 3.0.5 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use (gnu build svg) ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /run/current-system/profile/share/guile/site/3.0/gnu/build/svg.scm ;;; compiled /home/jackhill/.cache/guile/ccache/3.0-LE-8-4.4/gnu/store/0j6w61vjjvp4zqzrqvyhqm6254ppzh8y-guix-1.2.0-16.c8887a5/share/guile/site/3.0/gnu/build/svg.scm.go scheme@(guile-user)> (svg->png "/gnu/store/83qplqmavzphd30hm1maxwlh166ylpwr-guix-artwork-2f2fe74-checkout/grub/GuixSD-fully-black-4-3.svg" "/tmp/test.png") and a png file is produced. Particularly relivant seems the auto-compilation failure. To be continued… Best, Jack --925712948-1059117909-1615759204=:8138--