Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543534 - www-client/phantomjs-2.0.0 compiles only when Python 2 is active
Summary: www-client/phantomjs-2.0.0 compiles only when Python 2 is active
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-16 18:37 UTC by Thomas
Modified: 2015-03-18 20:18 UTC (History)
2 users (show)

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


Attachments
emerge --info phantomjs (phantomjs.info,5.60 KB, application/x-info)
2015-03-16 18:37 UTC, Thomas
Details
Patch to fix itab.py with Python 3 (phantomjs-python3-udis86-itab.patch,664 bytes, patch)
2015-03-17 10:04 UTC, Benjamin Southall
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas 2015-03-16 18:37:03 UTC
Created attachment 399048 [details]
emerge --info phantomjs

phantomjs-2 does not compile, when Python 3 is eselected:

...
offlineasm: Parsing /tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/llint/LowLevelInterpreter.asm and LLIntOffsetsExtractor and creating assembly file generated/LLIntAssembly.h.
Traceback (most recent call last):
  File "/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 360, in <module>
    main()
  File "/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 357, in main
    generator.genItab()
  File "/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 347, in genItab
    self.genItabH()
  File "/tmp/portage/www-client/phantomjs-2.0.0/work/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py", line 318, in genItabH
    operands.sort()
AttributeError: 'dict_keys' object has no attribute 'sort'
Makefile.JavaScriptCore.DerivedSources:2344: recipe for target 'generated/udis86_itab.c' failed
...
Comment 1 Benjamin Southall 2015-03-17 10:04:55 UTC
Created attachment 399088 [details, diff]
Patch to fix itab.py with Python 3

See upstream bug https://github.com/ariya/phantomjs/issues/12713.
Patch is based suggestion in upstream bug.
To apply patch add       epatch "${FILESDIR}"/${PN}-python3-udis86-itab.patch
to src_prepare(){} in the ebuild.
Comment 2 Tomáš Mózes 2015-03-18 10:44:04 UTC
I can confirm this issue, it failed to build on Python 3.3, but succeeded on Python 2.7.
Comment 3 Hans de Graaff gentoo-dev Security 2015-03-18 20:18:17 UTC
Thanks, applied to phantomjs-2.0.0.