public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom Wijsman <TomWij@gentoo.org>
To: ulm@gentoo.org
Cc: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Dependencies default to accept any slot value acceptable (:*), can we default to :0 instead?
Date: Sun, 8 Dec 2013 21:04:36 +0100	[thread overview]
Message-ID: <20131208210436.47b7e6d5@TOMWIJ-GENTOO> (raw)
In-Reply-To: <21156.50471.613516.395616@a1i15.kph.uni-mainz.de>

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

On Sun, 8 Dec 2013 20:14:47 +0100
Ulrich Mueller <ulm@gentoo.org> wrote:

> >>>>> On Sun, 8 Dec 2013, Andreas K Huettel wrote:
> 
> > How about changing this in the next EAPI instead?
> 
> > E.g., in EAPI=6, if no slot dependency is given in a dependency
> > specification, default to :0
> 
> PMS just provides a mechanism, but doesn't prefer one SLOT value over
> another.

The PMS describes package manager behavior required to support an
ebuild repository. If I read the PMS correctly, SLOT-less dependencies
have undefined behavior; this makes it so that if you have a different
package manager using the same ebuild repository, it could interpret
the dependencies completely different.

As a result, because of this undefined behavior, you get breakage;
because you are relying on package manager behavior. Explicitly
specifying it is the way to go; but, why allow SLOT-less dependencies?

There are two ways to resolve this unspecified behavior:

    1) We specify a default, such that package managers co-operate.

    2) We disallow that syntax, because it results in breakage.

Which one depends on what other PMS consumers think about it.

What do you think about this look on it?

> Such a change would introduce policy into PMS which is not
> the right way to go.

There are quite a few policies in the PMS; which I question why they
can be in there, and this policy cannot be.

For example in 5.2.1 we see:

    In profiles, the parent file may not contain comments.

Then we could just as well have something like:

    In ebuilds, *DEPEND may not contain SLOT-less dependencies.

Why is the first one permitted in the PMS and the second one not right?

> If a dependency on a specific SLOT value is needed then it should be
> explicitly specified in the ebuild.

Given that it is otherwise undefined behavior that yields breakage
when shared among different implementations, it seems like this is
always needed. Or are there reasons to allow undefined behavior here?

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : TomWij@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D

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

  parent reply	other threads:[~2013-12-08 20:07 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-08 16:56 [gentoo-dev] Dependencies default to accept any slot value acceptable (:*), can we default to :0 instead? Tom Wijsman
2013-12-08 17:16 ` Michał Górny
2013-12-08 17:19 ` Andreas K. Huettel
2013-12-08 17:26   ` Pacho Ramos
2013-12-08 17:46     ` Tom Wijsman
2013-12-08 18:56       ` Rich Freeman
2013-12-08 19:14   ` Ulrich Mueller
2013-12-08 19:39     ` Rich Freeman
2013-12-08 19:48       ` Ciaran McCreesh
2013-12-08 20:01       ` Ulrich Mueller
2013-12-08 20:17         ` Rich Freeman
2013-12-09  2:37           ` heroxbd
2013-12-09  2:55             ` Rich Freeman
2013-12-09  3:19               ` heroxbd
2013-12-08 20:21         ` Tom Wijsman
2013-12-08 20:25           ` Ciaran McCreesh
2013-12-10 21:06           ` Ian Stakenvicius
2013-12-10 23:35             ` Tom Wijsman
2013-12-08 20:04     ` Tom Wijsman [this message]
2013-12-08 20:21       ` Ulrich Mueller
2013-12-08 20:26         ` Ciaran McCreesh
2013-12-08 20:31           ` Ulrich Mueller
2013-12-08 21:54           ` Michał Górny
2013-12-08 22:02             ` Ciaran McCreesh
2013-12-08 20:28         ` Tom Wijsman
2013-12-08 20:30         ` Tom Wijsman
  -- strict thread matches above, loose matches on Subject: below --
2013-12-08 16:54 Tom Wijsman
2013-12-08 23:57 ` Patrick Lauer
2013-12-09  0:12   ` Tom Wijsman
2013-12-09  0:21   ` Rich Freeman
2013-12-09  6:52 ` Sergey Popov
2013-12-09 10:55   ` Tom Wijsman
2013-12-09 16:06     ` Rich Freeman
2013-12-09 16:19       ` Ulrich Mueller
2013-12-10  0:31         ` Tom Wijsman

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=20131208210436.47b7e6d5@TOMWIJ-GENTOO \
    --to=tomwij@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=ulm@gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox