Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 545746 - media-libs/libepoxy-1.2 fails to find pyexpat
Summary: media-libs/libepoxy-1.2 fails to find pyexpat
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-06 16:06 UTC by Stephen Crocker
Modified: 2015-04-17 19:19 UTC (History)
1 user (show)

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


Attachments
output from emerge --info '=media-libs/libepoxy-1.2::gentoo' (emerge.info,6.96 KB, text/plain)
2015-04-06 16:06 UTC, Stephen Crocker
Details
build.log showing the error (build.log,28.55 KB, text/x-log)
2015-04-06 16:08 UTC, Stephen Crocker
Details
ebuild file that fixes problem (libepoxy-1.2.ebuild,1022 bytes, text/plain)
2015-04-06 16:09 UTC, Stephen Crocker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Crocker 2015-04-06 16:06:38 UTC
Created attachment 400698 [details]
output from emerge --info '=media-libs/libepoxy-1.2::gentoo'

The build is unable to find pyexpat under python-3.4 (mainly because it doesn't exist there). 


Traceback (most recent call last): 
  File "/var/tmp/portage/media-libs/libepoxy-1.2/work/libepoxy-1.2/src/gen_dispatch.py", line 812, in <module> 
    generator.parse(file) 
  File "/var/tmp/portage/media-libs/libepoxy-1.2/work/libepoxy-1.2/src/gen_dispatch.py", line 424, in parse 
    reg = ET.parse(file) 
  File "/usr/lib64/python3.4/xml/etree/ElementTree.py", line 1187, in parse 
    tree.parse(source, parser) 
  File "/usr/lib64/python3.4/xml/etree/ElementTree.py", line 592, in parse 
    parser = XMLParser() 
  File "/usr/lib64/python3.4/xml/etree/ElementTree.py", line 1465, in __init__ 
    "No module named expat; use SimpleXMLTreeBuilder instead" 
ImportError: No module named expat; use SimpleXMLTreeBuilder instead 
Makefile:854: recipe for target 'gl_generated_dispatch.c' failed 
make[2]: *** [gl_generated_dispatch.c] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
Makefile:864: recipe for target 'wgl_generated_dispatch.c' failed 
make[2]: *** [wgl_generated_dispatch.c] Error 1 
Makefile:858: recipe for target 'glx_generated_dispatch.c' failed 
make[2]: *** [glx_generated_dispatch.c] Error 1 
Makefile:861: recipe for target 'egl_generated_dispatch.c' failed 
make[2]: *** [egl_generated_dispatch.c] Error 1 
make[2]: Leaving directory '/var/tmp/portage/media-libs/libepoxy-1.2/work/libepoxy-1.2-abi_x86_32.x86/src' 
Makefile:497: recipe for target 'all-recursive' failed 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory '/var/tmp/portage/media-libs/libepoxy-1.2/work/libepoxy-1.2-abi_x86_32.x86' 
Makefile:405: recipe for target 'all' failed
Comment 1 Stephen Crocker 2015-04-06 16:08:00 UTC
Created attachment 400700 [details]
build.log showing the error
Comment 2 Stephen Crocker 2015-04-06 16:09:21 UTC
Created attachment 400702 [details]
ebuild file that fixes problem

This ebuild file was suggested here: https://forums.gentoo.org/viewtopic-p-7728050.html#7728050
Comment 3 Matt Turner gentoo-dev 2015-04-07 21:11:23 UTC
Thanks, I'll handle this.

By the way, patches are preferred rather than full ebuilds. It's much simpler to see what actually needs to be fixed and prevents mistakes like attaching an ebuild with an extra space appended to each line ending (like was the case here).
Comment 4 Matt Turner gentoo-dev 2015-04-17 19:19:12 UTC
Too slow!

I expect this was fixed by

  06 Apr 2015; Michał Górny <mgorny@gentoo.org> -libepoxy-1.1.ebuild,
  libepoxy-1.2.ebuild, libepoxy-9999.ebuild:
  Use python-any-r1, require python[xml]. Reported by hasufell.

Reopen if it was not.