From unknown Tue Aug 19 10:00:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#45453 <45453@debbugs.gnu.org> To: bug#45453 <45453@debbugs.gnu.org> Subject: Status: Error when I try to build a package using a JSON definition Reply-To: bug#45453 <45453@debbugs.gnu.org> Date: Tue, 19 Aug 2025 17:00:53 +0000 retitle 45453 Error when I try to build a package using a JSON definition reassign 45453 guix submitter 45453 Ryan Prior severity 45453 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 26 19:38:34 2020 Received: (at submit) by debbugs.gnu.org; 27 Dec 2020 00:38:35 +0000 Received: from localhost ([127.0.0.1]:60110 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktK4w-0004tz-Jo for submit@debbugs.gnu.org; Sat, 26 Dec 2020 19:38:34 -0500 Received: from lists.gnu.org ([209.51.188.17]:51038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktK4u-0004tq-NH for submit@debbugs.gnu.org; Sat, 26 Dec 2020 19:38:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktK4t-0003Ig-7r for bug-guix@gnu.org; Sat, 26 Dec 2020 19:38:32 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:41146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktK4p-00030l-1n for bug-guix@gnu.org; Sat, 26 Dec 2020 19:38:30 -0500 Date: Sun, 27 Dec 2020 00:38:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609029501; bh=gkbeyZzymeKEylTEji27QQq9AgwA8+Qf00z5tIE7D20=; h=Date:To:From:Cc:Reply-To:Subject:From; b=G2i9kLN8OR51tBJG3ZX1JV/IJ99dDGt0Msm+lAxzFEz2GQx4EG1xOp4AS+Sism+mi hPZrsRPKSolrKmr3mk5gWeas1qe+BEht9JGU6QuWkwMORAAP56quQdPvcHP3D/eUtZ L6SkoP6fX07XFWkLUlSotfmdz2/u9u04Cz6QMyKY= To: bug-guix@gnu.org From: Ryan Prior Subject: Error when I try to build a package using a JSON definition Message-ID: <87wnx4nkx1.fsf@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU" X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=185.70.40.22; envelope-from=rprior@protonmail.com; helo=mail2.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit Cc: Ricardo Wurmus 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: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi guix! Today I wrote a package in Guile and then decided to try and reproduce the same thing using JSON, but I hit a snag. I'm attaching the package definition in its Guile and JSON forms, along with the error I get when I try to build the package using `guix build -f countdown.json'. Any idea what the issue here is or how I should go about debugging? Thank you! Ryan --b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU Content-Type: application/octet-stream; name=countdown.scm Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=countdown.scm Ozs7IENvcHlyaWdodCDCqSAyMDIwIFJ5YW4gUHJpb3IgPHJwcmlvckBwcm90b25tYWlsLmNvbT4K CihkZWZpbmUtbW9kdWxlICh0ZXN0aW5nIGNvdW50ZG93bikKICAjOnVzZS1tb2R1bGUgKGdudSBw YWNrYWdlcyBnb2xhbmcpCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFja2FnZXMgdGVybWluYWxzKQog ICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIHRleHR1dGlscykKICAjOnVzZS1tb2R1bGUgKGd1 aXggYnVpbGQtc3lzdGVtIGdvKQogICM6dXNlLW1vZHVsZSAoZ3VpeCBnaXQtZG93bmxvYWQpCiAg Izp1c2UtbW9kdWxlICgoZ3VpeCBsaWNlbnNlcykgIzpwcmVmaXggbGljZW5zZTopCiAgIzp1c2Ut bW9kdWxlIChndWl4IHBhY2thZ2VzKSkKCihkZWZpbmUtcHVibGljIGNvdW50ZG93bgogIChwYWNr YWdlCiAgICAobmFtZSAiY291bnRkb3duIikKICAgICh2ZXJzaW9uICIxLjAuMCIpCiAgICAoc291 cmNlCiAgICAgKG9yaWdpbgogICAgICAgKG1ldGhvZCBnaXQtZmV0Y2gpCiAgICAgICAodXJpIChn aXQtcmVmZXJlbmNlCiAgICAgICAgICAgICAodXJsICJodHRwczovL2dpdGh1Yi5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dXNlciBpbnRlcmZhY2UuIikKICAgIChsaWNlbnNlIGxpY2Vuc2U6 ZXhwYXQpKSkK --b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU Content-Type: application/json; name=countdown.json Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=countdown.json WwogIHsKICAgICJuYW1lIjogImNvdW50ZG93biIsCiAgICAidmVyc2lvbiI6ICIxLjAuMCIsCiAg ICAic291cmNlIjogImh0dHBzOi8vZ2l0aHViLmNvbS9hbnRvbm1lZHYvY291bnRkb3duL2FyY2hp dmUvdjEuMC4wLnRhci5neiIsCiAgICAiYnVpbGQtc3lzdGVtIjogImdvIiwKICAgICJhcmd1bWVu dHMiOiB7CiAgICAgICJpbXBvcnQtcGF0aCI6ICJnaXRodWIuY29tL2FudG9ubWVkdi9jb3VudGRv d24iCiAgICB9LAogICAgImhvbWUtcGFnZSI6ICJodHRwczovL2dpdGh1Yi5jb20vYW50b25tZWR2 L2NvdW50ZG93biIsCiAgICAic3lub3BzaXMiOiAiQ291bnRzIHRvIHplcm8gd2l0aCBhIHRleHQg dXNlciBpbnRlcmZhY2UuIiwKICAgICJkZXNjcmlwdGlvbiI6ICJDb3VudGRvd24gcHJvdmlkZXMg YSBmYW5jeSB0ZXh0IGRpc3BsYXkgd2hpbGUgaXQgY291bnRzIGRvd24gdG8gemVybyBmcm9tIGEg c3RhcnRpbmcgcG9pbnQgeW91IHByb3ZpZGUuICBUaGUgdXNlciBjYW4gcGF1c2UgYW5kIHJlc3Vt ZSB0aGUgY291bnRkb3duIGZyb20gdGhlIHRleHQgdXNlciBpbnRlcmZhY2UuIiwKICAgICJsaWNl bnNlIjogImV4cGF0IiwKICAgICJuYXRpdmUtaW5wdXRzIjogWwogICAgICAiZ28tZ2l0aHViLmNv bS1tYXR0bi1nby1ydW5ld2lkdGgiLAogICAgICAiZ28tZ2l0aHViLmNvbS1uc2YtdGVybWJveC1n byIKICAgIF0KICB9Cl0K --b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU Content-Type: text/plain; name=countdown-build.out.txt Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=countdown-build.out.txt DQpTdGFydGluZyBkb3dubG9hZCBvZiAvdG1wL2d1aXgtZmlsZS52TzlnM3UNCkZyb20gaHR0cHM6 Ly9naXRodWIuY29tL2FudG9ubWVkdi9jb3VudGRvd24vYXJjaGl2ZS92MS4wLjAudGFyLmd6Li4u DQpmb2xsb3dpbmcgcmVkaXJlY3Rpb24gdG8gYGh0dHBzOi8vY29kZWxvYWQuZ2l0aHViLmNvbS9h bnRvbm1lZHYvY291bnRkb3duL3Rhci5nei92MS4wLjAnLi4uDQpJbiBwcm9jZWR1cmUgZ2V0YWRk cmluZm86IE5hbWUgb3Igc2VydmljZSBub3Qga25vd24NCmZhaWxlZCB0byBkb3dubG9hZCAiL3Rt cC9ndWl4LWZpbGUudk85ZzN1IiBmcm9tICJodHRwczovL2dpdGh1Yi5jb20vYW50b25tZWR2L2Nv dW50ZG93bi9hcmNoaXZlL3YxLjAuMC50YXIuZ3oiDQpCYWNrdHJhY2U6DQpJbiBpY2UtOS9ib290 LTkuc2NtOg0KICAxNzM2OjEwIDE5ICh3aXRoLWV4Y2VwdGlvbi1oYW5kbGVyIF8gXyAjOnVud2lu ZD8gXyAjIF8pDQogIDE3MzE6MTUgMTggKHdpdGgtZXhjZXB0aW9uLWhhbmRsZXIgIzxwcm9jZWR1 cmUgN2YwODk4NTJlYzMwIGF0IGlj4oCmPiDigKYpDQpJbiBndWl4L3N0YXR1cy5zY206DQogICAg NzgwOjQgMTcgKGNhbGwtd2l0aC1zdGF0dXMtcmVwb3J0IF8gXykNCkluIGljZS05L2Jvb3QtOS5z Y206DQogIDE3MzY6MTAgMTYgKHdpdGgtZXhjZXB0aW9uLWhhbmRsZXIgXyBfICM6dW53aW5kPyBf ICMgXykNCkluIGd1aXgvc3RvcmUuc2NtOg0KICAgNjMyOjM3IDE1ICh0aHVuayk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KCJuYXRpdmUtaW5wdXRzIiAuICMoImdvLWdpdGh14oCmIiDigKYpKSDigKYpIOKA pikNCkluIGljZS05L3BvcnRzLnNjbToNCiAgIDQ0MDoxMSAgMyAoY2FsbC13aXRoLWlucHV0LWZp bGUgI2YgIzxwcm9jZWR1cmUgN2YwODk3M2FkMzQwIGF0IGfigKY+IOKApikNCkluIHVua25vd24g ZmlsZToNCiAgICAgICAgICAgMiAob3Blbi1maWxlICNmICJyIiAjOmVuY29kaW5nICNmICM6Z3Vl c3MtZW5jb2RpbmcgI2YpDQpJbiBpY2UtOS9ib290LTkuc2NtOg0KICAxNjY5OjE2ICAxIChyYWlz ZS1leGNlcHRpb24gXyAjOmNvbnRpbnVhYmxlPyBfKQ0KICAxNjY5OjE2ICAwIChyYWlzZS1leGNl cHRpb24gXyAjOmNvbnRpbnVhYmxlPyBfKQ0KDQppY2UtOS9ib290LTkuc2NtOjE2Njk6MTY6IElu IHByb2NlZHVyZSByYWlzZS1leGNlcHRpb246DQpXcm9uZyB0eXBlIChleHBlY3Rpbmcgc3RyaW5n KTogI2YNCg== --b1_MhF7RM8yJyCBa3yMxwAdORzxoBOqMOkQ2gcP8dU7wU-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 26 21:28:25 2020 Received: (at 45453) by debbugs.gnu.org; 27 Dec 2020 02:28:25 +0000 Received: from localhost ([127.0.0.1]:60135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktLnF-0007Ta-2Q for submit@debbugs.gnu.org; Sat, 26 Dec 2020 21:28:25 -0500 Received: from lepiller.eu ([89.234.186.109]:58474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktLnC-0007TP-MI for 45453@debbugs.gnu.org; Sat, 26 Dec 2020 21:28:23 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 0a3cb5f2; Sun, 27 Dec 2020 02:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=MVgggsgggNY39z698o//m83kaVmYqMFBmExPALb1QIA=; b=jsFrdPrnyldU j4Upbk8RuVlMMJklN0NOzZXyXnxosIxrSOzMChCDpzL/OVVI/jJCYQxmD94OsLPx M5RXhVO4ZopZfrw93KLl2/Mqixlb8aIltCIoAkl1jDAd0ykfDkps9etBObwonY9r X3YGZWqKAUrPplXKRwn3RHcvSPh6DeRGavcpb/Hlfsxc6nb8ydts9Bo7rgmn7PiW Q+EIaoyyH5wAcB/DKApR/Ew4OgVfCxc7b9rYtXA/gb79wbb+7a8Qgxw2xTXIYY0A 1DZXTSQdk30tpgoorehirFHPso1A0a8YYdswoVgd/QALmEZCNdDLhIq93efSJZvL F6CtNHrABg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id d571a265 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sun, 27 Dec 2020 02:28:19 +0000 (UTC) Date: Sat, 26 Dec 2020 21:28:10 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <87wnx4nkx1.fsf@protonmail.com> References: <87wnx4nkx1.fsf@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----L1VPZY8X9QE233C8U2JFFTLEBMPJE2" Content-Transfer-Encoding: 7bit Subject: Re: bug#45453: Error when I try to build a package using a JSON definition To: Ryan Prior ,45453@debbugs.gnu.org From: Julien Lepiller Message-ID: <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45453 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 (-) ------L1VPZY8X9QE233C8U2JFFTLEBMPJE2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm surprised guix builds from a json file=E2=80=A6 doesn't it simply inter= pret it as a guile file, and fails at that? Anyway, in the log you attached, it seems the issue is with downloading th= e sources=2E For some reason it cannot resolve the github=2Ecom domain=2E I= wonder if this is just a transient network issue on your side? Have you tr= ied again later? If not, it could be that the source derivation is not fixed-output=2E Afte= r all, the json definition doesn't specify a hash (it's not even an origin = record)=2E Again I'm confused by the fact that guix lets you specify packag= es with json, so I'm not sure how that part is converted to a package objec= t=2E Is that documented? Le 26 d=C3=A9cembre 2020 19:38:18 GMT-05:00, Ryan Prior via Bug reports fo= r GNU Guix a =C3=A9crit : >Hi guix! Today I wrote a package in Guile and then decided to try and >reproduce the same thing using JSON, but I hit a snag=2E I'm attaching >the package definition in its Guile and JSON forms, along with the >error >I get when I try to build the package using `guix build -f >countdown=2Ejson'=2E > >Any idea what the issue here is or how I should go about debugging? > >Thank you! >Ryan ------L1VPZY8X9QE233C8U2JFFTLEBMPJE2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm surprised guix builds from a json file=E2=80= =A6 doesn't it simply interpret it as a guile file, and fails at that?
<= br>Anyway, in the log you attached, it seems the issue is with downloading = the sources=2E For some reason it cannot resolve the github=2Ecom domain=2E= I wonder if this is just a transient network issue on your side? Have you = tried again later?

