perl version hardcoded in ports

Anton Berezin tobez at tobez.org
Thu Feb 16 11:12:00 PST 2006


On Thu, Feb 16, 2006 at 11:33:52AM -0500, Igor Roshchin wrote:

> I just was upgrading the perl port on a 5.4-R box,
> and found that many ports that require perl (previously installed
> via portupgrade) have it  hardcoded with the version number, e.g.
> 
> monthly:#!/usr/local/bin/perl5.8.6                   
> oldlog2new:#!/usr/local/bin/perl5.8.6
> sa-learn:#!/usr/local/bin/perl5.8.6 -T -w
> sa-update:#!/usr/local/bin/perl5.8.6 -T -w
> spamassassin:#!/usr/local/bin/perl5.8.6 -T -w
> spamd:#!/usr/local/bin/perl5.8.6 -T -w
> splitlog:#!/usr/local/bin/perl5.8.6
> wwwerrs:#!/usr/local/bin/perl5.8.6
> wwwstat:#!/usr/local/bin/perl5.8.6
> 
> In this case most of the files are from wwwstat and spamassassin.

Have you tried to run perl-after-upgrade script, as per UPDATING dating
from the last time lang/perl5.8 was updated?

> While it might be warranted in some instances,
> I don't believe it is really required for many (if not most)
> of these packages. I think they should use /usr/local/bin/perl
> instead.
> I suspect, that it is the fault of the mechanism built in
> the portupgrade (or ports building system)

Yes, I think using ${PERL} rather than ${PERL5} is more correct for
those substitutions/patches.

Nevertheless, perl-after-upgrade's job is to fix those cases.

Cheers,
\Anton.
-- 
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey


More information about the freebsd-perl mailing list