public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] eutils changes wrt EAPI-3 - ebeep and epause no longer available
@ 2010-02-17  2:25 Maciej Mrozowski
  2010-02-17 14:14 ` Jeremy Olexa
  2010-02-25  3:11 ` Maciej Mrozowski
  0 siblings, 2 replies; 10+ messages in thread
From: Maciej Mrozowski @ 2010-02-17  2:25 UTC (permalink / raw
  To: gentoo-dev-announce; +Cc: gentoo-dev

A as result of discussion http://www.mail-archive.com/gentoo-
dev@lists.gentoo.org/msg37300.html
ebeep and epause functions defined in eutils are not available in EAPI >= 3.
For interactive installs, PROPERTIES="interactive" should be used instead.

-- 
regards
MM



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

* Re: [gentoo-dev] eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17  2:25 [gentoo-dev] eutils changes wrt EAPI-3 - ebeep and epause no longer available Maciej Mrozowski
@ 2010-02-17 14:14 ` Jeremy Olexa
  2010-02-17 14:33   ` [gentoo-dev] " Torsten Veller
  2010-02-25  3:11 ` Maciej Mrozowski
  1 sibling, 1 reply; 10+ messages in thread
From: Jeremy Olexa @ 2010-02-17 14:14 UTC (permalink / raw
  To: gentoo-dev

Maciej Mrozowski wrote:
> A as result of discussion http://www.mail-archive.com/gentoo-
> dev@lists.gentoo.org/msg37300.html
> ebeep and epause functions defined in eutils are not available in EAPI >= 3.
> For interactive installs, PROPERTIES="interactive" should be used instead.
> 

Maybe ebeep and epause should be defined in EAPI>=3 but a qa warning so 
things actually get fixed?

Something like this (not tested):

%% cvs di eutils.eclass
Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.330
diff -u -r1.330 eutils.eclass
--- eutils.eclass       15 Feb 2010 02:10:39 -0000      1.330
+++ eutils.eclass       17 Feb 2010 14:13:16 -0000
@@ -50,6 +50,15 @@
                 done
         fi
  }
+else
+       ebeep() {
+               eqawarn "ebeep is not defined in EAPI=3, please file a 
bug at
+               http://bugs.gentoo.org"
+       }
+       epause() {
+               eqawarn "epause is not defined in EAPI=3, please file a 
bug at
+               http://bugs.gentoo.org"
+       }

  fi

-Jeremy



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

* [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 14:14 ` Jeremy Olexa
@ 2010-02-17 14:33   ` Torsten Veller
  2010-02-17 17:13     ` Petteri Räty
  0 siblings, 1 reply; 10+ messages in thread
From: Torsten Veller @ 2010-02-17 14:33 UTC (permalink / raw
  To: gentoo-dev

* Jeremy Olexa <darkside@gentoo.org>:
> Maciej Mrozowski wrote:
> >A as result of discussion http://www.mail-archive.com/gentoo-
> >dev@lists.gentoo.org/msg37300.html
> >ebeep and epause functions defined in eutils are not available in EAPI >= 3.
> >For interactive installs, PROPERTIES="interactive" should be used instead.
> >
> 
> Maybe ebeep and epause should be defined in EAPI>=3 but a qa warning
> so things actually get fixed?
> 
> Something like this (not tested):
> 
> %% cvs di eutils.eclass
> Index: eutils.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
> retrieving revision 1.330
> diff -u -r1.330 eutils.eclass

If you'd update your tree you can see that something like this was
committed.
http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/eutils.eclass?r1=1.330&r2=1.332

> --- eutils.eclass       15 Feb 2010 02:10:39 -0000      1.330
> +++ eutils.eclass       17 Feb 2010 14:13:16 -0000
> @@ -50,6 +50,15 @@
>                 done
>         fi
>  }
> +else
> +       ebeep() {
> +               eqawarn "ebeep is not defined in EAPI=3, please file

The problem here is that eqawarn isn't defined in EAPI 3.



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

* Re: [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 14:33   ` [gentoo-dev] " Torsten Veller
@ 2010-02-17 17:13     ` Petteri Räty
  2010-02-17 18:03       ` Jeremy Olexa
  0 siblings, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2010-02-17 17:13 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 768 bytes --]

On 17.2.2010 16.33, Torsten Veller wrote:

> 
>> --- eutils.eclass       15 Feb 2010 02:10:39 -0000      1.330
>> +++ eutils.eclass       17 Feb 2010 14:13:16 -0000
>> @@ -50,6 +50,15 @@
>>                 done
>>         fi
>>  }
>> +else
>> +       ebeep() {
>> +               eqawarn "ebeep is not defined in EAPI=3, please file
> 
> The problem here is that eqawarn isn't defined in EAPI 3.
> 

Just shows that committing things to central eclasses without review is
a bad thing. I improved the code so that it doesn't at least call
eqawarn without first checking if it exists. Instead of code like this
in the eclasses, I think this should be done by Portage grepping logs. I
think it's already running searches over it for gcc things any way.

Regards,
Petteri

[-- Attachment #2: eqawarn.patch --]
[-- Type: text/plain, Size: 914 bytes --]

betelgeuse@pena /usr/portage/eclass $ cvs diff eutils.eclass 
Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.332
diff -u -r1.332 eutils.eclass
--- eutils.eclass	17 Feb 2010 02:22:43 -0000	1.332
+++ eutils.eclass	17 Feb 2010 17:10:00 -0000
@@ -54,11 +54,13 @@
 else
 
 ebeep() {
-	eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+	[[ $(type -t eqawarn) == function ]] && \
+		eqawarn "QA Notice: ebeep is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
 }
 
 epause() {
-	eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
+	[[ $(type -t eqawarn) == function ]] && \
+		eqawarn "QA Notice: epause is not defined in EAPI=3, please file a bug at http://bugs.gentoo.org"
 }
 
 fi


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

* Re: [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 17:13     ` Petteri Räty
@ 2010-02-17 18:03       ` Jeremy Olexa
  2010-02-17 18:11         ` Ciaran McCreesh
  2010-02-18  0:46         ` Petteri Räty
  0 siblings, 2 replies; 10+ messages in thread
From: Jeremy Olexa @ 2010-02-17 18:03 UTC (permalink / raw
  To: gentoo-dev


On Wed, 17 Feb 2010 19:13:06 +0200, Petteri Räty <betelgeuse@gentoo.org>
wrote:
> On 17.2.2010 16.33, Torsten Veller wrote:
> 
>> 
>>> --- eutils.eclass       15 Feb 2010 02:10:39 -0000      1.330
>>> +++ eutils.eclass       17 Feb 2010 14:13:16 -0000
>>> @@ -50,6 +50,15 @@
>>>                 done
>>>         fi
>>>  }
>>> +else
>>> +       ebeep() {
>>> +               eqawarn "ebeep is not defined in EAPI=3, please file
>> 
>> The problem here is that eqawarn isn't defined in EAPI 3.
>> 
> 
> Just shows that committing things to central eclasses without review is
> a bad thing. I improved the code so that it doesn't at least call
> eqawarn without first checking if it exists. Instead of code like this
> in the eclasses, I think this should be done by Portage grepping logs. I
> think it's already running searches over it for gcc things any way.

What is going on with all these undocumented changes? When I look at the
council logs to see what is in EAPI3, I don't see anything about removing
functions. This is just silly and wastes alot of people's time for no
practical gain. In my EAPI3 portage, bin/isolated-functions.sh still has
eqawarn() defined. So, what am I missing now?

Also, other people think it is OK to change the behavior of functions and
not document it in devmanual?

> Regards,
> Petteri



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

* Re: [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 18:03       ` Jeremy Olexa
@ 2010-02-17 18:11         ` Ciaran McCreesh
  2010-02-17 18:21           ` Jeremy Olexa
  2010-02-18  0:46         ` Petteri Räty
  1 sibling, 1 reply; 10+ messages in thread
From: Ciaran McCreesh @ 2010-02-17 18:11 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 711 bytes --]

On Wed, 17 Feb 2010 18:03:42 +0000
Jeremy Olexa <darkside@gentoo.org> wrote:
> What is going on with all these undocumented changes? When I look at
> the council logs to see what is in EAPI3, I don't see anything about
> removing functions. This is just silly and wastes alot of people's
> time for no practical gain.

Being in eutils, none of this has anything to do with PMS or the
Council.

> In my EAPI3 portage, bin/isolated-functions.sh still has eqawarn()
> defined. So, what am I missing now?

eqawarn has never been defined in any EAPI. It's a Portage internal,
not something for ebuilds to use. If you'd like it to be in an EAPI, you
can propose it for EAPI 5.

-- 
Ciaran McCreesh

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

* Re: [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 18:11         ` Ciaran McCreesh
@ 2010-02-17 18:21           ` Jeremy Olexa
  0 siblings, 0 replies; 10+ messages in thread
From: Jeremy Olexa @ 2010-02-17 18:21 UTC (permalink / raw
  To: gentoo-dev


On Wed, 17 Feb 2010 18:11:42 +0000, Ciaran McCreesh
<ciaran.mccreesh@googlemail.com> wrote:
> On Wed, 17 Feb 2010 18:03:42 +0000
> Jeremy Olexa <darkside@gentoo.org> wrote:
>> What is going on with all these undocumented changes? When I look at
>> the council logs to see what is in EAPI3, I don't see anything about
>> removing functions. This is just silly and wastes alot of people's
>> time for no practical gain.
> 
> Being in eutils, none of this has anything to do with PMS or the
> Council.

So, I was highlighting a problem. No one wants to write docs, which is
quite bad for the health of Gentoo.

> 
>> In my EAPI3 portage, bin/isolated-functions.sh still has eqawarn()
>> defined. So, what am I missing now?
> 
> eqawarn has never been defined in any EAPI. It's a Portage internal,
> not something for ebuilds to use. If you'd like it to be in an EAPI, you
> can propose it for EAPI 5.

Yes, correct. For some reason, I thought it was valid to use eqawarn in
ebuilds. Now I guess a valid fix for eutils.eclass would be:

%% cvs di eutils.eclass 
Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.333
diff -u -r1.333 eutils.eclass
--- eutils.eclass       17 Feb 2010 17:10:23 -0000      1.333
+++ eutils.eclass       17 Feb 2010 18:20:18 -0000
@@ -54,13 +54,11 @@
 else
 
 ebeep() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: ebeep is not defined in EAPI=3, please
file a bug at http://bugs.gentoo.org"
+               einfo "QA Notice: ebeep is not defined in EAPI=3, please
file a bug at http://bugs.gentoo.org"
 }
 
 epause() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: epause is not defined in EAPI=3,
please file a bug at http://bugs.gentoo.org"
+               einfo "QA Notice: epause is not defined in EAPI=3, please
file a bug at http://bugs.gentoo.org"
 }
 
 fi

(where einfo is used because it doesn't need to be logged)

-Jeremy



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

* Re: [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17 18:03       ` Jeremy Olexa
  2010-02-17 18:11         ` Ciaran McCreesh
@ 2010-02-18  0:46         ` Petteri Räty
  1 sibling, 0 replies; 10+ messages in thread
From: Petteri Räty @ 2010-02-18  0:46 UTC (permalink / raw
  To: gentoo-dev

On 17.2.2010 20.03, Jeremy Olexa wrote:

> 
> What is going on with all these undocumented changes? When I look at the
> council logs to see what is in EAPI3, I don't see anything about removing
> functions. This is just silly and wastes alot of people's time for no
> practical gain. In my EAPI3 portage, bin/isolated-functions.sh still has
> eqawarn() defined. So, what am I missing now?
> 

The canonical documentation for eclasses is eclass-manpages generated
man pages and those where changed in my original commit.

> Also, other people think it is OK to change the behavior of functions and
> not document it in devmanual?
> 

devmanual should either have a pointer to eclass-manpages or
autogenerate from eclass-manpages. The relevant bug is here:
https://bugs.gentoo.org/show_bug.cgi?id=202656

Regards,
Petteri



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

* [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-17  2:25 [gentoo-dev] eutils changes wrt EAPI-3 - ebeep and epause no longer available Maciej Mrozowski
  2010-02-17 14:14 ` Jeremy Olexa
@ 2010-02-25  3:11 ` Maciej Mrozowski
  2010-03-02  0:55   ` Maciej Mrozowski
  1 sibling, 1 reply; 10+ messages in thread
From: Maciej Mrozowski @ 2010-02-25  3:11 UTC (permalink / raw
  To: gentoo-dev

On Wednesday 17 of February 2010 03:25:16 Maciej Mrozowski wrote:

If no objections, I'm going to commit in 5 days the following patch to 
eutils.eclass

Index: eutils.eclass                           
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v           
retrieving revision 1.333                                          
diff -u -B -r1.333 eutils.eclass                                   
--- eutils.eclass       17 Feb 2010 17:10:23 -0000      1.333      
+++ eutils.eclass       25 Feb 2010 03:11:32 -0000                 
@@ -54,13 +54,11 @@                                                
 else

 ebeep() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: ebeep is not defined in EAPI=3, please 
file a bug at http://bugs.gentoo.org"
+       ewarn "QA Notice: ebeep is not defined in EAPI=${EAPI}, please file a 
bug at http://bugs.gentoo.org"
 }

 epause() {
-       [[ $(type -t eqawarn) == function ]] && \
-               eqawarn "QA Notice: epause is not defined in EAPI=3, please 
file a bug at http://bugs.gentoo.org"
+       ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please file a 
bug at http://bugs.gentoo.org"
 }

 fi

-- 
regards
MM



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

* [gentoo-dev] Re: eutils changes wrt EAPI-3 - ebeep and epause no longer available
  2010-02-25  3:11 ` Maciej Mrozowski
@ 2010-03-02  0:55   ` Maciej Mrozowski
  0 siblings, 0 replies; 10+ messages in thread
From: Maciej Mrozowski @ 2010-03-02  0:55 UTC (permalink / raw
  To: gentoo-dev

On Thursday 25 of February 2010 04:11:49 Maciej Mrozowski wrote:
> On Wednesday 17 of February 2010 03:25:16 Maciej Mrozowski wrote:
> 
> If no objections, I'm going to commit in 5 days the following patch to
> eutils.eclass
> 
> Index: eutils.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
> retrieving revision 1.333
> diff -u -B -r1.333 eutils.eclass
> --- eutils.eclass       17 Feb 2010 17:10:23 -0000      1.333
> +++ eutils.eclass       25 Feb 2010 03:11:32 -0000
> @@ -54,13 +54,11 @@
>  else
> 
>  ebeep() {
> -       [[ $(type -t eqawarn) == function ]] && \
> -               eqawarn "QA Notice: ebeep is not defined in EAPI=3, please
> file a bug at http://bugs.gentoo.org"
> +       ewarn "QA Notice: ebeep is not defined in EAPI=${EAPI}, please file
> a bug at http://bugs.gentoo.org"
>  }
> 
>  epause() {
> -       [[ $(type -t eqawarn) == function ]] && \
> -               eqawarn "QA Notice: epause is not defined in EAPI=3, please
> file a bug at http://bugs.gentoo.org"
> +       ewarn "QA Notice: epause is not defined in EAPI=${EAPI}, please
> file a bug at http://bugs.gentoo.org"
>  }
> 
>  fi

No objections, so commiting this one.

-- 
regards
MM



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

end of thread, other threads:[~2010-03-02  0:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-17  2:25 [gentoo-dev] eutils changes wrt EAPI-3 - ebeep and epause no longer available Maciej Mrozowski
2010-02-17 14:14 ` Jeremy Olexa
2010-02-17 14:33   ` [gentoo-dev] " Torsten Veller
2010-02-17 17:13     ` Petteri Räty
2010-02-17 18:03       ` Jeremy Olexa
2010-02-17 18:11         ` Ciaran McCreesh
2010-02-17 18:21           ` Jeremy Olexa
2010-02-18  0:46         ` Petteri Räty
2010-02-25  3:11 ` Maciej Mrozowski
2010-03-02  0:55   ` Maciej Mrozowski

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