From owner-freebsd-ports@FreeBSD.ORG Wed Jun 23 19:15:17 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4997C1065673 for ; Wed, 23 Jun 2010 19:15:17 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with ESMTP id E21CE8FC19 for ; Wed, 23 Jun 2010 19:15:16 +0000 (UTC) Received: (qmail 17396 invoked by uid 399); 23 Jun 2010 19:15:15 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 Jun 2010 19:15:15 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4C225D42.4040603@FreeBSD.org> Date: Wed, 23 Jun 2010 12:15:14 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.10) Gecko/20100621 Thunderbird/3.0.5 MIME-Version: 1.0 To: "Philip M. Gollucci" References: <20100623144021.GC280@atarininja.org> <4C221E32.60400@p6m7g8.com> In-Reply-To: <4C221E32.60400@p6m7g8.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: David DEMELIER , freebsd-ports@freebsd.org Subject: Re: New pkg-message[.in] guideline idea X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 19:15:17 -0000 On 06/23/10 07:46, Philip M. Gollucci wrote: > On 06/23/10 14:40, Wesley Shields wrote: >> On Wed, Jun 23, 2010 at 02:16:07PM +0200, David DEMELIER wrote: >>> Hi freebsd-ports@, >>> >>> I would like to propose you something that I would like to be done. >>> It's a cosmetic, useless thing but I like when things are made >>> homogeneously. I admit that my initial reaction was mixed in the sense that I don't like removing the ability of maintainers to be creative without good reason. However after thinking about this (and reviewing the other posts) I think that the benefits of being consistent so that the user knows what is a message and what is not are worth it. >>> That is the problem : as you can see, sometimes port >>> tells a message to the user but some maintainers used delimiters to >>> begin/end the message such as a lot of "***" or "===" or blank spaces. >>> >>> If you already did use NetBSD pkgsrc, you can see that *every* MESSAGE >>> is composed like this : >>> >>> =========================================================================== >>> $NetBSD: MESSAGE,v 1.1.1.1 2008/10/20 09:28:51 wiz Exp $ Not to dive too quickly into the details, but I would see no value in actually displaying the CVS $Id to the user. :) >>> Note you need audio/audacious-plugins to actually play music. >>> =========================================================================== >>> >>> I would do something like this to the FreeBSD ports, if you agree with >>> me I can check every messages and modify them. I can also put >>> something in the FreeBSD porter's handbook to write a "pkg-message >>> template" >>> >>> I know that there is much more important work to do, that's why I can >>> take all this work for myself. That's great! When I first started in FreeBSD I wasn't new to programming but I was new to Unix, and taking on projects like this was a great way to get involved, give back to the community, and learn more about the system. >> I think a better solution is to do what portmaster does and display all >> the pkg-message files as one of the last things it does. I had a patch >> to do this sitting in portmgr@ queue but it needs more work. FWIW, portmaster users have commented to me many times that this is one of their favorite features, and that they find it very useful. So much so that I wish it were my idea, but it actually came from a user. :) I think it would be great if the ports infrastructure were able to do this as well. >> A combination of some standardization of pkg-message files and >> displaying them all at the end of a build would be best. > Yes thats definitely a needed feature. > > I think we need 2 things: > > 1) All pkg-message whether .in or not go > through the 'sed' that SUB_LIST/PLIST_SUB do. I like this idea better than forcing them all to be in /files, and I can't see any reason not to do it. > 2) You collect them in to /var/db/pkg and loop > and display at end. > > As a consequence all formatting should be removed from the individual > pkg-message[.in] files and added in #2. I'm ambivalent about this. My first thought was that the formatting should happen in step #1. What portmaster does is build each port one at a time, and it makes a note if a port has a pkg-message. Then it does what you suggest in #2 by cat'ing them all to $PAGER. However, thinking more about it I could see how not doing the formatting until step 2 could work, so however it turns out to be "easiest" should be fine. Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/