Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2006 22:19:22 -0400 (EDT)
From:      Rong-En Fan <rafan@infor.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96173: [MAINTAINER] devel/p5-Locale-Maketext-Simple: fix build on 4.x
Message-ID:  <200604230219.k3N2JMvW039368@woodstock.rafan.org>
Resent-Message-ID: <200604230220.k3N2KDRS011651@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96173
>Category:       ports
>Synopsis:       [MAINTAINER] devel/p5-Locale-Maketext-Simple: fix build on 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 23 02:20:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
NTU CSIE
>Environment:
System: FreeBSD woodstock.rafan.org 7.0-CURRENT FreeBSD 7.0-CURRENT #21: Tue Apr 11 22:22:56 EDT 2006
>Description:
On 4.x, we have Perl 5.005 and it fails on Makefile.PL.
Though this module does not advertise it requires newer perl,
I think it's better to make it build on old 4.x than simply mark
BROKEN.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

Require perl from ports on 4.x (and 5.x before perl is removed 
from base).

--- p5-Locale-Maketext-Simple-0.13.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/p5-Locale-Maketext-Simple/Makefile /home/rafan/tmp/ports/p5-Locale-Maketext-Simple/Makefile
--- /usr/ports/devel/p5-Locale-Maketext-Simple/Makefile	Wed Apr 19 00:02:23 2006
+++ /home/rafan/tmp/ports/p5-Locale-Maketext-Simple/Makefile	Sat Apr 22 22:17:00 2006
@@ -19,4 +19,11 @@
 
 MAN3=		Locale::Maketext::Simple.3
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# Makefile.PL fails on Perl < 5.6, workaround
+.if ${OSVERSION} < 500036
+USE_PERL5=	yes
+.endif
+
+.include <bsd.port.post.mk>
--- p5-Locale-Maketext-Simple-0.13.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604230219.k3N2JMvW039368>