GNU bug report logs - #31302
`guix import json` doesn't handle inputs with the form 'package:output'

Previous Next

Package: guix;

Reported by: <pkill9 <at> runbox.com>

Date: Sat, 28 Apr 2018 17:25:02 UTC

Severity: normal

Tags: easy

Done: Sarah Morgensen <iskarian <at> mgsn.dev>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31302 in the body.
You can then email your comments to 31302 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#31302; Package guix. (Sat, 28 Apr 2018 17:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to <pkill9 <at> runbox.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 28 Apr 2018 17:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: <pkill9 <at> runbox.com>
To: "bug-guix" <bug-guix <at> gnu.org>
Subject: `guix import json` doesn't handle inputs with the form
 'package:output'
Date: Sat, 28 Apr 2018 17:28:21 +0100 (BST)
For example, if you specify 'glib:bin' as an input, it will add only 'glib' as an input. (It's not recognising a specified output of a package recipe that produces multiple outputs.)



Added tag(s) easy. Request was from ludo <at> gnu.org (Ludovic Courtès) to control <at> debbugs.gnu.org. (Sun, 29 Apr 2018 16:19:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#31302; Package guix. (Wed, 14 Oct 2020 08:07:03 GMT) Full text and rfc822 format available.

Message #10 received at 31302 <at> debbugs.gnu.org (full text, mbox):

From: Lulu <me <at> erkin.party>
To: "31302 <at> debbugs.gnu.org" <31302 <at> debbugs.gnu.org>
Subject: `guix import json` doesn't handle inputs with the form
 'package:output'
Date: Wed, 14 Oct 2020 09:12:16 +0300 (TRT)
I just checked this and failed to replicate it. It happily generates config from
`glib:doc', `glib:bin' and `glib:out' in input fields and complains if there's a
nonexistent `glib:foo' input, as of v1.1.0.

--
Lulu




Information forwarded to bug-guix <at> gnu.org:
bug#31302; Package guix. (Thu, 15 Oct 2020 09:58:02 GMT) Full text and rfc822 format available.

Message #13 received at 31302 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Lulu <me <at> erkin.party>
Cc: "31302 <at> debbugs.gnu.org" <31302 <at> debbugs.gnu.org>
Subject: Re: bug#31302: `guix import json` doesn't handle inputs with the
 form 'package:output'
Date: Thu, 15 Oct 2020 11:57:47 +0200
Hi Lulu,

Thank you for working of this.

On Wed, 14 Oct 2020 at 09:12, Lulu <me <at> erkin.party> wrote:

> I just checked this and failed to replicate it. It happily generates
> config from `glib:doc', `glib:bin' and `glib:out' in input fields and
> complains if there's a nonexistent `glib:foo' input, as of v1.1.0.

Could you provide the commit (hash) of the Guix you are using?
Personally, I do “guix describe” and paste then the short hash
(58af4c9).  Then it is easier to reproduce or replicate or see if it is
fixed in which version.

Then, could you provide the sequence of commands you used for
“replication“?  And the file example you used too.  It eases the process
for confirming or not. :-)


Thanks,
simon




Information forwarded to bug-guix <at> gnu.org:
bug#31302; Package guix. (Sun, 25 Oct 2020 23:29:04 GMT) Full text and rfc822 format available.

Message #16 received at 31302 <at> debbugs.gnu.org (full text, mbox):

From: Lulu <me <at> erkin.party>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: "31302 <at> debbugs.gnu.org" <31302 <at> debbugs.gnu.org>
Subject: Re: bug#31302: `guix import json` doesn't handle inputs with the
 form 'package:output'
Date: Sun, 25 Oct 2020 20:12:32 +0300 (TRT)
The version hash of Guix I tried this on was `26f6bd0403ed20c1d26eca9d4f28a0da519a56ac'.

I used the example JSON file for the `hello' package provided in
"(guix)Invoking guix import". Then, based on the given example of glib, I tried
running `guix import json' with `glib', `glib:bin', `glib:doc', `glib:out'
separately appended to the `native-inputs' array of `hello.json', in order. It
produced an appropriate SXML structure in the `native-inputs` field each time:
("glib" (@ (gnu packages glib) glib-with-documentation))
for standalone `glib' and
("glib" (@ (gnu packages glib) glib-with-documentation) "bin")
for the rest, which appears to fit the package definition syntax.

When I tried with `glib:foo', where `foo' is an erroneous output, it yielded the
following error:
guix import: error: package `glib <at> 2.62.6' lacks output `foo'.

So, it seems like this bug was fixed somewhere along the line.

--
Lulu




Information forwarded to bug-guix <at> gnu.org:
bug#31302; Package guix. (Mon, 26 Oct 2020 14:17:02 GMT) Full text and rfc822 format available.

Message #19 received at 31302 <at> debbugs.gnu.org (full text, mbox):

From: zimoun <zimon.toutoune <at> gmail.com>
To: Lulu <me <at> erkin.party>
Cc: "31302 <at> debbugs.gnu.org" <31302 <at> debbugs.gnu.org>
Subject: Re: bug#31302: `guix import json` doesn't handle inputs with the
 form 'package:output'
Date: Mon, 26 Oct 2020 15:16:26 +0100
Dear,

On Sun, 25 Oct 2020 at 20:12, Lulu <me <at> erkin.party> wrote:

> So, it seems like this bug was fixed somewhere along the line.

Yep, the bug is fixed.  Probably by these:

7cef499bb0 * import/json: json->code: Handle files with more than one definition.
c893432320 * import/json: Use json->code.
16dd764691 * import/json: Add json->scheme-file.


You can close the bug by sending to <31302-done <at> debbugs.gnu.org> with
the explanations.


Thanks,
simon




bug closed, send any further explanations to 31302 <at> debbugs.gnu.org and <pkill9 <at> runbox.com> Request was from Sarah Morgensen <iskarian <at> mgsn.dev> to control <at> debbugs.gnu.org. (Mon, 13 Sep 2021 02:18:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Oct 2021 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.