Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2011 15:35:27 +0200 (CEST)
From:      Christoph Moench-Tegeder <cmt@burggraben.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/157236: [PATCH] fix build of www/webkit-gtk2 with perl 5.14.0
Message-ID:  <20110521133527.10A80AC818@elch.exwg.net>
Resent-Message-ID: <201105211340.p4LDe9g3033899@freefall.freebsd.org>

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

>Number:         157236
>Category:       ports
>Synopsis:       [PATCH] fix build of www/webkit-gtk2 with perl 5.14.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 21 13:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 8.2-RELEASE-p1 amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 8.2-RELEASE-p1 FreeBSD 8.2-RELEASE-p1 #7: Thu Apr 21 15:56:09 CEST 2011 cmt@elch.exwg.net:/usr/obj/usr/src/sys/CMT amd64

	lang/perl5.14 perl-threaded-5.14.0
	www/webkit-gtk2 webkit-gtk2-1.2.7_1

>Description:
	As mentioned in the Perl 5.10.1 release notes (perl5101delta(1)) and
	the 5.14.0 release notes (perl5140delta(1)) Switch.pm was deprecated
	and removed from the core perl distribution. www/webkit-gtk2 ships
	with a build script requiring Switch.pm, so we need lang/p5-Switch
	when building with perl 5.14.0.
>How-To-Repeat:
	Upgrade to perl 5.14 and try to build webkit-gtk2
>Fix:
	Rather trivial patch:

--- www/webkit-gtk2/Makefile.orig	2011-05-21 15:21:57.000000000 +0200
+++ www/webkit-gtk2/Makefile	2011-05-21 15:21:30.000000000 +0200
@@ -84,6 +84,10 @@
 CFLAGS+= -mminimal-toc
 .endif
 
+.if ${PERL_LEVEL} >= 501400
+BUILD_DEPENDS+= p5-Switch:${PORTSDIR}/lang/p5-Switch
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%BROWSER_PLUGINS_DIR%%|${BROWSER_PLUGINS_DIR}|' \
 		${WRKSRC}/WebCore/plugins/PluginDatabase.cpp


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



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