unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How should ambiguous package specifications be handled?
@ 2020-01-23  8:03 Christopher Baines
  2020-01-23  9:26 ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Baines @ 2020-01-23  8:03 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1540 bytes --]

Hey,

I'm aware of duplicate packages as the Guix Data Service identifies
cases where there are two package definitions with the same name and
version [1].

We've had one for a while (itstool 2.0.6), and another has recently been
introduced (sassc 3.6.1).

Guix will tell you that something is up if you try and `guix build
itstool`, or `guix lint itstool`, as itstool could refer to either
package, as they both have the same version.

While the longer term fix for both these cases is to get rid of the
duplication once the issues that motivated the change are fixed, I
wanted to check what should and could be done about this general issue
before then.

Looking at the itstool case, there are similar duplicate packages for
yelp-tools (yelp-tools/fixed) and python-libxml2 (python-libxml2/fixed),
however building and linting them doesn't reveal any warnings. In the
yelp-tools/fixed case, the package is declared as hidden, and for
python-libxml2/fixed, the version is tweaked.

I guess the hidden approach is preferable if it's not expected that
anyone will want to explicitly install the package, and the version
change approach works better if you do want people to be able to install
the package.

Given there do seem to be ways of avoiding these ambiguous package
specifications, would it be helpful to have a lint warning that
identifies a package as being ambiguous (as it shares the name and
version with another package)?

Thanks,

Chris

1: search for "warning: ignoring duplicate package:"
http://data.guix.gnu.org/job/14282

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-26 10:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-23  8:03 How should ambiguous package specifications be handled? Christopher Baines
2020-01-23  9:26 ` Tobias Geerinckx-Rice
2020-01-25 17:35   ` Ludovic Courtès
2020-01-26 10:16   ` Christopher Baines

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).