ports/157236: [PATCH] fix build of www/webkit-gtk2 with perl 5.14.0
Christoph Moench-Tegeder
cmt at burggraben.net
Sat May 21 13:40:10 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list