Gentoo Archives: gentoo-dev

From: "Rick \\\"Zero_Chaos\\\" Farina" <zerochaos@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Should mirror restriction imply bindist restriction?
Date: Fri, 26 Apr 2013 19:41:20
Message-Id: 517AD8FC.3040806@gentoo.org
In Reply to: Re: [gentoo-dev] Should mirror restriction imply bindist restriction? by Ian Stakenvicius
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 04/26/2013 03:24 PM, Ian Stakenvicius wrote:
5 > On 26/04/13 03:07 PM, Rick "Zero_Chaos" Farina wrote:
6 >> On 04/26/2013 02:44 PM, Rich Freeman wrote:
7 >>> On Fri, Apr 26, 2013 at 2:30 PM, Rick "Zero_Chaos" Farina
8 >>> <zerochaos@g.o> wrote:
9 >>>> The user is distinguishing right from wrong by setting things
10 >>>> like USE=bindist, portage simply doesn't seem to be respecting
11 >>>> that in the case of RESTRICT=bindist.
12 >
13 >>> I think what is missing is a clear set of definitions.
14 >
15 >>> USE=-bindist means build a package that the maintainer thinks
16 >>> isn't legal to distribute under some set of circumstances (which
17 >>> might or might not be the user's circumstances).
18 >
19 >>> RESTRICT=bindist in an ebuild means what? Let's look at the
20 >>> devmanual: RESTRICT - A space-delimited list of portage features
21 >>> to restrict. Valid values are fetch, mirror, strip, testand
22 >>> userpriv. See man 5 ebuild for details. man 5 ebuild: bindist -
23 >>> Distribution of built packages is restricted.
24 >
25 >>> And how does a user tell portage whether they intend to
26 >>> redistribute something in the first place? The fact that an
27 >>> ebuild sets RESTRICT=bindist does not have anything to do with
28 >>> whether it will in fact be redistributed. It sounds like we
29 >>> would need a FEATURES=bindist to go along with it. Oh, and it
30 >>> sounds like RESTRICT=bindist often should be conditional based on
31 >>> USE=-bindist, but you can't set RESTRICT conditionally, so that
32 >>> won't work.
33 >
34 >>> Also, isn't all of this somewhat redundant with ACCEPT_LICENSE?
35 >>> It is the license that allows you to redistribute something in
36 >>> the first place, though with some licenses it might be
37 >>> conditional upon how the package is built/branded.
38 >
39 >>> The last thing we need on any of this stuff is a hard error.
40 >>> What is needed first is for those who care about such things to
41 >>> cleanly specify a sane set of definitions and behavior.
42 >
43 >> I really appreciate your input here, I think you may be onto
44 >> something. Maybe the best thing to do would be to drop
45 >> RESTRICT=bindist entirely and just make a new license group for it?
46 >> Maybe it would even be possible to automatically
47 >> ACCEPT_LICENSE=bindist when USE=-bindist and vice-versa? This
48 >> seems a more productive direction than anything I was able to come
49 >> up with.
50 >
51 >> Thanks! Zero
52 >
53 >
54 >
55 > erm.. OK just to back up on things a little bit..:
56 >
57 > IUSE="bindist" tends to be for adjusting a particular package so that
58 > it either is generic and CAN be binary-distributable, or will build as
59 > upstream intended (with, for instance, upstream branding) and
60 > therefore is not. Right?
61 >
62 > So, in essence, the use flag can allow for an exception of a 'bindist'
63 > LICENSE. Would it make more sense then to have LICENSE= contents
64 > controlled conditionally? ie:
65 >
66 > www-client/firefox:
67 > LICENSE="MPL-2.0 GPL-2 LGPL-2.1
68 > !bindist? ( MPL-2.0-bindist-restriction )"
69
70 It was not my intention to switch valid licenses based on a use flag.
71 I'm pretty sure that isn't valid and the same license applies whether or
72 not you are going to redistribute it, the license doesn't change.
73
74 For the packages which already have USE=bindist they are conditionally
75 restricting binary redistribution and that is already handled well. The
76 issue is that nothing prevents (or even really alerts) the user in the
77 case of things which are ALWAYS restricted. Honestly I'm very happy
78 with the current USE=bindist behavior, I'm not happy with RESTRICT=bindist.
79
80 Based on Rich's suggestion my thought is have a new license group for
81 things which are ALWAYS binary restricted, accepted by default, but
82 removed from ACCEPT_LICENSE when USE=bindist. That is just what is
83 rolling around in my head right now, but it is semi-sane.
84
85 Thanks,
86 Zero
87 >
88 > Of course for other packages there is no USE="bindist" functionality
89 > as it's not possible to allow any binary redistribution. These
90 > probably should just go into the 'bindist' license group.
91 >
92 > I think it would make a lot of sense to NOT let a use flag suddenly
93 > adjust ACCEPT_LICENSE. However, it -would- i think make a lot of
94 > sense to ebuilds that implement a bindist use flag to adjust the
95 > licenses that apply to the emerged result.
96 >
97 >
98 >
99
100 -----BEGIN PGP SIGNATURE-----
101 Version: GnuPG v2.0.19 (GNU/Linux)
102 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
103
104 iQIcBAEBAgAGBQJRetj8AAoJEKXdFCfdEflKsdwP/3z7yFPpZm3zBynGzNNuviyz
105 pq1svrwZQL82gptTQoWt+/KyLGu+1sHgW4nLW7mPSzYbLWiu+/1fyOQWcAhQT2j8
106 kGW5vlLgz5Mb7SJWNEP0xcHtV3/OZPWj5KkKrsmjka4qf69XJ9KAXDka0joxO05O
107 uXAxzhAbaODKlmAF4oMqpNuEVmFTxk+hko05m4tIxTD1MbTBys8UR7EwwdcqZCTP
108 nVkDEanwgIOrVwc18t4DRr7gKkPc/dbcr9GYQtWlywPdQpUBfkdwaFCTk/gG6FQ+
109 Sq/3LLciU2+8JZgq1tROwYYboxXPNTjIE3KRxViIWddPo4/sZnrU+bv53zvusduw
110 t4WZ5ODZRttM+M/8Hx5E30EhMP5hF8IqvsxFYNNQJGcJa5B6vPMh1jK7TV9srGNx
111 IJkmufYR2SApzpBdn4Sx6VVmjSwpEOrCzNyNg029Zdrmlg+Ggv9h6YV7J05TCDhU
112 bCdeIP9Kq2IlZkVjLOJeDp8gS7hJpUvqH2Ky9wophbikTbQjnDVhBGlK9+WW4K5z
113 bH0MKRJCh4j3YqIlPyvIct2BH1Lzbh0O2ztB2w74AmE1INvuwtRdpUQLxGMr1XO+
114 9tOeIH/80dyseJSRCBULSlHtNqudM/0x15SIpJ6kxvTn5oZjC8uG8/rI6JbeY3OD
115 9lGtUSiLLys5mK1BFCR2
116 =vtqG
117 -----END PGP SIGNATURE-----

Replies