public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
@ 2010-02-20 22:28 Zac Medico
  2010-02-21 17:08 ` Petteri Räty
  0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2010-02-20 22:28 UTC (permalink / raw
  To: Gentoo Dev

Hi,

Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
can think about deprecating check_license [1]. This will allow us to
avoid using PROPERTIES=interactive in cases when it is due to
check_license alone, since anything with a license in the @EULA
license group is automatically masked by the default
ACCEPT_LICENSE="* -@EULA" portage configuration [2].

[1] http://bugs.gentoo.org/show_bug.cgi?id=299095
[2] http://bugs.gentoo.org/show_bug.cgi?id=302645
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-20 22:28 [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license Zac Medico
@ 2010-02-21 17:08 ` Petteri Räty
  2010-02-21 22:17   ` Zac Medico
  0 siblings, 1 reply; 9+ messages in thread
From: Petteri Räty @ 2010-02-21 17:08 UTC (permalink / raw
  To: gentoo-dev

On 20.2.2010 14.28, Zac Medico wrote:
> Hi,
> 
> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
> can think about deprecating check_license [1]. This will allow us to
> avoid using PROPERTIES=interactive in cases when it is due to
> check_license alone, since anything with a license in the @EULA
> license group is automatically masked by the default
> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
> 
> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645

We could handle it like deprecating ebeep and epause. With EAPI=4 don't
define the function any more and the Portage version will be
sufficiently new to have ACCEPT_LICENSE.

Regards,
Petteri



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 17:08 ` Petteri Räty
@ 2010-02-21 22:17   ` Zac Medico
  2010-02-21 22:36     ` Petteri Räty
  0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2010-02-21 22:17 UTC (permalink / raw
  To: gentoo-dev

On 02/21/2010 09:08 AM, Petteri Räty wrote:
> On 20.2.2010 14.28, Zac Medico wrote:
>> Hi,
>>
>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
>> can think about deprecating check_license [1]. This will allow us to
>> avoid using PROPERTIES=interactive in cases when it is due to
>> check_license alone, since anything with a license in the @EULA
>> license group is automatically masked by the default
>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
>>
>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
> 
> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
> define the function any more and the Portage version will be
> sufficiently new to have ACCEPT_LICENSE.

That's a good idea. However, we may want to deprecate check_license
it starting with EAPI=3 since the corresponding portage versions
already support ACCEPT_LICENSE.
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 22:17   ` Zac Medico
@ 2010-02-21 22:36     ` Petteri Räty
  2010-02-21 22:49       ` Zac Medico
  0 siblings, 1 reply; 9+ messages in thread
From: Petteri Räty @ 2010-02-21 22:36 UTC (permalink / raw
  To: gentoo-dev

On 21.2.2010 14.17, Zac Medico wrote:
> On 02/21/2010 09:08 AM, Petteri Räty wrote:
>> On 20.2.2010 14.28, Zac Medico wrote:
>>> Hi,
>>>
>>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
>>> can think about deprecating check_license [1]. This will allow us to
>>> avoid using PROPERTIES=interactive in cases when it is due to
>>> check_license alone, since anything with a license in the @EULA
>>> license group is automatically masked by the default
>>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
>>>
>>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
>>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
>>
>> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
>> define the function any more and the Portage version will be
>> sufficiently new to have ACCEPT_LICENSE.
> 
> That's a good idea. However, we may want to deprecate check_license
> it starting with EAPI=3 since the corresponding portage versions
> already support ACCEPT_LICENSE.

Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
would be against the eclass contract of not changing expected behavior.
Would be a win-win situation if we would get EAPI 4 :)

Regards,
Petteri



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 22:36     ` Petteri Räty
@ 2010-02-21 22:49       ` Zac Medico
  2010-02-21 23:00         ` Petteri Räty
  0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2010-02-21 22:49 UTC (permalink / raw
  To: gentoo-dev

On 02/21/2010 02:36 PM, Petteri Räty wrote:
> On 21.2.2010 14.17, Zac Medico wrote:
>> On 02/21/2010 09:08 AM, Petteri Räty wrote:
>>> On 20.2.2010 14.28, Zac Medico wrote:
>>>> Hi,
>>>>
>>>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
>>>> can think about deprecating check_license [1]. This will allow us to
>>>> avoid using PROPERTIES=interactive in cases when it is due to
>>>> check_license alone, since anything with a license in the @EULA
>>>> license group is automatically masked by the default
>>>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
>>>>
>>>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
>>>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
>>>
>>> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
>>> define the function any more and the Portage version will be
>>> sufficiently new to have ACCEPT_LICENSE.
>>
>> That's a good idea. However, we may want to deprecate check_license
>> it starting with EAPI=3 since the corresponding portage versions
>> already support ACCEPT_LICENSE.
> 
> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
> would be against the eclass contract of not changing expected behavior.

Given that check_license already returns silently if the user has
accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
necessary to change the eclass contract in order to safely remove
PROPERTIES=interactive from EAPI=3 ebuilds.
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 22:49       ` Zac Medico
@ 2010-02-21 23:00         ` Petteri Räty
  2010-02-21 23:21           ` Zac Medico
  0 siblings, 1 reply; 9+ messages in thread
From: Petteri Räty @ 2010-02-21 23:00 UTC (permalink / raw
  To: gentoo-dev

On 21.2.2010 14.49, Zac Medico wrote:
> On 02/21/2010 02:36 PM, Petteri Räty wrote:
>> On 21.2.2010 14.17, Zac Medico wrote:
>>> On 02/21/2010 09:08 AM, Petteri Räty wrote:
>>>> On 20.2.2010 14.28, Zac Medico wrote:
>>>>> Hi,
>>>>>
>>>>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
>>>>> can think about deprecating check_license [1]. This will allow us to
>>>>> avoid using PROPERTIES=interactive in cases when it is due to
>>>>> check_license alone, since anything with a license in the @EULA
>>>>> license group is automatically masked by the default
>>>>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
>>>>>
>>>>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
>>>>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
>>>>
>>>> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
>>>> define the function any more and the Portage version will be
>>>> sufficiently new to have ACCEPT_LICENSE.
>>>
>>> That's a good idea. However, we may want to deprecate check_license
>>> it starting with EAPI=3 since the corresponding portage versions
>>> already support ACCEPT_LICENSE.
>>
>> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
>> would be against the eclass contract of not changing expected behavior.
> 
> Given that check_license already returns silently if the user has
> accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
> necessary to change the eclass contract in order to safely remove
> PROPERTIES=interactive from EAPI=3 ebuilds.

So we could keep check_license defined in EAPI 3 and remove interactive
from PROPERTIES and in EAPI 4 undefine it. We should also have a repoman
check so developers catch it.

Regards,
Petteri



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 23:00         ` Petteri Räty
@ 2010-02-21 23:21           ` Zac Medico
  2010-02-22  0:35             ` Petteri Räty
  0 siblings, 1 reply; 9+ messages in thread
From: Zac Medico @ 2010-02-21 23:21 UTC (permalink / raw
  To: gentoo-dev

On 02/21/2010 03:00 PM, Petteri Räty wrote:
> On 21.2.2010 14.49, Zac Medico wrote:
>> On 02/21/2010 02:36 PM, Petteri Räty wrote:
>>> On 21.2.2010 14.17, Zac Medico wrote:
>>>> On 02/21/2010 09:08 AM, Petteri Räty wrote:
>>>>> On 20.2.2010 14.28, Zac Medico wrote:
>>>>>> Hi,
>>>>>>
>>>>>> Since portage-2.1.7.x is stable now, with ACCEPT_LICENSE support, we
>>>>>> can think about deprecating check_license [1]. This will allow us to
>>>>>> avoid using PROPERTIES=interactive in cases when it is due to
>>>>>> check_license alone, since anything with a license in the @EULA
>>>>>> license group is automatically masked by the default
>>>>>> ACCEPT_LICENSE="* -@EULA" portage configuration [2].
>>>>>>
>>>>>> [1] http://bugs.gentoo.org/show_bug.cgi?id=299095
>>>>>> [2] http://bugs.gentoo.org/show_bug.cgi?id=302645
>>>>>
>>>>> We could handle it like deprecating ebeep and epause. With EAPI=4 don't
>>>>> define the function any more and the Portage version will be
>>>>> sufficiently new to have ACCEPT_LICENSE.
>>>>
>>>> That's a good idea. However, we may want to deprecate check_license
>>>> it starting with EAPI=3 since the corresponding portage versions
>>>> already support ACCEPT_LICENSE.
>>>
>>> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
>>> would be against the eclass contract of not changing expected behavior.
>>
>> Given that check_license already returns silently if the user has
>> accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
>> necessary to change the eclass contract in order to safely remove
>> PROPERTIES=interactive from EAPI=3 ebuilds.
> 
> So we could keep check_license defined in EAPI 3 and remove interactive
> from PROPERTIES and in EAPI 4 undefine it. We should also have a repoman
> check so developers catch it.

That's a good plan. The repoman check may have to wait for EAPI 4
since it might be difficult to automatically to separate out cases
in EAPI 3 where PROPERTIES=interactive is due to check_license alone.
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-21 23:21           ` Zac Medico
@ 2010-02-22  0:35             ` Petteri Räty
  2010-02-22  0:43               ` Zac Medico
  0 siblings, 1 reply; 9+ messages in thread
From: Petteri Räty @ 2010-02-22  0:35 UTC (permalink / raw
  To: gentoo-dev

On 21.2.2010 15.21, Zac Medico wrote:
>>>>
>>>> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
>>>> would be against the eclass contract of not changing expected behavior.
>>>
>>> Given that check_license already returns silently if the user has
>>> accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
>>> necessary to change the eclass contract in order to safely remove
>>> PROPERTIES=interactive from EAPI=3 ebuilds.
>>
>> So we could keep check_license defined in EAPI 3 and remove interactive
>> from PROPERTIES and in EAPI 4 undefine it. We should also have a repoman
>> check so developers catch it.
> 
> That's a good plan. The repoman check may have to wait for EAPI 4
> since it might be difficult to automatically to separate out cases
> in EAPI 3 where PROPERTIES=interactive is due to check_license alone.

But it can still search for check_license and tell to migrate to
ACCEPT_LICENSE.

Regards,
Petteri



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license
  2010-02-22  0:35             ` Petteri Räty
@ 2010-02-22  0:43               ` Zac Medico
  0 siblings, 0 replies; 9+ messages in thread
From: Zac Medico @ 2010-02-22  0:43 UTC (permalink / raw
  To: gentoo-dev

On 02/21/2010 04:35 PM, Petteri Räty wrote:
> On 21.2.2010 15.21, Zac Medico wrote:
>>>>>
>>>>> Likely there wouldn't be any breakage with it doing it in EAPI 3 but it
>>>>> would be against the eclass contract of not changing expected behavior.
>>>>
>>>> Given that check_license already returns silently if the user has
>>>> accepted the appropriate license(s) via ACCEPT_LICENSE, it's not
>>>> necessary to change the eclass contract in order to safely remove
>>>> PROPERTIES=interactive from EAPI=3 ebuilds.
>>>
>>> So we could keep check_license defined in EAPI 3 and remove interactive
>>> from PROPERTIES and in EAPI 4 undefine it. We should also have a repoman
>>> check so developers catch it.
>>
>> That's a good plan. The repoman check may have to wait for EAPI 4
>> since it might be difficult to automatically to separate out cases
>> in EAPI 3 where PROPERTIES=interactive is due to check_license alone.
> 
> But it can still search for check_license and tell to migrate to
> ACCEPT_LICENSE.

Oh yes, good point.
-- 
Thanks,
Zac



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-02-22  1:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-20 22:28 [gentoo-dev] RFC: ACCEPT_LICENSE and deprecation of check_license Zac Medico
2010-02-21 17:08 ` Petteri Räty
2010-02-21 22:17   ` Zac Medico
2010-02-21 22:36     ` Petteri Räty
2010-02-21 22:49       ` Zac Medico
2010-02-21 23:00         ` Petteri Räty
2010-02-21 23:21           ` Zac Medico
2010-02-22  0:35             ` Petteri Räty
2010-02-22  0:43               ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox