Rebuilding png and perl without rebuilding a whole lot of ports twice.

Doug Barton dougb at FreeBSD.org
Mon Jul 16 07:58:13 UTC 2012


On 07/16/2012 00:35, Thomas Mueller wrote:
> I have to portupgrade/portmaster both graphics/png and lang/perl, and
> these both require rebuilding all ports that depend on these two.

You don't actually need to rebuild everything that shows a dependency on
Perl, most of them are bogus. Setting EXPLICIT_PACKAGE_DEPENDS= true in
/etc/make.conf helps with this.

There is no totally clean way to handle this case, as you want to do 2
completely separate operations in one go. However, there is a way to
minimize the pain.

1. pkg_info -qo p5-\* > p5-list
2. pkg_delete -f p5-\*
3. for port in `pkg_info -q -R png-1.5.12` ; do
   pkg_info -qo $port
   done > png-list
4. portmaster -o lang/perl5.16 lang/perl5.12
5. Check the directories in /usr/local/lib/perl5 that are not part of
5.16.* for files that are still installed there, use pkg_info -W to find
out which ports they are related to, and rebuild them.
6. portmaster graphics/png `cat p5-list png-list`

hth,

Doug

-- 

    Change is hard.





More information about the freebsd-ports mailing list