From owner-freebsd-perl@FreeBSD.ORG Thu Feb 16 19:12:00 2006 Return-Path: X-Original-To: perl@freebsd.org Delivered-To: freebsd-perl@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73FB616A422 for ; Thu, 16 Feb 2006 19:12:00 +0000 (GMT) (envelope-from tobez@tobez.org) Received: from heechee.tobez.org (heechee.tobez.org [194.255.56.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DFAC43D77 for ; Thu, 16 Feb 2006 19:11:54 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id CBB78125420; Thu, 16 Feb 2006 20:11:53 +0100 (CET) Date: Thu, 16 Feb 2006 20:11:53 +0100 From: Anton Berezin To: Igor Roshchin Message-ID: <20060216191153.GA92183@heechee.tobez.org> References: <200602161633.k1GGXq6c027765@trantor.komkon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200602161633.k1GGXq6c027765@trantor.komkon.org> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ Cc: perl@freebsd.org Subject: Re: perl version hardcoded in ports X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: maintainer of a number of perl-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 19:12:00 -0000 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