Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372301 - www-client/chromium does not compile with dev-lang/perl-5.14
Summary: www-client/chromium does not compile with dev-lang/perl-5.14
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: perl-5.14.0
  Show dependency tree
 
Reported: 2011-06-19 20:20 UTC by Markus Peloquin
Modified: 2011-06-22 13:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
chromium-14.0.794.0-perl514.patch (chromium-14.0.794.0-perl514.patch,1.37 KB, patch)
2011-06-19 20:21 UTC, Markus Peloquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Peloquin 2011-06-19 20:20:36 UTC
Perl-5.10 added the given/when switch feature.  Perl-5.12 deprecated Switch.pm's switch/case.  Perl-5.14 removed Switch.pm.  Thus the build-time error:


  export LD_LIBRARY_PATH=/var/tmp/portage/www-client/chromium-14.0.794.0/work/chromium-14.0.794.0/out/Release/lib.host:/var/tmp/portage/www-client/chromium-14.0.794.0/work/chromium-14.0.794.0/out/Release/lib.target:$LD_LIBRARY_PATH; cd third_party/WebKit/Source/WebCore/WebCore.gyp; mkdir -p /var/tmp/portage/www-client/chromium-14.0.794.0/work/chromium-14.0.794.0/out/Release/obj/gen/webkit; perl ../make-hash-tools.pl "/var/tmp/portage/www-client/chromium-14.0.794.0/work/chromium-14.0.794.0/out/Release/obj/gen/webkit" "/var/tmp/portage/www-client/chromium-14.0.794.0/work/chromium-14.0.794.0/third_party/WebKit/Source/WebCore/html/DocTypeStrings.gperf"
Can't locate Switch.pm in @INC (@INC contains: /etc/perl /usr/local/lib64/perl5/5.14.1/x86_64-linux /usr/local/lib64/perl5/5.14.1 /usr/lib64/perl5/vendor_perl/5.14.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.14.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.14.1/x86_64-linux /usr/lib64/perl5/5.14.1 .) at ../make-hash-tools.pl line 23.
BEGIN failed--compilation aborted at ../make-hash-tools.pl line 23.
make: *** [out/Release/obj/gen/webkit/DocTypeStrings.cpp] Error 2
make: *** Waiting for unfinished jobs....
emake failed

Patch incoming...


Reproducible: Always
Comment 1 Markus Peloquin 2011-06-19 20:21:57 UTC
Created attachment 277559 [details, diff]
chromium-14.0.794.0-perl514.patch

Patch for perl-5.10+ (perl-5.8 is still in portage, and note this is purely a build-time dependency; it makes sense to conditionally apply in the ebuild).
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-06-21 07:35:52 UTC
This is very similar to bug #364489 . I think we may need to backport the patch for ~arch chromium, so I'll keep this as a separate bug.
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-06-21 10:22:52 UTC
Fixed without revbump, thanks for reporting.
Comment 4 Markus Peloquin 2011-06-22 13:30:44 UTC
The patch you made was CR-LF formatted so it doesn't apply.