From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23160 invoked from network); 2 Sep 2004 22:08:30 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 2 Sep 2004 22:08:30 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C2zkk-0002sq-Bb for arch-gentoo-dev@lists.gentoo.org; Thu, 02 Sep 2004 22:08:22 +0000 Received: (qmail 5544 invoked by uid 89); 2 Sep 2004 22:08:20 +0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 26366 invoked from network); 2 Sep 2004 22:08:19 +0000 From: Chris Gianelloni Reply-To: wolf31o2@gentoo.org To: gentoo-dev@lists.gentoo.org In-Reply-To: <1094155935.19504.40.camel@localhost> References: <1094155935.19504.40.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-hdjb5htSceXgfPJdstr1" Organization: Gentoo Linux Message-Id: <1094163421.1055.77.camel@cgianelloni.nuvox.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 02 Sep 2004 18:17:02 -0400 Subject: Re: [Fwd: Re: [gentoo-dev] Package notices] X-Archives-Salt: 95ede379-a5ac-4470-a79d-c2716c2ee99f X-Archives-Hash: d4222bb9e3b4ba87edf08602c639bd65 --=-hdjb5htSceXgfPJdstr1 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2004-09-02 at 16:12, Eldad Zack wrote: > On Thu, 2004-09-02 at 21:56, Alexander Gretencord wrote: > > On Thursday 02 September 2004 20:46, Christian Gut wrote: > > > another idea: simply hand them over to syslog. This way they get mail= ed > > > to the admin and are there for later reference. > >=20 > > Just read Bug #11359 (http://bugs.gentoo.org/show_bug.cgi?id=3D11359). = This has=20 > > also been discussed there and is only an option for already installed=20 > > systems. >=20 > > In short: The basic mechnism has to work without eMail and without sysl= og or=20 > > any other fancy stuff. Just think of a bootstrap build, where no such t= hing=20 > > is available. >=20 > What I had in mind could be deployed today, without needing to patch > portage. > Basically, it could be implemented using a new eclass or just adding the > enotice function to eutils - I wouldn't want all the einfos logged, > anyway. (patching notices? no thanks.) >=20 > What I would like, would be messages from packages like cacti. > enotice itself will write into the file and emit an einfo. >=20 > This is what I had in mind: >=20 > # void enotice(char* message) > # > # write informative message (with a newline) into notice log. > # also emits einfo. > # > enotice() { > einfo "${*}" >=20 > if [ -n "${ENOTICE_DIR}" ] > then > # Not checking if it ${ENOTICE_DIR} exists since > # install does stat and stops if it exists. > install ${ENOTICE_DIR} >=20 > echo "${*}" >> ${ENOTICE_DIR}/${PF} > fi >=20 > return 0 > } >=20 > To make it work it only requires that ENOTICE_DIR would be set in > make.conf. >=20 > It is also sandbox-friendly, since it is a regular file as far as > portage concerns - and that also makes it binary-friendly. The notices > will be included in the binary tbz2. >=20 > The external utility to read the messages is also pretty > straight-forward to write. >=20 > I'd like to hear from other developers if they think it is useful and if > they plan to use it... > I would also like to go ahead and use it for any ebuilds I currently > maintain. It needs to be able to support the 3 levels of enotices: einfo, ewarn, and ecrit. --=20 Chris Gianelloni Release Engineering - Operations/QA Manager Games - Developer Gentoo Linux Is your power animal a penguin? --=-hdjb5htSceXgfPJdstr1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBN5vdkT4lNIS36YERArfHAJsE+GCA6VdiJ6bzIbW8ZbwuTDXFywCfVqJ9 dSrq9ajCxyxvQFEs465DXoI= =mWNv -----END PGP SIGNATURE----- --=-hdjb5htSceXgfPJdstr1--