From owner-freebsd-ports@FreeBSD.ORG Wed Sep 5 08:35:12 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6FDD3106564A for ; Wed, 5 Sep 2012 08:35:12 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp1.insight.synacor.com [208.47.185.23]) by mx1.freebsd.org (Postfix) with ESMTP id 1E1A18FC15 for ; Wed, 5 Sep 2012 08:35:11 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=zVp2rUgfUTTyrUDaEiG8NalJBNobW2LAbrWo2r38Btc= c=1 sm=0 a=jLN7EqiLvroA:10 a=q56oFxeYAAAA:8 a=0SkbbMfIgCbXc5-5kP8A:9 a=5HPQzWXiRisA:10 a=AcdsImxJPJ9Yo6Ye3TGm+Q==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.34.76 as permitted sender) Received: from [74.134.34.76] ([74.134.34.76:60397] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id FB/A1-26260-8BE07405; Wed, 05 Sep 2012 04:35:05 -0400 Date: Wed, 05 Sep 2012 04:35:04 -0400 Message-ID: From: "Thomas Mueller" To: freebsd-ports@freebsd.org Cc: Warren Block , Bryan Drewery Subject: Re: dialogwrapper in ports 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, 05 Sep 2012 08:35:12 -0000 On 9/4/2012 12:41 PM, Warren Block wrote: > dialogwrapper has now been committed to Tools/scripts in /usr/ports. > Further testing is requested. > What is dialogwrapper? > dialogwrapper is a wrapper script for dialog(1) that works around some > bugs and takes advantage of new features to make ports options setting > easier and better. > On FreeBSD 9 and later, two major features are available: > 1. Extended descriptions. If a description won't fit in the space > available, a "+" is shown at the far right and the remainder is shown > at the bottom of the screen. The easiest way to test this is to pick > a port, edit one of the option descriptions to be very long, then run > 'make config'. Hopefully this will eventually allow port maintainers > to use longer and more meaningful descriptions. > 2. Variable menu size. Options screens in windows larger than 80x24 > show wider descriptions and more lines. Convenient example: with a > tall window, do 'make config' in print/ghostscript9. > On FreeBSD 8, dialog(1) does not have a needed feature, so extended > descriptions are merely chopped off. This also helps to avoid a bug in > the older version's display of descriptions that are too long. > How do I use dialogwrapper? > Update your copy of the ports tree, then add this line to /etc/make.conf : > DIALOG="/usr/ports/Tools/scripts/dialogwrapper.sh" > Configure port options as usual. It should look and work the same as > usual, but handle long descriptions and bigger windows as described above. Brian Drewery responded: > I've set this in my make.conf and tried it out. It's really cool. > Would be nice to see this get more testing and possibly be set as default. > Bryan This whets my virtual appetite, I'd like to try. But does this avoid the problem of getting messed up with the dialog when generating a log file with script or make install clean | & tee build.log ? I noticed on http://www.freshports.org/commits.php just a day ago, devel/cdialog and x11/xdialog. Maybe xdialog avoids this messing up when generating a log file, but can only be used after xorg is built and installed. Tom