Gentoo Archives: gentoo-portage-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-portage-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-portage-dev] [PATCH] repoman: Warn on = dependencies without * or revision
Date: Sun, 04 Mar 2018 11:18:48
Message-Id: 23195.54801.885592.254563@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-portage-dev] [PATCH] repoman: Warn on = dependencies without * or revision by "Michał Górny"
1 >>>>> On Sat, 3 Mar 2018, Michał Górny wrote:
2
3 > Warn if the '=' package dependency operator is used along with pure
4 > version with no revision specified. This means to catch a common mistake
5 > of developers copying '=' from upstream dependency specification while
6 > '~' operator would be more appropriate. This causes unintended depgraph
7 > breakage when the dependencies are revbumped e.g. due to dependency
8 > changes, or prevents people from upgrading.
9
10 > The developers are given two suggestions: either to use '~' if any
11 > revision is acceptable, or to explicitly specify '-r0' when they really
12 > do accept -r0 only.
13
14 I won't be opposed against this, but there doesn't seem to be any
15 policy that would require explicit -r0 in dependency specifications.
16 So this is a policy change which should be discussed in gentoo-dev
17 before it can be added to repoman.
18
19 Also according to PMS, no revision and -r0 (and even -r00) are
20 completely equivalent. so IMHO we should think twice before
21 introducing behaviour that would treat them differently in some
22 places.
23
24 Ulrich

Replies