Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 00:58:12 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Thomas Mueller <mueller6727@bellsouth.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Rebuilding png and perl without rebuilding a whole lot of ports twice.
Message-ID:  <5003C994.7030909@FreeBSD.org>
In-Reply-To: <4E.69.28589.724C3005@smtp01.insight.synacor.com>
References:  <4E.69.28589.724C3005@smtp01.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5003C994.7030909>