From: "Ludovic Courtès" <ludo@gnu.org>
To: Konrad Hinsen <konrad.hinsen@fastmail.net>
Cc: Tobias Geerinckx-Rice <me@tobias.gr>, guix-devel@gnu.org
Subject: Re: Rebuilding a package after removing a build step
Date: Thu, 26 Sep 2024 15:35:06 +0200 [thread overview]
Message-ID: <8734lmo7w5.fsf@gnu.org> (raw)
In-Reply-To: <m1cyl1z7hj.fsf@fastmail.net> (Konrad Hinsen's message of "Wed, 18 Sep 2024 10:33:28 +0200")
Hi,
Konrad Hinsen <konrad.hinsen@fastmail.net> skribis:
> Unfortunately, when there are several packages with identical name and
> version number in two channels, Guix silently chooses one of them.
> It would probably be more useful to emit a warning.
I believe that’s already the case.
Specifically, if there are several packages with the same name and
different versions, the newest one is picked up:
--8<---------------cut here---------------start------------->8---
$ guix build gcc-toolchain -n
/gnu/store/9h8cbavj4q7pq1590xsnjw71ww0d06gk-gcc-toolchain-14.2.0-debug
/gnu/store/x2kv3zw2k7ql211m5kvb6yw401gab0x9-gcc-toolchain-14.2.0
/gnu/store/9h5kczcvfxs2fgn9708cs70xi0xpjrw6-gcc-toolchain-14.2.0-static
--8<---------------cut here---------------end--------------->8---
When there are several matching packages with the given name and
version, you get a warning:
--8<---------------cut here---------------start------------->8---
$ guix build guile@2.2 -n
guix build: warning: ambiguous package specification `guile@2.2'
guix build: warning: choosing guile@2.2.7 from gnu/packages/guile.scm:287:2
The following files would be downloaded:
/gnu/store/3qj7zmfq5cw5k37zf8qz9dr4kld8rsnd-guile-2.2.7-debug
/gnu/store/0g5cbaf3xczis6x11j3h2xc1x1dpp3xk-guile-2.2.7
--8<---------------cut here---------------end--------------->8---
In Guix itself, there are no packages with the exact same name/version
pair though. The example above is because there’s 2.2.7 and 2.2.4.
Ludo’.
next prev parent reply other threads:[~2024-09-26 19:26 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-17 15:59 Rebuilding a package after removing a build step Konrad Hinsen
2024-09-17 16:27 ` Tobias Geerinckx-Rice
2024-09-18 8:33 ` Konrad Hinsen
2024-09-18 17:40 ` Suhail Singh
2024-09-18 18:27 ` Konrad Hinsen
2024-09-19 15:32 ` Suhail Singh
2024-09-20 17:10 ` Simon Tournier
2024-09-22 8:34 ` Konrad Hinsen
2024-09-22 16:48 ` Kaelyn
2024-09-23 8:22 ` Konrad Hinsen
2024-09-23 8:42 ` Andreas Enge
2024-09-23 15:29 ` Konrad Hinsen
2024-09-23 16:03 ` Vagrant Cascadian
2024-09-23 18:17 ` Suhail Singh
2024-09-24 0:16 ` Kaelyn
2024-09-24 5:24 ` Konrad Hinsen
2024-09-23 16:27 ` Tobias Geerinckx-Rice
2024-09-26 13:35 ` Ludovic Courtès [this message]
2024-09-18 19:32 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734lmo7w5.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=konrad.hinsen@fastmail.net \
--cc=me@tobias.gr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.