Fix p5-ExtUtils-MakeMaker for Perl5.14

freebsd at nagilum.org freebsd at nagilum.org
Fri May 20 22:21:46 UTC 2011


>Submitter-Id:	current-users
>Originator:	Charlie &
>Organization:	
>Confidential:	no 
>Synopsis:	Fix p5-ExtUtils-MakeMaker for Perl5.14
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		update
>Release:	FreeBSD 8.2-STABLE i386
>Environment:
System: FreeBSD cakebox.tis 8.2-STABLE FreeBSD 8.2-STABLE #0: Mon May 2 10:18:42 CEST 2011 root at cakebox.tis:/usr/obj/export/src/sys/net5501 i386


>Description:
	After upgrading to Perl5.14
	  /usr/local/lib/perl5/5.14.0/mach/CORE/cc_runtime.h
	does no longer exist, so MakeMaker should not add it to
	the include file list

>How-To-Repeat:
	Upgrade to Perl5.14, upgrade p5-ExtUtils-MakeMaker
	and then attempt to upgrade devel/p5-version (for example)
	Other examples include:
	 mail/razor-agents, databases/rrdtool, databases/p5-BerkeleyDB,
	 security/p5-Crypt-OpenSSL-Bignum, archivers/p5-Compress-Raw-Zlib, ..

>Fix:
	apply attached patch

--- p5-ExtUtils-MakeMaker.patch begins here ---
diff -Naur p5-ExtUtils-MakeMaker.orig/Makefile p5-ExtUtils-MakeMaker/Makefile
--- p5-ExtUtils-MakeMaker.orig/Makefile	2010-01-06 15:16:33.000000000 +0100
+++ p5-ExtUtils-MakeMaker/Makefile	2011-05-20 23:50:05.000000000 +0200
@@ -32,5 +32,8 @@
 
 post-patch:
 	@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL
+	if [ ! -e ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/CORE/cc_runtime.h ];\
+	then	${PREFIX}/bin/perl -pi'' -e'if(/cc_runtime.h/){$$_="";}' ${WRKSRC}/lib/ExtUtils/MM_Unix.pm ;\
+	fi
 
 .include <bsd.port.mk>
--- p5-ExtUtils-MakeMaker.patch ends here ---


More information about the freebsd-perl mailing list