Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: hasufell@g.o
Subject: Re: [gentoo-dev] [PATCH vcs-snapshot] Use ${WORKDIR}/${P} rather than ${S} to support ${S} overrides.
Date: Tue, 05 Jun 2012 07:11:21
Message-Id: 20120605091154.661ca012@pomiocik.lan
In Reply to: Re: [gentoo-dev] [PATCH vcs-snapshot] Use ${WORKDIR}/${P} rather than ${S} to support ${S} overrides. by hasufell
1 On Mon, 04 Jun 2012 22:47:33 +0200
2 hasufell <hasufell@g.o> wrote:
3
4 > -----BEGIN PGP SIGNED MESSAGE-----
5 > Hash: SHA1
6 >
7 > On 06/04/2012 10:06 PM, Michał Górny wrote:
8 > > On Mon, 04 Jun 2012 21:26:00 +0200 hasufell <hasufell@g.o>
9 > > wrote:
10 > >
11 > >> But minetest in sunrise for example which has two different
12 > >> repos, one for the engine, one for the data. It's currently split
13 > >> in two, but I guess I will merge those soon.
14 > >
15 > > Why? Is there a good reason to merge two repos into one ebuild?
16 > > Does upstream guarantee that the releases will always be synced?
17 > > Does it benefit users?
18 >
19 > In this case yes. They are released with the exact same tags as you
20 > can see in those ebuilds.
21
22 But could there be a case where fixing a build in the engine wouldn't
23 require data being rereleased? Or having the tag pointing to the same
24 commit it was pointing to previously?
25
26 If upstream splits a package, and supports building/installing the two
27 parts separately, we should do that as well.
28
29 > >> It would also enable me to use gtk-youtube-viewer and
30 > >> youtube-viewer in one ebuild with vcs-snapshot eclass while
31 > >> adding a gtk useflag (currently split too). Otherwise I will have
32 > >> to fix it on my own again.
33 > >
34 > > Once again: does it benefit user? Or just does it imply that
35 > > starting or stopping to use gtk part requires user to rebuild the
36 > > whole thing?
37 >
38 > Eclasses do not benefit any user. They benefit developers. I would
39 > simply do similar stuff on my own in the ebuild instead of using
40 > vcs-snapshot eclass then.
41
42 Does splitting the package benefit user? Gentoo has a long history of
43 overusing USE flags out of laziness. If upstream explicitly allows
44 building GTK+ part separately of core, we shouldn't merge that. We
45 should rather be grateful they don't force us to end up like Fedora,
46 splitting build tree into smaller packages.
47
48 > > I really don't mind the logic. I'm just aware that it is a little
49 > > late to introduce such a destructive change, especially that you
50 > > yourself mentioned that it will break existing ebuilds.
51 >
52 > So? We fix it.
53
54 As I see the purpose of vcs-snapshot, it is more likely to be used in
55 various overlays than in the gx86 tree. I don't believe you are able to
56 fix *all* the occurrences.
57
58 And while we're at it, changing eclass APIs doesn't benefit users nor
59 developers. It can cause breakages which will hurt users, and forces
60 developers to do more work when they don't have time to.
61
62 > > I will be happy to implement it if you can get more approval for
63 > > that change. Or else we should consider jumping with the eclass to
64 > > -r1 while it isn't widespread too much.
65 >
66 > I don't see the point in bumping it, because it's not widespread.
67
68 There are still more packages that it breaks than those which it would
69 actually benefit. But I like the idea of using filename for the
70 location. Could you look up PMS for me to see if it's guaranteed that
71 it will be preserved in $A?
72
73 --
74 Best regards,
75 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies