From owner-freebsd-ports@FreeBSD.ORG Fri Jul 23 08:40:02 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 34C761065679 for ; Fri, 23 Jul 2010 08:40:02 +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 D41118FC1C for ; Fri, 23 Jul 2010 08:40:01 +0000 (UTC) Received: (qmail 19675 invoked by uid 399); 23 Jul 2010 08:39:59 -0000 Received: from localhost (HELO laptop.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 Jul 2010 08:39:59 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Date: Fri, 23 Jul 2010 01:39:53 -0700 (PDT) From: Doug Barton To: freebsd-ports@FreeBSD.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-message-flag: Outlook -- Not just for spreading viruses anymore! OpenPGP: id=1A1ABC84 Organization: http://SupersetSolutions.com/ MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Cc: Subject: CFT: New version of portmaster in svn 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: Fri, 23 Jul 2010 08:40:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Howdy, I have a new version of portmaster in pretty good shape at the moment so I'd like to ask for volunteers to test it. The changes and new features are described below. You can get the new version from svn at: http://svn.freebsd.org/viewvc/base/user/dougb/portmaster/ or $ svn co svn://svn.freebsd.org/base/user/dougb/portmaster I've done some pretty thorough regression tests on this, but the -G change in particular touches a lot of areas. For users who previously were NOT using the -G option, you should not notice any changes (other than minor wording changes to a few messages). For users who ARE using - -G, you'll notice a difference in the flow, but in an ideal world the end results will be the same and/or better. Thanks, Doug New Features ============ 1. Add an option to log actions after the run is complete. To enable it define PM_LOG in your rc file as the path of the file you want to log to. If using PM_SU_CMD make sure that the directory or file is writable by the unprivileged user. 2. Add the --clean-packages[-all] feature This works similarly to --clean-distfiles[-all] in that it searches the $PACKAGES directory for out of date packages, and either offers to delete them, or with -all deletes them without prompting. It also cleans out stale symlinks and empty directories. This necessitates moving init_packages_var() and parse_index() so they can be used by the new feature. The idea for grabbing the ORIGIN from the package's +CONTENTS file and checking to see if it is up to date came from: Alexey Markov Cleanups and Tweaks =================== 1. Finalize the deprecations of /etc/portmaster.rc, -u and -p 2. If --local-packagedir and ${LOCAL_PACKAGEDIR}/All/${new_port}.tbz exists just use it, don't bother dereferencing $LATEST_LINK. This is faster, but it also solves the problem recently mentioned on -ports where packages/Latest/perl links to perl-5.10.x, even with 5.12.x installed and the 5.12.x package in packages/All 3. Change the behavior of the -G option. In the original version of portmaster the concept of 2 distinct passes through the dependency tree, the first to do all the 'make config's and the second to build everything was intrinsic to the design. When released publicly there were a non-trivial number of users who objected to the idea of 'make config' being mandatory, so I added the -G option to disable the whole first pass. However as time went on, more and more features were added that depended on the first pass, so it was necessary to rethink how -G works. In this version, the 2-pass design is now universal, and the only thing -G does is suppress the actual OPTIONS dialog. This has several benefits: a. Now all features are available to -G users b. The new method of suppressing the OPTIONS dialog is 100% effective (thus it's no longer necessary to use BATCH to truly suppress them) c. The --force-config option now overrides -G so users who really hate OPTIONS can have -G in their rc file, but still have it available by using --force-config on the command line Lots of variables, functions, and text have been modified to substitute out references to "config" in favor of "first pass" 4. Use nice for the make commands that actually build stuff 5. Improve the messages for fetching and updating INDEX 6. Add some whitespace in checkdepends() after removing stale data 7. If we're doing -F don't bother to initialize $PACKAGES - -- Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/ Computers are useless. They can only give you answers. -- Pablo Picasso -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMSVVdAAoJEFzGhvEaGryEiUYH/jA2AcPYQ+dy9kVvcqQJ5CYe gVxcIljlurHkQ82KxV4SI1Y+aMzxpIEMWg1mq3DtW4N9TIJBMa5B5IwD6IOxNq32 TuLUkK3BqcPV88fsSCLqlp6VIc6wzCCgEw1tEn5DzemX+VIKpYrKIAtEZPDj16aD BkeKHnPbNvRAweYDH9GQLkODZCbtXKAx6nAsktIvfwoWnEym8ecFIVrOLo0AqVIJ LoCBNGgjLlopm30PHY9Tz6sLmqx5pGw0LEC2xJ1ijMMWpxnAALUr0n4RgSa76Wdy si4OsH5I4bTqGUp3rMJGr8wJng3gSy+Cvi7n5vnRH24zsPjS+jV4zjLnbHaFLSg= =HHdd -----END PGP SIGNATURE-----