From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Can the builder access channel code? Date: Fri, 24 May 2019 16:02:10 +0200 Message-ID: <87o93sx865.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hUAoT-0003K3-AC for guix-devel@gnu.org; Fri, 24 May 2019 10:04:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hUAlz-0001AG-9q for guix-devel@gnu.org; Fri, 24 May 2019 10:02:20 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:58041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hUAlz-000180-3K for guix-devel@gnu.org; Fri, 24 May 2019 10:02:15 -0400 Received: from bababa (lfbn-1-4117-19.w92-169.abo.wanadoo.fr [92.169.116.19]) (Authenticated sender: pierre@atlas.engineer) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 793B7100003 for ; Fri, 24 May 2019 14:02:11 +0000 (UTC) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I'm working on a new build-systems from a channel. When building a package using this build-system, I get =2D-8<---------------cut here---------------start------------->8--- building /gnu/store/j1qracwgv7qbxslbf6755z8wcwlv3bcf-foobar-qux-hires-2010.= drv... Backtrace: 4 (primitive-load "/gnu/store/v4yp12m19g3bnn901kxa65xpifp?") In ice-9/eval.scm: 191:35 3 (_ #f) 213:21 2 (_ #f) 223:20 1 (proc #) In unknown file: 0 (%resolve-variable (7 . foobar-build) #) ERROR: In procedure %resolve-variable: Unbound variable: foobar-build builder for `/gnu/store/j1qracwgv7qbxslbf6755z8wcwlv3bcf-foobar-qux-hires-2= 010.drv' failed with exit code 1 build of /gnu/store/j1qracwgv7qbxslbf6755z8wcwlv3bcf-foobar-qux-hires-2010.= drv failed View build log at '/var/log/guix/drvs/j1/qracwgv7qbxslbf6755z8wcwlv3bcf-foo= bar-qux-hires-2010.drv.bz2'. guix build: error: build of `/gnu/store/j1qracwgv7qbxslbf6755z8wcwlv3bcf-fo= obar-qux-hires-2010.drv' failed =2D-8<---------------cut here---------------end--------------->8--- Here is the offending part: =2D-8<---------------cut here---------------start------------->8--- (define* (foobar-build store name inputs #:key (tests? #f) (build-targets #f) (phases '(@ (my-guix build foobar-build-system) %standard-phases)) (outputs '("out")) (search-paths '()) (system (%current-system)) (guile #f) (substitutable? #t) (imported-modules %foobar-build-system-modules) (modules '((my-guix build foobar-build-system) (guix build utils)))) ... =2D-8<---------------cut here---------------end--------------->8--- The default value of the key argument "modules" is the problem. Is it possible that the builder cannot find channel modules, or any module out of the Guix tree? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlzn+WIACgkQm9z0l6S7 zH+AmQf8C0jYQlOkdVq0Tp9NoE3pN1Nl9i1CAUglVhEHA9Rwyhgm4U3mab83BEgI gtcVpXyQhfM25Paf1rjrTP1feNX7MbO4gZ1iBDUNvJwjo/LlxERUm582ZrJfY00c xtWjNnwUmkk7O1xq/h8jSaycPBkt+zJ5bvAqzcxPzVcadNtmHo+BvLX8nVG/qYC5 1J4Oo6O+K08kNBFzPZ6L686JYXyl7X4Z14HEPQ8iNFFY3da5EnyozWX+E/WFWKrP Zb84udajm2wxKTlYEvw3cLzl/Af2fDVt4ktrFIZEgna3vOkXjZZrNj0PwsZaOLrP iJKBKgUQTkKcwCXC0y4qwym6vg7eNA== =BWvw -----END PGP SIGNATURE----- --=-=-=--