all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Konrad Hinsen <konrad.hinsen@fastmail.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Tobias Geerinckx-Rice <me@tobias.gr>, guix-devel@gnu.org
Subject: Re: Rebuilding a package after removing a build step
Date: Mon, 30 Sep 2024 16:25:44 +0200	[thread overview]
Message-ID: <m1ikudcj6f.fsf@fastmail.net> (raw)
In-Reply-To: <8734lmo7w5.fsf@gnu.org>

Hi Ludo,

>> 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.

We already had some discussion, the conclusion being that there are
indeed tests for equal and for "higher" version, but that these tests do
not always correspond to the intention of "choosing the newest version".

In particular, Guix uses version *strings* rather than version
*numbers*, with alphabetical ordering for the non-numerical parts of
these strings. In the common case of version strings containing git
commit hashes, alphabetical order does not correspond to "newest
version". So you can consider yourself safe when working on the most
recent commit of a package, and yet end up building a older but
alphabetically higher version from another channel.

Andreas pointed out that this is the reason for adding a manually
curated revision number before such hashes. But there is no coordination
mechanism for such revision number across channels.

Vagrant suggested deriving a version number from the commit history
using "git describe". That sounds like a good solution, but it's not
used in Guix as far as I can tell.

Cheers,
  Konrad.


  reply	other threads:[~2024-09-30 14:26 UTC|newest]

Thread overview: 20+ 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
2024-09-30 14:25       ` Konrad Hinsen [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=m1ikudcj6f.fsf@fastmail.net \
    --to=konrad.hinsen@fastmail.net \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    --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.