From owner-freebsd-ports@FreeBSD.ORG Thu Jun 8 23:22:21 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FD9816A515 for ; Thu, 8 Jun 2006 23:22:21 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from pop-satin.atl.sa.earthlink.net (pop-satin.atl.sa.earthlink.net [207.69.195.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id E618943D48 for ; Thu, 8 Jun 2006 23:22:20 +0000 (GMT) (envelope-from bsd-unix@earthlink.net) Received: from fl-71-54-28-212.dhcp.sprint-hsd.net ([71.54.28.212] helo=kt.weeeble.com) by pop-satin.atl.sa.earthlink.net with smtp (Exim 3.36 #10) id 1FoTpS-0002Ih-00; Thu, 08 Jun 2006 19:22:18 -0400 Date: Thu, 8 Jun 2006 19:23:33 -0400 From: Randy Pratt To: Garance A Drosihn Message-Id: <20060608192333.e23505d6.bsd-unix@earthlink.net> In-Reply-To: References: X-Mailer: Sylpheed version 2.2.5 (GTK+ 2.8.18; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: matthias.andree@gmx.de, freebsd-ports@freebsd.org Subject: Re: Long-standing portupgrade vs. make config issue 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: Thu, 08 Jun 2006 23:22:21 -0000 On Thu, 8 Jun 2006 12:35:42 -0400 Garance A Drosihn wrote: > I have never been prompted twice for a given set of > options. I do, at times, get prompted for the options > of one port, answer that screen and walk away, only to > later see that I was also prompted for the options of > some other port. I got tired of these silent screens and added an audible sound warning to /usr/ports/Mk/bsd.port.mk : --- Mk/bsd.port.mk.original Mon May 29 22:04:13 2006 +++ Mk/bsd.port.mk Mon May 29 22:06:06 2006 @@ -5281,6 +5281,7 @@ shift 3; \ done; \ TMPOPTIONSFILE=$$(mktemp -t portoptions); \ + /usr/local/bin/play /home/rpratt/sounds/montymes.wav; \ trap "${RM} -f $${TMPOPTIONSFILE}; exit 1" 1 2 3 5 10 13 15; \ ${SH} -c "${DIALOG} --checklist \"Options for ${PKGNAME:C/-([^-]+)$/ \1/}\" 21 70 15 $${DEFOPTIONS} 2> $${TMPOPTIONSFILE}"; \ status=$$?; \ It has to be patched each time the ports tree is cvsupped and it may not be the best place to do it but it seems to work (for me). It could be much better written with a call to an external script with more options and eliminate hard-coded values. It probably causes ozone depletion and other scary things. YMMV. I'm almost sure something like this will never get officially added since its probably considered bloat. At least I'm not wasting hours of build time not knowing I need to push a button. Randy --