Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2011 00:08:56 +0200 (CEST)
From:      freebsd@nagilum.org
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        perl@FreeBSD.org, ahze@ahze.net
Subject:   Fix p5-ExtUtils-MakeMaker for Perl5.14
Message-ID:  <20110520220857.00E0E6782D@cakebox.homeunix.net>

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

>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@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 ---



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