GNU bug report logs - #53030
Can't (specification->package "package@version:output")

Previous Next

Package: guix;

Reported by: calcium <calcium <at> disroot.org>

Date: Wed, 5 Jan 2022 17:19:01 UTC

Severity: normal

To reply to this bug, email your comments to 53030 AT debbugs.gnu.org.

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#53030; Package guix. (Wed, 05 Jan 2022 17:19:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to calcium <calcium <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 05 Jan 2022 17:19:01 GMT) Full text and rfc822 format available.

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

From: calcium <calcium <at> disroot.org>
To: bug-guix <at> gnu.org
Subject: Can't (specification->package "package <at> version:output")
Date: Wed, 5 Jan 2022 18:18:02 +0100
The syntaxe to specify a package version and desired output
only works on guix install package <at> version:output

guix remove package <at> version:output doesn't works
guix remove package <at> version doesn't works

(specification->package "package <at> version") works
(specification->package "package:output") works

but both (specification->package "packge <at> version:output") doesn't work.
/etc/config.scm:line:col: Throw to key `quit' with args `(1)'.

Even though
guix package --export-manifest
;; => (specifications->manifest (list "package <at> version:output" "package <at> version"))

I tested "package <at> version:output" using "openjdk <at> 11:doc"





Information forwarded to bug-guix <at> gnu.org:
bug#53030; Package guix. (Wed, 05 Jan 2022 21:09:02 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: calcium <calcium <at> disroot.org>
Cc: 53030 <at> debbugs.gnu.org, bug-guix <at> gnu.org
Subject: Re: bug#53030: Can't (specification->package "package <at> version:output")
Date: Wed, 05 Jan 2022 21:36:02 +0100
[Message part 1 (text/plain, inline)]
Calcium,

Thanks for the report!

In future, please submit separate issues separately, it helps keep 
discussion, er, separate.  It's easier to merge issues than to 
split them.

> Can't (specification->package "package <at> version:output")

Short answer: it is not intended to work.  Use 
specification->package+output if you want outputs.  This is not a 
bug but a design decision.  Which are not above critique, but 
guix-devel@ might be a better place for that.

I've considered in the past to submit a cheeky patch silently 
renaming specification->package+ouput to specification->package, 
just to avoid this FAQ.  It should be almost perfectly backwards 
compatible in that no existing code should break with the same 
input.

However I think clarity the greater value here, and did not submit 
such a patch.

calcium via Bug reports for GNU Guix 写道:
> The syntaxe to specify a package version and desired output
> only works on guix install package <at> version:output
>
> guix remove package <at> version:output doesn't works

I cannot reproduce this:

 $ guix install git <at> 2.34.0:send-email
 $ guix remove git <at> 2.34.0:send-email
 $

Can you provide an example?

> guix remove package <at> version doesn't works

‘package <at> version’ means ‘package <at> version:out’, not (a 
hypothetical) ‘package <at> version:*’ wildcard.  It neither installs 
nor removes ‘all outputs’.

I did notice that, e.g.,

 $ guix install git <at> 2:send-email
 $ guix remove git <at> 2:send-email
 guix remove: error: package 'git <at> 2:send-email' not found in 
 profile
 $

is asymmetrical.  I wonder if there are any drawbacks to making it 
work.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#53030; Package guix. (Wed, 05 Jan 2022 21:09:02 GMT) Full text and rfc822 format available.

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

Previous Next


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