From owner-freebsd-perl@FreeBSD.ORG Fri Jan 7 09:41:03 2005 Return-Path: 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 77EEC16A4CE for ; Fri, 7 Jan 2005 09:41:03 +0000 (GMT) Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1744E43D1D for ; Fri, 7 Jan 2005 09:41:03 +0000 (GMT) (envelope-from Bram@moolenaar.net) Received: from zimbu.demon.nl ([82.161.100.193]:1934 helo=moolenaar.net) by post-22.mail.nl.demon.net with esmtp (Exim 4.34) id 1CmqcA-000Mo7-07; Fri, 07 Jan 2005 09:41:02 +0000 Received: from masaka.moolenaar.net (localhost [127.0.0.1]) by moolenaar.net (8.12.9p2/8.12.9) with ESMTP id j079lf8s016226; Fri, 7 Jan 2005 10:47:41 +0100 (CET) (envelope-from Bram@moolenaar.net) Message-Id: <200501070947.j079lf8s016226@moolenaar.net> To: Anton Berezin In-Reply-To: <20050106220254.GA31560@heechee.tobez.org> From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Fri, 07 Jan 2005 10:47:41 +0100 Sender: Bram@moolenaar.net cc: perl@FreeBSD.org Subject: Re: spamassassin and Perl 5.8 port broken X-BeenThere: freebsd-perl@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 07 Jan 2005 09:41:03 -0000 Anton Berezin wrote: > On Thu, Jan 06, 2005 at 11:05:52PM +0100, Bram Moolenaar wrote: > > > > I'm running FreeBSD 4.9: > > > > FreeBSD masaka.moolenaar.net 4.9-RELEASE FreeBSD 4.9-RELEASE #2: Sat Oct 23 15:54:26 CEST 2004 mool@masaka.moolenaar.net:/usr/src/sys/compile/MASAKA i386 > > > > Trying to install the mail/p5-Mail-SpamAssassin port I get an error > > message that perl 5.6.1 or higher should be installed: > > > > Needs perl 5.6.1 or higher, install lang/perl5.8 and try again > > > > But I do have perl 5.6.1! > > Did you use use.perl port with your 5.6.1? I don't remember how Perl got there. Probably from the package when I installed the system. Or as a dependency for another port. I now use the port to re-install it. > > Removing the check from the Makefile it continues but then later fails > > with something missing... > > > > OK, let's install Perl 5.8 then. But that fails as well, halfway doing > > "make install". Now /usr/local/bin/perl is no longer functioning!!! > > Aaaaargggh! (sorry, this is very frustrating) > > Any error messages? Sorry, I didn't save the message. I can try again, but since it breaks my working Perl 5.6 I don't like doing this. If you really need the message to figure out what is wrong and this will help solving the problem I can try reproducing the problem. Oh, looking for where PERL_VERSION is set I found one obvious problem. In /usr/ports/Mk/bsd.port.mk (around line 1174): .if ${OSVERSION} >= 300000 PERL_VERSION?= 5.00503 It seems PERL_VERSION only depends on the OS version, it doesn't actually check what Perl is installed. This is an obvious lack of intelligence. When I change it to: .if ${OSVERSION} >= 300000 #PERL_VERSION?= 5.00503 PERL_VERSION?= 5.6.1 Then the spamassassin port continues as expected (with the usual hickups that require manual tweaking). A dirty hack that gets me further. Hopefully the new spamassassin works better, since the port system doesn't allow for going back to an older version... -- hundred-and-one symptoms of being an internet addict: 259. When you enter your name in the AltaVista search engine, the top ten matches do indeed refer to you. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///