* [gentoo-dev] eqawarn for main tree
@ 2010-03-12 19:39 Petteri Räty
2010-03-12 21:27 ` Zac Medico
0 siblings, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2010-03-12 19:39 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1: Type: text/plain, Size: 589 bytes --]
In eclasses there's often use for outputting QA warnings for ebuild
authors (at least in java and python could immediately make use of
this). Currently Portage has eqawarn available but it's considered
internal. Hopefully eqawarn finds it's way to the next EAPI but in the
mean while do we want:
1) Do a wrapper like attached to eutils.eclass
2) Use whatever e* function that seems most appropriate (for example
einfo when it's common so user LOGging setups don't get too much noise)
3) Have a speedy next EAPI if we can find more stuff like this to bundle
Regards,
Petteri
[-- Attachment #1.2: eqawarn.patch --]
[-- Type: text/plain, Size: 646 bytes --]
Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.340
diff -u -r1.340 eutils.eclass
--- eutils.eclass 7 Mar 2010 03:00:08 -0000 1.340
+++ eutils.eclass 12 Mar 2010 19:36:28 -0000
@@ -63,6 +63,17 @@
fi
+# @FUNCTION: eqawarn
+# @USAGE: [message]
+# @DESCRIPTION:
+# Proxy to einfo for package managers that don't provide eqawarn and use the PM
+# implementation if available.
+if ! declare -F eqawarn >/dev/null ; then
+ eqawarn() {
+ einfo "$@"
+ }
+fi
+
# @FUNCTION: ecvs_clean
# @USAGE: [list of dirs]
# @DESCRIPTION:
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-03-12 19:39 [gentoo-dev] eqawarn for main tree Petteri Räty
@ 2010-03-12 21:27 ` Zac Medico
2010-03-13 19:16 ` Petteri Räty
2010-07-05 18:14 ` Petteri Räty
0 siblings, 2 replies; 10+ messages in thread
From: Zac Medico @ 2010-03-12 21:27 UTC (permalink / raw
To: gentoo-dev
On 03/12/2010 11:39 AM, Petteri Räty wrote:
> In eclasses there's often use for outputting QA warnings for ebuild
> authors (at least in java and python could immediately make use of
> this). Currently Portage has eqawarn available but it's considered
> internal. Hopefully eqawarn finds it's way to the next EAPI but in the
> mean while do we want:
>
> 1) Do a wrapper like attached to eutils.eclass
> 2) Use whatever e* function that seems most appropriate (for example
> einfo when it's common so user LOGging setups don't get too much noise)
> 3) Have a speedy next EAPI if we can find more stuff like this to bundle
Here's another option:
4) Retroactively add eqawarn to all EAPIs and use introspection to
call eqawarn only if available (and drop the introspection after
about 1 year):
declare -F eqawarn >/dev/null && \
eqawarn "this is ignored by older package managers"
--
Thanks,
Zac
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-03-12 21:27 ` Zac Medico
@ 2010-03-13 19:16 ` Petteri Räty
2010-07-05 18:14 ` Petteri Räty
1 sibling, 0 replies; 10+ messages in thread
From: Petteri Räty @ 2010-03-13 19:16 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
On 03/12/2010 11:27 PM, Zac Medico wrote:
> On 03/12/2010 11:39 AM, Petteri Räty wrote:
>> In eclasses there's often use for outputting QA warnings for ebuild
>> authors (at least in java and python could immediately make use of
>> this). Currently Portage has eqawarn available but it's considered
>> internal. Hopefully eqawarn finds it's way to the next EAPI but in the
>> mean while do we want:
>>
>> 1) Do a wrapper like attached to eutils.eclass
>> 2) Use whatever e* function that seems most appropriate (for example
>> einfo when it's common so user LOGging setups don't get too much noise)
>> 3) Have a speedy next EAPI if we can find more stuff like this to bundle
>
> Here's another option:
>
> 4) Retroactively add eqawarn to all EAPIs and use introspection to
> call eqawarn only if available (and drop the introspection after
> about 1 year):
>
> declare -F eqawarn >/dev/null && \
> eqawarn "this is ignored by older package managers"
>
I would rather focus on fixing the problem of new EAPI implementations
taking so long rather than retroactive hacks.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-03-12 21:27 ` Zac Medico
2010-03-13 19:16 ` Petteri Räty
@ 2010-07-05 18:14 ` Petteri Räty
2010-07-05 18:19 ` Mark Loeser
1 sibling, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2010-07-05 18:14 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]
On 03/12/2010 11:27 PM, Zac Medico wrote:
> On 03/12/2010 11:39 AM, Petteri Räty wrote:
>> In eclasses there's often use for outputting QA warnings for ebuild
>> authors (at least in java and python could immediately make use of
>> this). Currently Portage has eqawarn available but it's considered
>> internal. Hopefully eqawarn finds it's way to the next EAPI but in the
>> mean while do we want:
>>
>> 1) Do a wrapper like attached to eutils.eclass
>> 2) Use whatever e* function that seems most appropriate (for example
>> einfo when it's common so user LOGging setups don't get too much noise)
>> 3) Have a speedy next EAPI if we can find more stuff like this to bundle
>
> Here's another option:
>
> 4) Retroactively add eqawarn to all EAPIs and use introspection to
> call eqawarn only if available (and drop the introspection after
> about 1 year):
>
> declare -F eqawarn >/dev/null && \
> eqawarn "this is ignored by older package managers"
>
As there was no further response and next EAPI isn't around the corner I
propose getting the ball rolling with option 1. I will commit the patch
next Sunday with needed documentation unless something comes up.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-07-05 18:14 ` Petteri Räty
@ 2010-07-05 18:19 ` Mark Loeser
2010-07-05 22:42 ` [gentoo-dev] Re: devmanual change notification, was: " Jeroen Roovers
2010-07-10 11:15 ` [gentoo-dev] eqawarn for main tree Petteri Räty
0 siblings, 2 replies; 10+ messages in thread
From: Mark Loeser @ 2010-07-05 18:19 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1591 bytes --]
Petteri Räty <betelgeuse@gentoo.org> said:
> On 03/12/2010 11:27 PM, Zac Medico wrote:
> > On 03/12/2010 11:39 AM, Petteri Räty wrote:
> >> In eclasses there's often use for outputting QA warnings for ebuild
> >> authors (at least in java and python could immediately make use of
> >> this). Currently Portage has eqawarn available but it's considered
> >> internal. Hopefully eqawarn finds it's way to the next EAPI but in the
> >> mean while do we want:
> >>
> >> 1) Do a wrapper like attached to eutils.eclass
> >> 2) Use whatever e* function that seems most appropriate (for example
> >> einfo when it's common so user LOGging setups don't get too much noise)
> >> 3) Have a speedy next EAPI if we can find more stuff like this to bundle
> >
> > Here's another option:
> >
> > 4) Retroactively add eqawarn to all EAPIs and use introspection to
> > call eqawarn only if available (and drop the introspection after
> > about 1 year):
> >
> > declare -F eqawarn >/dev/null && \
> > eqawarn "this is ignored by older package managers"
> >
>
> As there was no further response and next EAPI isn't around the corner I
> propose getting the ball rolling with option 1. I will commit the patch
> next Sunday with needed documentation unless something comes up.
Could you please give a description as to when you believe this function
should be used. Preferably as a patch for devmanual :)
Thanks,
--
Mark Loeser
email - halcy0n AT gentoo DOT org
email - mark AT halcy0n DOT com
web - http://www.halcy0n.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-dev] Re: devmanual change notification, was: eqawarn for main tree
2010-07-05 18:19 ` Mark Loeser
@ 2010-07-05 22:42 ` Jeroen Roovers
2010-07-06 6:49 ` [gentoo-dev] Re: devmanual change notification Torsten Veller
2010-07-10 11:15 ` [gentoo-dev] eqawarn for main tree Petteri Räty
1 sibling, 1 reply; 10+ messages in thread
From: Jeroen Roovers @ 2010-07-05 22:42 UTC (permalink / raw
To: gentoo-dev
On Mon, 5 Jul 2010 14:19:30 -0400
Mark Loeser <halcy0n@gentoo.org> wrote:
> Could you please give a description as to when you believe this
> function should be used. Preferably as a patch for devmanual :)
Devmanual gets patched? No seriously - I guess mail to dev-announce@
would be nice in case of changes to devmanual. Useful for all
developers who don't like getting spammed by the commits mailing list.
jer
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-dev] Re: devmanual change notification
2010-07-05 22:42 ` [gentoo-dev] Re: devmanual change notification, was: " Jeroen Roovers
@ 2010-07-06 6:49 ` Torsten Veller
0 siblings, 0 replies; 10+ messages in thread
From: Torsten Veller @ 2010-07-06 6:49 UTC (permalink / raw
To: gentoo-dev
* Jeroen Roovers <jer@gentoo.org>:
> Devmanual gets patched? No seriously - I guess mail to dev-announce@
> would be nice in case of changes to devmanual. Useful for all
> developers who don't like getting spammed by the commits mailing list.
Since moving from subversion to git we don't get any notification at
all. Not even the commits list gets the changes. Before the move the
commits were also sent to the devmanual-commits alias.
The best we currently have are the feeds from gitweb[1] but they
only show the log. For a patch we have to click another link.
[1] http://sources.gentoo.org/gitweb/?p=devmanual.git
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-07-05 18:19 ` Mark Loeser
2010-07-05 22:42 ` [gentoo-dev] Re: devmanual change notification, was: " Jeroen Roovers
@ 2010-07-10 11:15 ` Petteri Räty
2010-07-10 17:40 ` "Paweł Hajdan, Jr."
1 sibling, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2010-07-10 11:15 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1.1: Type: text/plain, Size: 516 bytes --]
On 07/05/2010 09:19 PM, Mark Loeser wrote:
>>
>> As there was no further response and next EAPI isn't around the corner I
>> propose getting the ball rolling with option 1. I will commit the patch
>> next Sunday with needed documentation unless something comes up.
>
> Could you please give a description as to when you believe this function
> should be used. Preferably as a patch for devmanual :)
>
> Thanks,
>
Attached is the patch I plan on pushing with the eclass commit.
Regards,
Petteri
[-- Attachment #1.2: eqawarn.patch --]
[-- Type: text/plain, Size: 1801 bytes --]
diff --git a/ebuild-writing/messages/text.xml b/ebuild-writing/messages/text.xml
index 4720be4..2bb348a 100644
--- a/ebuild-writing/messages/text.xml
+++ b/ebuild-writing/messages/text.xml
@@ -95,6 +95,19 @@ is mainly used for displaying additional error details before bailing out.
</section>
<section>
+<title>QA warnings</title>
+<body>
+
+<p>
+ The <c>eqawarn</c> function can be used by eclass authors to notify ebuild writers about
+ deprecated functionality. eqawarn is defined in eutils. Portage doesn't log the qa message
+ class by default so users don't get annoyed by seeing messages they can't do much about.
+</p>
+
+</body>
+</section>
+
+<section>
<title>Message function reference</title>
<body>
diff --git a/function-reference/message-functions/text.xml b/function-reference/message-functions/text.xml
index 97c86e6..24f4b82 100644
--- a/function-reference/message-functions/text.xml
+++ b/function-reference/message-functions/text.xml
@@ -77,9 +77,9 @@ displaying informational messages.
</table>
<p>
- The following are available from <c>eutils.eclass</c> in EAPIs 0, 1 and 2.
- They are deprecated in favor of GLEP 42 news items and package manager
- message logging functionality.
+ The following are available from <c>eutils.eclass</c> . ebeep and epause
+ are deprecated in EAPIS 0, 1 and 2 in favor of GLEP 42 news items and
+ package manager message logging functionality.
</p>
<table>
@@ -108,6 +108,14 @@ displaying informational messages.
Beep the specified number (must be a positive integer) of times. Defaults to a sane value.
</ti>
</tr>
+ <tr>
+ <ti>
+ <c>eqawarn</c>
+ </ti>
+ <ti>
+ Used by eclass authors to notify ebuild writers that they are using deprecated functionality.
+ </ti>
+ </tr>
</table>
<p>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-07-10 11:15 ` [gentoo-dev] eqawarn for main tree Petteri Räty
@ 2010-07-10 17:40 ` "Paweł Hajdan, Jr."
2010-07-10 17:48 ` Petteri Räty
0 siblings, 1 reply; 10+ messages in thread
From: "Paweł Hajdan, Jr." @ 2010-07-10 17:40 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
On 7/10/10 4:15 AM, Petteri Räty wrote:
> Attached is the patch I plan on pushing with the eclass commit.
Just making sure... will the developer profile print the eqawarn
messages by default on exit?
Paweł
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-dev] eqawarn for main tree
2010-07-10 17:40 ` "Paweł Hajdan, Jr."
@ 2010-07-10 17:48 ` Petteri Räty
0 siblings, 0 replies; 10+ messages in thread
From: Petteri Räty @ 2010-07-10 17:48 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
On 07/10/2010 08:40 PM, "Paweł Hajdan, Jr." wrote:
> On 7/10/10 4:15 AM, Petteri Räty wrote:
>> Attached is the patch I plan on pushing with the eclass commit.
>
> Just making sure... will the developer profile print the eqawarn
> messages by default on exit?
>
Doesn't look like it. I use this in my make.conf:
PORTAGE_ELOG_SYSTEM="${PORTAGE_ELOG_SYSTEM} echo:qa save:qa"
Probably someone who maintains developer profiles (if such a person
exists) can add something like that there after testing.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-07-10 17:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12 19:39 [gentoo-dev] eqawarn for main tree Petteri Räty
2010-03-12 21:27 ` Zac Medico
2010-03-13 19:16 ` Petteri Räty
2010-07-05 18:14 ` Petteri Räty
2010-07-05 18:19 ` Mark Loeser
2010-07-05 22:42 ` [gentoo-dev] Re: devmanual change notification, was: " Jeroen Roovers
2010-07-06 6:49 ` [gentoo-dev] Re: devmanual change notification Torsten Veller
2010-07-10 11:15 ` [gentoo-dev] eqawarn for main tree Petteri Räty
2010-07-10 17:40 ` "Paweł Hajdan, Jr."
2010-07-10 17:48 ` Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox