CFT: New version of portmaster in svn

Doug Barton dougb at FreeBSD.org
Fri Jul 23 08:40:02 UTC 2010


-----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 <a.markov at complitex.ru>

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-----


More information about the freebsd-ports mailing list