Gentoo Archives: gentoo-dev

From: Martin Vaeth <martin@×××××.de>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: don't rely on dynamic deps
Date: Tue, 22 Jul 2014 20:07:29
Message-Id: slrnlsth31.2f1.martin@epidot.math.uni-rostock.de
In Reply to: [gentoo-dev] Re: don't rely on dynamic deps by Ulrich Mueller
1 Ulrich Mueller <ulm@g.o> wrote:
2 > The new ebuild is cat/foo-1-r0.1 then, and PF changes even
3 > if the minor revision is ignored (namely, from foo-1 to foo-1-r0).
4
5 PF has to be filled correctly, of course:
6 The versions foo-1 and foo-1-r0 are identical according to PMS
7 and should thus lead to the same $PF.
8
9 If this is currently not happening in portage, this is a bug
10 which should be fixed, independently of whether minor revisions
11 are introduced or not.
12
13 Note that PR=0 in both cases.
14
15 BTW: Even if PF would have the wrong value, this would not do
16 any harm for minor revisions: If the minor revision has just
17 changed, nothing is merged to the filesystem and /var/db/*/*/CONTENTS
18 is unchanged, either. So nothing breaks in this case.
19 If the user re-emerges the minor revision (and if PF would have
20 the wrong value), then the minor revision would be visible to the
21 user in the sense that the name of the Doc-Directory is influenced
22 (and after a further minor revision bump, this revision number
23 would be outdated). An arguable cosmetical issue,
24 but nothing breaks, either.
25
26 >> Actually, I still think that implementing dynamic deps correctly
27 >> would be better, but minor revisions do not exclude this
28 >> and are probably simpler to implement.
29 >
30 > The PM could just update the VDB whenever it detects that the metadata
31 > of the ebuild has changed (relative to the VDB). You can get that
32 > without introducing the additional complication of minor revisions.
33
34 ...but by introducing all the additional complications Ian
35 has mentioned. More precisely: What happens if new dependencies
36 are introduced which are not satisfied?
37 One has to face it: Portage must not just silently "update" the
38 database and thus silently produce a /var/db which does not
39 satisfy its own dependencies...

Replies

Subject Author
[gentoo-dev] Re: don't rely on dynamic deps Ulrich Mueller <ulm@g.o>
Re: [gentoo-dev] Re: don't rely on dynamic deps Rich Freeman <rich0@g.o>