public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Eldad Zack <eldad@gentoo.org>
To: Jason Stubbs <jstubbs@gentoo.org>,
	Gentoo-Dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] Package notices
Date: Fri, 03 Sep 2004 19:15:12 +0300	[thread overview]
Message-ID: <1094228112.7077.33.camel@localhost> (raw)
In-Reply-To: <200409032315.05479.jstubbs@gentoo.org>

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

On Fri, 2004-09-03 at 17:15, Jason Stubbs wrote:
> On Saturday 04 September 2004 00:10, Eldad Zack wrote:
> > On Fri, 2004-09-03 at 08:10, Nicholas Jones wrote:
> > > functions.sh (from baselayout) dependence needs to go away.
> > > All used functions need to be logged/rewritten to not use those
> > > functions, and instead maintain its own.
> >
> > I propose overriding einfo/... after sourcing functions.sh in ebuild.sh.
> No, they really really need to be new commands. A few examples of why:

<snip>

> This is all stuff that is meaningless if the build succeeds. As far as I know, 
> einfo and friends were not created for use in ebuilds and just began being 
> used as it was convenient at the time.

My original thought was just that. I wouldn't give a wetslap about some
of the einfo's but some of them are really important.
I tried per-ebuild logging, but it doesn't cut it (for me) - just too
much cruft. I guess I could grep-hack around it... anyway, notices would
limit the messages to only the ebuild (and not the entire process).

Someone said earlier (Thomas) - "Your solution would require patching
hundreds of ebuilds, just to avoid patching portage? Imho, this is a
very wrong approach."

And it has a good point to it - For users to benefit from this change,
all the ebuilds need to me fixed, changing einfo/ewarn/eerror to their
new equiv's.

> Secondly, overriding is not good either. If you are overriding, it must be 
> because the functions do different things. If they are doing different 
> things, why call them the same thing? 

Not different as such - they do almost the same thing, just that the new
functions has an additional side-effect of outputting to a notice file
(and without color, so it is logfile friendly)

> The code itself is okay, but what functions are required needs to be 
> discussed, IMO. Then explicit definitions of when each function is used needs 
> to be given and each ebuild/eclass updated to use them.

Well, what are the needs beyond logging? The functionality can be added
very simply to this function. Including mailing out and the likes - All
the ebuild writer do is exactly what they do now, pass a message out.

> If everyone really really disagrees, I guess you can just create one more 
> function for the meaningless "pretty" stuff that gets outputted by ebuilds 
> and eclasses and just convert those. However, be aware that you are adding 
> another burden of backward compatibility that will only slow down portage's 
> progress further.

That would be a very ugly hack (== something you shouldn't add to
portage) - It would like wrapping around portage and parsing the
per-ebuild logs... or did you mean something else?

BTW, anyone who want to test it can look for the ebuild.sh patch in my
page (http://dev.gentoo.org/~eldad/).

-- 

Eldad Zack <eldad@gentoo.org>
Key/Fingerprint at pgp.mit.edu, ID 0x96EA0A93

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2004-09-03 14:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-02 20:12 [Fwd: Re: [gentoo-dev] Package notices] Eldad Zack
2004-09-02 22:17 ` Chris Gianelloni
2004-09-02 22:54 ` Thomas de Grenier de Latour
2004-09-03  5:10 ` [gentoo-dev] Package notices Nicholas Jones
2004-09-03 14:00   ` Pablo Villalba
2004-09-03 12:47     ` Jason Stubbs
2004-09-03 15:10   ` Eldad Zack
2004-09-03 14:15     ` Jason Stubbs
2004-09-03 16:15       ` Eldad Zack [this message]
2004-09-04 12:55   ` Eldad Zack
  -- strict thread matches above, loose matches on Subject: below --
2004-09-01 19:42 Eldad Zack
2004-09-01 21:05 ` William Hubbs
2004-09-01 22:01   ` Thomas de Grenier de Latour
2004-09-02 16:46 ` purslow
2004-09-02 18:06   ` Anton Starikov
2004-09-02 19:59   ` N. Owen Gunden
2004-09-02 18:46 ` Christian Gut
2004-09-02 18:56   ` Alexander Gretencord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1094228112.7077.33.camel@localhost \
    --to=eldad@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=jstubbs@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox