From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11120 invoked from network); 3 Sep 2004 12:44:42 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 3 Sep 2004 12:44:42 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C3DQn-0001RB-KY for arch-gentoo-dev@lists.gentoo.org; Fri, 03 Sep 2004 12:44:41 +0000 Received: (qmail 2525 invoked by uid 89); 3 Sep 2004 12:44:41 +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 29201 invoked from network); 3 Sep 2004 12:44:40 +0000 From: Jason Stubbs To: gentoo-dev@lists.gentoo.org Date: Fri, 3 Sep 2004 21:47:21 +0900 User-Agent: KMail/1.7 References: <1094155935.19504.40.camel@localhost> <20040903051038.GA11426@twobit.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409032147.21905.jstubbs@gentoo.org> Subject: Re: [gentoo-dev] Package notices X-Archives-Salt: 36cd90fe-2d91-496c-b132-182a87fda7dc X-Archives-Hash: e0f4ebb3b9760d5611f1f1db10089464 On Friday 03 September 2004 23:00, Pablo Villalba wrote: > We're trying to build the house without having the plans for it yet. > What do we need to do here? Which kind of output would be useful? Imho > maintaining regular output (maybe flushing it at the end of all the emerge > process) AND logging it to some special logfile (errors being notices to > syslog too) would do it. > Once this is clear and agreed we could think of how we'd have to implement > it. Nick layed out half the plan already, although it may not have seemed like it - he's very curt but it's usually enough if you know the context. On Friday 03 September 2004 14:10, Nicholas Jones wrote: > He's what needs to get done for this to work: > > 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. This must happen so that there is absolutely no (chance of) effect on starting up messages that happen when starting and stopping daemons. Currently, the same functions are used for output. > All said functions must be rewritten, for portage, with the > capability to handle colors and terminals and the like as > portage does currently. (People don't want ANSI in their logs.) Portage has the ability to enable/disable colour based on the terminal type and user's preference. Furthermore, if the output is being logged as well as going to screen, coloured and non-coloured versions of the output must be providable on demand. > The output can be writting in any number of ways to a file in > ${T} during the execution of the build. This does not violate > sandbox and is quite easy to find. This is a simple design descision that fits in well with portage's current security model for merges. > PORTAGE can then manipulate the log, perform notifications, > and do whatever else is necessary to maintain that file around > cleanings and other merges. In other words, any processing done on the logs once they're written must be completely separate from the logging itself. > ${T}/notices.${PF}.${TYPE} > would be perfectly fine as long as it was definitive/unique > to the particular package. Notices of all types could also > simply be prefixed. '*' '-' '!' or whatever seems best. > > If you are so inclined, you could also write a parser for > these files that can designate priorities using color or > some other visual aid. (Keep in mind that it must be > deterministic through simple ascii as well for synthesisers.) > For multiple reasons, I prefer python for these tools. > > There are many, many possibilities, but please follow > the outline provided here. These just show further design possibilities within the above rules but it is open to whomever decides to implement it on the exact details. Regards, Jason Stubbs -- gentoo-dev@gentoo.org mailing list