all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Danny Milosavljevic <dannym@scratchpost.org>
To: guix-devel <guix-devel@gnu.org>
Subject: Package API compatibility and guix package variable names
Date: Wed, 27 Jul 2016 17:54:31 +0200	[thread overview]
Message-ID: <20160727175431.35fc6326@scratchpost.org> (raw)
In-Reply-To: <87y44wdr1f.fsf@elephly.net>

> > Shouldn't this be allegro-5 since there is already an allegro-4?  
> 
> I want the “allegro” variable to simply hold the latest version of
> allegro.  If ever there’s a need to clarify (e.g. because we need to
> keep around the last of the 5.x series when 6.x comes out) we can change
> the name then.  As far as I can see that’s been our approach for some
> other packages, too, most prominently “python”.

In my humble opinion it would best if there was an "allego-5.0" and an "allegro" variable, with the "allegro" variable not being referenced by any other package (they would reference "allegro-5.0" instead - or whatever major API version they need, for example "allegro-5.2").

This way we wouldn't have to update half of all package specs after they break just because a new incompatible version came out.

I think the way it was done for Python3 in Guix is wrong. On the other hand, the way it was done for Python2 in Guix was exactly right.

What happens when a new (incompatible) Python4 comes out? Patch all the Python modules package specs there are? The only reason we can get away with it for Python is because they only do breaking change in the language every five years.

This is something Debian got right - have the (API) version as suffix as part of the name.

The "allegro" metapackage is purely a user convenience (of questionable benefit).

If something becomes incompatible, its name should change.

  reply	other threads:[~2016-07-27 15:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-19 20:57 [PATCH 1/2] gnu: Add allegro Ricardo Wurmus
2016-07-19 20:57 ` [PATCH 2/2] gnu: Add allegro-5.0 Ricardo Wurmus
2016-07-20  1:39   ` Thompson, David
2016-07-20  5:52     ` Ricardo Wurmus
2016-07-20 13:03       ` Thompson, David
2016-07-20  1:37 ` [PATCH 1/2] gnu: Add allegro Thompson, David
2016-07-20 19:54   ` Ricardo Wurmus
2016-07-27 15:54     ` Danny Milosavljevic [this message]
2016-07-27 16:19       ` Package API compatibility and guix package variable names Andreas Enge
2016-07-27 21:06         ` Danny Milosavljevic
2016-07-27 21:33           ` Andreas Enge
2016-07-28  6:04             ` Chris Marusich

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=20160727175431.35fc6326@scratchpost.org \
    --to=dannym@scratchpost.org \
    --cc=guix-devel@gnu.org \
    /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.