Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
Date: Sun, 21 Feb 2010 23:10:34
Message-Id: 4B81BB1C.3070907@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license by Zac Medico
1 On 21.2.2010 14.49, Zac Medico wrote:
2 > On 02/21/2010 02:36 PM, Petteri Räty wrote:
3 >> On 21.2.2010 14.17, Zac Medico wrote:
4 >>> On 02/21/2010 09:08 AM, Petteri Räty wrote:
5 >>>> On 20.2.2010 14.28, Zac Medico wrote:
6 >>>>> Hi,
7 >>>>>
8 >>>>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
9 >>>>> can think about deprecating check_license [1]. This will allow us to
10 >>>>> avoid using PROPERTIES=interactive in cases when it is due to
11 >>>>> check_license alone, since anything with a license in the @EULA
12 >>>>> license group is automatically masked by the default
13 >>>>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
14 >>>>>
15 >>>>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
16 >>>>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
17 >>>>
18 >>>> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
19 >>>> define the function any more and the Portage version will be
20 >>>> sufficiently new to have ACCEPT_LICENSE.
21 >>>
22 >>> That's a good idea. However, we may want to deprecate check_license
23 >>> it starting with EAPI=3 since the corresponding portage versions
24 >>> already support ACCEPT_LICENSE.
25 >>
26 >> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
27 >> would be against the eclass contract of not changing expected behavior.
28 >
29 > Given that check_license already returns silently if the user has
30 > accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
31 > necessary to change the eclass contract in order to safely remove
32 > PROPERTIES=interactive from EAPI=3 ebuilds.
33
34 So we could keep check_license defined in EAPI 3 and remove interactive
35 from PROPERTIES and in EAPI 4 undefine it. We should also have a repoman
36 check so developers catch it.
37
38 Regards,
39 Petteri

Replies