Enclosing the first argument of Tcl's 'if' in parentheses instead of
braces is instinctive for C programmers, but it only works if the
condition contains no spaces, and probably prevents byte compilation.
PackageMaker.app has been removed from Xcode tools for some time, so
use pkgbuild instead when it's available and we're building flat
packages.
Fixes: https://trac.macports.org/ticket/42725
Check that the prefix is writable when running rev-upgrade in rebuild
mode, and fail early with a good message if not.
Fixes: https://trac.macports.org/ticket/47592
This should at least work around problems with running out of fds.
Code calling setrlimit has been moved from one place in tracelib.c and
put in its own command, which is called from mportinit.
See: https://trac.macports.org/ticket/50986
Sort inactive ports into dependency order before uninstalling, since
some of them may depend on others. Also display version information
as well as port names, as there may be more than one inactive version
of any given port.
Fixes: https://trac.macports.org/ticket/52791