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
Subject:   ports/157223: Fix p5-ExtUtils-MakeMaker for Perl5.14
Message-ID:  <20110520220857.00E0E6782D@cakebox.homeunix.net>
Resent-Message-ID: <201105202230.p4KMU62b034396@freefall.freebsd.org>

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

>Number:         157223
>Category:       ports
>Synopsis:       Fix p5-ExtUtils-MakeMaker for Perl5.14
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 20 22:30:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Charlie &
>Release:        FreeBSD 8.2-STABLE i386
>Organization:
>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 ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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