all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: guix-devel@gnu.org
Subject: How should ambiguous package specifications be handled?
Date: Thu, 23 Jan 2020 08:03:34 +0000	[thread overview]
Message-ID: <87k15ippk9.fsf@cbaines.net> (raw)

[-- 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 --]

             reply	other threads:[~2020-01-23  8:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-23  8:03 Christopher Baines [this message]
2020-01-23  9:26 ` How should ambiguous package specifications be handled? Tobias Geerinckx-Rice
2020-01-25 17:35   ` Ludovic Courtès
2020-01-26 10:16   ` Christopher Baines

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=87k15ippk9.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --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.