Switch.pm has been deprecated a while, and is no longer shipped with Perl. This is used in webkit-gtk's WebCore/dom/make_names.pl , and the absense of Switch.pm thusly makes Webkit-gtk not compilable. mv CSSPropertyNames.* ./DerivedSources GEN DerivedSources/HTMLElementFactory.cpp GEN DerivedSources/HTMLEntityNames.c GEN DerivedSources/HTMLNames.cpp Can't locate Switch.pm in @INC (@INC contains: ./WebCore/bindings/scripts /etc/perl /usr/local/lib64/perl5/5.14/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.14 /usr/lib64/perl5/vendor_perl/5.14/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.14 /usr/lib64/perl5/5.14/x86_64-linux-thread-multi /usr/lib64/perl5/5.14 .) at WebCore/dom/make_names.pl line 38. BEGIN failed--compilation aborted at WebCore/dom/make_names.pl line 38. make: *** [DerivedSources/HTMLElementFactory.cpp] Error 2 make: *** Waiting for unfinished jobs.... Can't locate Switch.pm in @INC (@INC contains: ./WebCore/bindings/scripts /etc/perl /usr/local/lib64/perl5/5.14/x86_64-linux-thread-multi /usr/local/lib64/perl5/5.14 /usr/lib64/perl5/vendor_perl/5.14/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.14 /usr/lib64/perl5/5.14/x86_64-linux-thread-multi /usr/lib64/perl5/5.14 .) at WebCore/dom/make_names.pl line 38. BEGIN failed--compilation aborted at WebCore/dom/make_names.pl line 38. make: *** [DerivedSources/HTMLNames.cpp] Error 2 mv CSSValueKeywords.* ./DerivedSources /usr/libexec/paludis/utils/emake: emake returned error 2
emerge --info and full build.log please.
Removed perl core modules are also new to us and we'll have to check what we do best. This is probably a perl bug right now. Feel free to remove the gnome team. With warnings turned on, you'll see the deprecation hint added in perl-5.12 (see below). Switch will be removed in perl-5.14 (which will be released soon). Currently we are tracking all failure. We'll have to check if - webkit upstream is going to use the given/when feature (released in perl-5.10) or - we patch it :( or - we add Switch to dev-lang/perl-5.14 or - we add and depend on dev-perl/Switch (bug #351065). http://search.cpan.org/~jesse/perl-5.14.0-RC1/pod/perl5120delta.pod#Deprecated_Modules $ perl5.12.2 -cw ./webkit-1.3.13/Source/WebCore/make-hash-tools.pl Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./webkit-1.3.13/Source/WebCore/make-hash-tools.pl, line 23. ./webkit-1.3.13/Source/WebCore/make-hash-tools.pl syntax OK $ PERL5LIB=./webkit-1.2.7/WebCore/bindings/scripts perl5.12.2 -cw ./webkit-1.2.7/WebCore/dom/make_names.pl Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./webkit-1.2.7/WebCore/dom/make_names.pl, line 38. ./webkit-1.2.7/WebCore/dom/make_names.pl syntax OK
By now we have found two packages using Switch.pm: net-libs/webkit-gtk itself and the bundled webkit in www-client/chromium. I've added perl-core/Switch and virtual/perl-Switch to the tree and the two packages should depend on virtual/perl-Switch. If nobody finds a better solution, I'll file a new KEYWORDREQ bug for the new packages in two days.
Have you rechecked with webkit-gtk-1.4* ?
webkit-gtk-1.4.1 has the same issue, it uses Switch.pm in Source/WebCore/make-hash-tools.pl
Created attachment 277545 [details, diff] webkit-1.4.1-givenwhen.patch Replace Switch by given-when for webkit-1.4.1
Created attachment 277547 [details, diff] webkit-1.2.7-givenwhen.patch ...and for webkit-1.2.7
Have you reported the issues upstream and submitted patches upstream? It should be fairly easy to get that fixed upstream, and I'd be glad to help with the procedures.
Upstream issue: https://bugs.webkit.org/show_bug.cgi?id=61890
The upstream patch has landed. Link to unified diff: <http://trac.webkit.org/changeset/89265/trunk/Source/WebCore/make-hash-tools.pl?format=diff&new=89265>
Can this be marked FIXED now? It was fixed upstream and merged into 1.4.2. The lowest version available in our tree is 1.4.3. http://trac.webkit.org/log/releases/WebKitGTK/webkit-1.4.2?action=follow_copy&mode=follow_copy&rev=90183&stop_rev=90147&limit=100
Thanks for the heads up