If not, it could be that the source derivation is= not fixed-output=2E After all, the json definition doesn't specify a hash = (it's not even an origin record)=2E Again I'm confused by the fact that gui= x lets you specify packages with json, so I'm not sure how that part is con= verted to a package object=2E Is that documented?

Le 26 d=C3=A9cembre 2020 19:38:18 GMT-05:00, Ryan Prior via Bug re= ports for GNU Guix <bug-guix@gnu=2Eorg> a =C3=A9crit :
Hi guix! Today I wrote a package in Guile and then d=
ecided to try and
reproduce the same thing using JSON, but I hit a snag= =2E I'm attaching
the package definition in its Guile and JSON forms, al= ong with the error
I get when I try to build the package using `guix bui= ld -f countdown=2Ejson'=2E

Any idea what the issue here is or how I = should go about debugging?

Thank you!
Ryan

------L1VPZY8X9QE233C8U2JFFTLEBMPJE2-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 26 22:20:10 2020 Received: (at 45453) by debbugs.gnu.org; 27 Dec 2020 03:20:10 +0000 Received: from localhost ([127.0.0.1]:60145 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktMbK-0000Fv-2R for submit@debbugs.gnu.org; Sat, 26 Dec 2020 22:20:10 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:19246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktMbH-0000FM-BG for 45453@debbugs.gnu.org; Sat, 26 Dec 2020 22:20:08 -0500 Date: Sun, 27 Dec 2020 03:19:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1609039200; bh=CzEdlO5sQlRlBeW4LocrpO2eoIjAxsc8qarXhDYQjJI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=WDJ0JQt7rCv54tVnSmU94S5YrMUXNKvAIa2+JmF7A96tD7WnYO5AJ2ovqkrdvA1mm wODTb7poKR6MBRNAuYTc7ubhDhbdjgneAIhtZzD6E0FB7KCVJpe59tUuJku+/7JFwg RPP/duhEmmIss9us/Kcf4mAxDe+IRx6Gm8+8l0js= To: Julien Lepiller From: Ryan Prior Subject: Re: bug#45453: Error when I try to build a package using a JSON definition Message-ID: <87tus8ndey.fsf@protonmail.com> In-Reply-To: <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> References: <87wnx4nkx1.fsf@protonmail.com> <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 45453 Cc: 45453@debbugs.gnu.org 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: , Reply-To: Ryan Prior Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Julien Lepiller writes: > Anyway, in the log you attached, it seems the issue is with downloading t= he sources. For some reason it cannot > resolve the github.com domain. I wonder if this is just a transient netwo= rk issue on your side? Have you tried again > later? I did try it twice, some hours apart. And in the meanwhile, the package defined using Guile downloads its sources and builds just fine. > If not, it could be that the source derivation is not fixed-output. After= all, the json definition doesn't specify a hash > (it's not even an origin record). Again I'm confused by the fact that gui= x lets you specify packages with json, so I'm > not sure how that part is converted to a package object. Is that > documented? It is in the manual (Search for "JSON representation"): https://guix.gnu.org/manual/en/html_node/Invoking-guix-package.html Not clear to me whether you can provide a source hash as part of a JSON package definition. Thanks & let me know if you turn up any other clues! Ryan From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 27 05:38:13 2020 Received: (at 45453) by debbugs.gnu.org; 27 Dec 2020 10:38:13 +0000 Received: from localhost ([127.0.0.1]:60337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTRF-0000QP-2j for submit@debbugs.gnu.org; Sun, 27 Dec 2020 05:38:13 -0500 Received: from sender3-of-o57.zoho.com ([136.143.184.57]:21741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTRC-0000QG-H3 for 45453@debbugs.gnu.org; Sun, 27 Dec 2020 05:38:11 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1609065486; cv=none; d=zohomail.com; s=zohoarc; b=lXlUz4XQ8Y/J2GiHEaR9YZjZT/DEyytcyurUTRCrAxSS4PcDCiv5tlGru2ZnGaIgEbNZkKUjVGmh0tTApBngnew+hWE8F4QWaT6naR89jIz4cttHzkAw3ykdIEz4ku6U/ZllpYtI3xuuYm4j50G2/R5Yd/noLvda6pBhSw1BA8c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609065486; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=qEP9+qOkyiJzXWLKjXWAEfAXR+gQweC/5QgWU6o8Cx0=; b=nTSRYJbZAXzdlq2ymsSb+I49S3oPjbLAiwxj+1pA7HHWDs+y5v/FqclY2fNrPE6S92zWkg6SX6PeSazx8zl0JOc+V4+P2ZZsf5dRKyTApyrxL5Tcu2E0lKQf4KKgDmuK5Iae+n8PBLTMTn9UQ4yDo5l7OITaQ7r75E6vTqFmChU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1609065486; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=qEP9+qOkyiJzXWLKjXWAEfAXR+gQweC/5QgWU6o8Cx0=; b=ZdTu7IILBGl0/sCFEJeEKeS9tVmtfZuzXTU26a6fTHs4D73QwZbyf8VzIRIzT9SD W4azf1qsilA/+clcBQom5BtgecMgg3+TbWZWvn0ajvmJvQ3O8zmI9LlG5b+rvguY3d+ e+rdrh0pLPTtMz0EcdeRM+NYT9hO3J/M1+lYUQJI= Received: from localhost (p4fd5a29e.dip0.t-ipconnect.de [79.213.162.158]) by mx.zohomail.com with SMTPS id 160906548463174.19669927432437; Sun, 27 Dec 2020 02:38:04 -0800 (PST) References: <87wnx4nkx1.fsf@protonmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Ryan Prior Subject: Re: Error when I try to build a package using a JSON definition In-reply-to: <87wnx4nkx1.fsf@protonmail.com> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 Dec 2020 11:38:01 +0100 Message-ID: <87lfdjmt4m.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45453 Cc: 45453@debbugs.gnu.org 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 (-) Hi Ryan, > Any idea what the issue here is or how I should go about debugging? You were *so* close! The problem is with the license field. Uncharacteristically, we are using spdx-string->license here, so =E2=80=9Ce= xpat=E2=80=9D is not a valid license name. When you replace it with =E2=80=9CMIT=E2=80= =9D it will work. I=E2=80=99ll change this to use the Guixy license names first, and only fall back to SPDX names when that fails. And there should be a proper error message, of course. Thanks for the bug report! --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 27 05:41:12 2020 Received: (at submit) by debbugs.gnu.org; 27 Dec 2020 10:41:12 +0000 Received: from localhost ([127.0.0.1]:60342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTU8-0000V4-HH for submit@debbugs.gnu.org; Sun, 27 Dec 2020 05:41:12 -0500 Received: from lists.gnu.org ([209.51.188.17]:57860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTU7-0000Ux-5X for submit@debbugs.gnu.org; Sun, 27 Dec 2020 05:41:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktTU6-0007Za-TQ for bug-guix@gnu.org; Sun, 27 Dec 2020 05:41:10 -0500 Received: from sender3-of-o53.zoho.com ([136.143.184.53]:21379) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktTU5-0008VV-2o for bug-guix@gnu.org; Sun, 27 Dec 2020 05:41:10 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1609065662; cv=none; d=zohomail.com; s=zohoarc; b=Qky0HqxgCVagoCvpqt+wpVE3cDNUYLAjf3dDBTCEt0B1XJjr44U+w8QNnWtsVLJWKyUn7OEwOXl65GukIAn0hqmPLfPpikCsSINcjV5tj2EiJLFkfFDtWhs/XB4ryOtOpmSjQm7eEN9KNxuBMlWXZQEqFpCgSGFK9FQIU7IR9Do= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609065662; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=n95KzvMqCckH5MMpuCa6XhKbinD1o1ut5CN+jFfk8xI=; b=Gx+THs/veEvtDgNC7d/z7CXe93OHCk+c0Oayy8D6dAQB+YyCeRw1vJgr+H2ruCj7MIg42dr1zNiFHlBFkVAYkc7dZWCnlQCK64gvQ6akYOjrscHHRwpQtBUWuw4tGBC0T+JXjZdyBzsqPqqKQVJfI3sGRiRXLE7Cyob3EvDSQIg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1609065662; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=n95KzvMqCckH5MMpuCa6XhKbinD1o1ut5CN+jFfk8xI=; b=KwvwxK6gNOBxuWe3GmAGekTZwkQvmQnl9WfB21cX5hqLPso8TUtx7Mvg057q50Cn uf7sqvG5PWLcw5Ex/50GVn3DSdynIF0fQ8uHWq8GbbB1urG64hhOQijqFSgK6zJl4Xr w0gvKY/JAqIvDBr5qaf5U0sTPRSAHhVBtvKb11yw= Received: from localhost (p4fd5a29e.dip0.t-ipconnect.de [79.213.162.158]) by mx.zohomail.com with SMTPS id 160906566131781.24716071260195; Sun, 27 Dec 2020 02:41:01 -0800 (PST) References: <87wnx4nkx1.fsf@protonmail.com> <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Julien Lepiller Subject: Re: bug#45453: Error when I try to build a package using a JSON definition In-reply-to: <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 Dec 2020 11:40:58 +0100 Message-ID: <87im8nmszp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.53; envelope-from=rekado@elephly.net; helo=sender3-of-o53.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: bug-guix@gnu.org, Ryan Prior , 45453@debbugs.gnu.org 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: -2.3 (--) Hey Julien, > I'm surprised guix builds from a json file=E2=80=A6 it=E2=80=99s a little known feature. I added it a long time ago, half in j= est, half in the realization that this removes a common superficial objection to Guix. > If not, it could be that the source derivation is not > fixed-output. After all, the json definition doesn't specify a hash > (it's not even an origin record). Again I'm confused by the fact that > guix lets you specify packages with json, so I'm not sure how that > part is converted to a package object. Is that documented? Yes, it=E2=80=99s all documented. The manual has to indexed locations for =E2=80=9CJSON=E2=80=9D. One of them says that you don=E2=80=99t need to sp= ecify an origin record, but you can if you feel like it: --8<---------------cut here---------------start------------->8--- The importer also supports a more explicit source definition using the common fields for =E2=80=98=E2=80=99 records: { ... "source": { "method": "url-fetch", "uri": "mirror://gnu/hello/hello-2.10.tar.gz", "sha256": { "base32": "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89n= dq1i" } } ... } --8<---------------cut here---------------end--------------->8--- --=20 Ricardo From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 27 06:08:15 2020 Received: (at 45453-done) by debbugs.gnu.org; 27 Dec 2020 11:08:15 +0000 Received: from localhost ([127.0.0.1]:60359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTuI-00019m-Ri for submit@debbugs.gnu.org; Sun, 27 Dec 2020 06:08:15 -0500 Received: from sender3-of-o51.zoho.com ([136.143.184.51]:21151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTuH-00019f-L1 for 45453-done@debbugs.gnu.org; Sun, 27 Dec 2020 06:08:14 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1609067288; cv=none; d=zohomail.com; s=zohoarc; b=fPqrj/3NXg/OWx5sEc7h/WNpKfPO5uFTMk7ab+I/QGOkYFOmLDVT3r+9VKalF5uC8UdNTvyUoOFrPG2Sj6SUuiLBKSdrtH7+e44ElsEHrdOmAyxowEERcCmZX2Ube5f8RzZVG0pWa0owuStY7RxLP/ovupdf5G0XJPoJ4EpIn6U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609067288; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=uwBKHoQdZXXj4xUOcSPYLL77DX+06+wbfNGTurceviQ=; b=mF6RA7V116CvBimcQtqoj1BE8/RTNwE54AmdRkrAfCJX1liEqz2XZCBASu2PpSiJo1uBEC4gfK9nyEpNDSzlehIH9Ocv4rER7M+LaXzfBKzJwY3kDXN5cp8hsISsgyyv7xW+Mm773i1U5o+cm4rMc61JmmoG/i3FDgQitPBlvLg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1609067288; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=uwBKHoQdZXXj4xUOcSPYLL77DX+06+wbfNGTurceviQ=; b=GauVxnOUpA5gK2iiuLZcQ/2zLda7ZoAIwrhuP38sYPDZ5ZdLnTLBEKnx9fXpbo0e Ou6+mGpeVe7xNIQC2WQ8W1009nc2ZmvFyr8wuK8ZYZhDcCII9lav60hApSI34SR8SVK hvvK0u9K9ctvwX8y0sBu85yeStV0ep20gFwGzVX8= Received: from localhost (p4fd5a29e.dip0.t-ipconnect.de [79.213.162.158]) by mx.zohomail.com with SMTPS id 1609067286178846.7051896139276; Sun, 27 Dec 2020 03:08:06 -0800 (PST) References: <87wnx4nkx1.fsf@protonmail.com> <87lfdjmt4m.fsf@elephly.net> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Ryan Prior Subject: Re: Error when I try to build a package using a JSON definition In-reply-to: <87lfdjmt4m.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 Dec 2020 12:08:03 +0100 Message-ID: <87ft3rmrqk.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45453-done Cc: 45453-done@debbugs.gnu.org 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 (-) Ricardo Wurmus writes: > I=E2=80=99ll change this to use the Guixy license names first, and only f= all > back to SPDX names when that fails. And there should be a proper error > message, of course. This is now fixed with commit 5aae614868. --=20 Ricardo From unknown Tue Aug 19 10:00:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 24 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator