Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 372301

Summary: www-client/chromium does not compile with dev-lang/perl-5.14
Product: Gentoo Linux Reporter: Markus Peloquin <markus>
Component: Current packagesAssignee: Chromium Project <chromium>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://bugs.gentoo.org/show_bug.cgi?id=364489
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 356171    
Attachments: chromium-14.0.794.0-perl514.patch

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.