how do I tell ports that perl5.8 should never be installed?

Adam Vande More amvandemore at gmail.com
Mon Mar 1 18:29:43 UTC 2010


On Mon, Mar 1, 2010 at 12:19 PM, Matthew Seaman <
m.seaman at infracaninophile.co.uk> wrote:

>
> As far as I know, there isn't an official way to do this.  What you
> want sounds like a useful addition to the base system to me.
>
> You could do it in a fairly gross hacky way, like the following. This is
> entirly untested, might not work at all and will certainly be at the
> cost of some alarming error messages:
>
>   # mkdir -p /var/db/pkg/perl-5.8.9_3
>   # touch /var/db/pkg/perl-5.8.9_3/+IGNOREME
>   # chflags -R noschg /var/db/pkg/perl-5.8.9_3
>
> Hopefully it chucks a spanner in the works before the package system
> actually installs anything.  Of course, you'll have to update that if
> the perl5.8 port has any sort of version bump[*].
>
> On second thoughts, writing a small wrapper around pkg_add(1) that greps
> through the @pkgdep lines in the +CONTENTS file from the package tarball
> and bails if it finds the wrong version of perl would be a much cleaner
> approach.  The -M (--master) and -S (--slave) flags to pkg_add look
> interesting in this context.
>
>
There is already enough dependency information available to portupgrade to
know this.  portupgrade simply doesn't act on it.  However, as I already
informed Mr. Schwartz, portmaster -P does work.


-- 
Adam Vande More


More information about the freebsd-questions mailing list