All the functionality that
ports-mgmt/portmaster offers is present in
ports-mgmt/portupgrade, including backups, with addition that
portupgrade preserves shared libraries, so you can run
vim for example, while upgrading one of its dependencies.
@kr651129, I warmly recommend you to reread the
portupgrade(1)() man page in great detail. Really. Read it again. And if you don't understand what you just read, read it yet again. While ports are fun and all, they're only fun as long as they're working. It is of utmost importance that you know the tools which you're going to use on a daily basis. To understand which options affect
make and friends, read also
ports(7)(),
make.conf(5)() and
make(1)(). Here you can only skim the relevant parts, IF you already read the
Handbook.
" said:
Code:
[U]WARNING[/U]
...
+o Since portupgrade allows you to upgrade your installed packages with-
out rebuilding and reinstalling dependent packages, upgraded packages
may occasionally cause binary incompatibilities. To cope with this
situation, use the -f, -r and -R options as necessary.
...
So, not always, but follow this advice from time to time, especially if you encounter a missing library like you have recently, even if
UPDATING doesn't say anything. Almost all of your problems can be solved with this simple advice.
So to cope with a missing
libpng.so.6, run
# portupgrade -Rrf png
. To identify missing libraries in the future, install (if you're NOT using PKGNG)
sysutils/bsdadminscripts, and then run
# pkg_libchk -a
, or, if you're using PKGNG, enable SHLIB options and then search for them with
# pkg check -B
. Once you've found a port that is missing a library, rebuild it with
-Rf flags of either
portupgrade or
portmaster.