From owner-freebsd-ports Thu Aug 29 9: 9:43 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A268F37B400 for ; Thu, 29 Aug 2002 09:09:38 -0700 (PDT) Received: from unity.copyleft.no (unity.copyleft.no [212.71.72.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0914443E6A for ; Thu, 29 Aug 2002 09:09:38 -0700 (PDT) (envelope-from lars.bungum@copyleft.no) Received: from cl-gw.copyleft.no ([217.13.30.98] helo=truth.in.copyleft.no) by unity.copyleft.no with esmtp (Exim 3.36 #1) id 17kRrT-000M7K-00 for ports@freebsd.org; Thu, 29 Aug 2002 18:09:35 +0200 Subject: mod_perl, mason and perl From: Lars Bungum To: ports@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 29 Aug 2002 18:09:36 +0200 Message-Id: <1030637376.29222.37.camel@truth.in.copyleft.no> Mime-Version: 1.0 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greetings! I'm having slight problems installing mod_perl, and p5-HTML-Mason to be used with it. The problem I have is that when I try to use Mason, I get an error message about a function called rel2abs(). This appears to be because my perl version is too old (5.005). Then, I chose to install a newer perl from ports, which went smoothly. So - my problem. When I try to install the mod_perl-port, it still uses the old perl installed on the system in /usr/bin/perl, instead of the new 5.6.1 that I just installed to /usr/local/bin. This seems to be because of this entry in bsd.port.mk .if ${OSVERSION} >= 500032 PERL_VERSION?= 5.6.1 PERL_VER?= 5.6.1 PERL_ARCH?= mach .else .if ${OSVERSION} >= 500007 PERL_VERSION?= 5.6.0 PERL_VER?= 5.6.0 PERL_ARCH?= mach .else .if ${OSVERSION} >= 300000 PERL_VERSION?= 5.00503 .else PERL_VERSION?= 5.00502 .endif PERL_VER?= 5.005 PERL_ARCH?= ${ARCH}-freebsd .endif .endif PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PERL_VER=${PERL_VER} \ PERL_ARCH=${PERL_ARCH} .if exists(/usr/bin/perl5) && ${OSVERSION} >= 300000 && ${OSVERSION} < 500036 .if !exists(/usr/bin/perl${PERL_VERSION}) && defined(USE_PERL5) pre-everything:: @${ECHO_CMD} "Error: you don't have the right version of perl in /usr/bin." @${FALSE} .endif PERL5= /usr/bin/perl${PERL_VERSION} PERL= /usr/bin/perl .else PERL5= ${LOCALBASE}/bin/perl${PERL_VERSION} PERL= ${LOCALBASE}/bin/perl .. so I am wondering what to do here. Would it be safe to change the bsd.port.mk, and force it to use my other perl, although my OS version is only 450000? Or should I look for other workarounds, like finding the abs2rel-source and include it somewhere? Regards, -- Mvh. Lars Bungum Copyleft Software AS Telefon : +47 22 71 67 00 Organisasjonsnummer: 982 116 252 (http://lb.cl.no/public.key for gpg public key) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message