Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236092 - app-emulation/xen-tools should check for USE=threads in python
Summary: app-emulation/xen-tools should check for USE=threads in python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-29 07:19 UTC by Joel Koglin
Modified: 2008-09-01 00:45 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Koglin 2008-08-29 07:19:54 UTC
/etc/init.d xend start
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread                                       [ !! ]


dev-lang/python-2.5.2-r7  USE="ncurses readline sqlite -berkdb -bootstrap -build -doc -examples -gdbm -ipv6 -ssl -threads -tk -ucs2 -wininst"

Reproducible: Always

Steps to Reproduce:
1. emerge python USE="-threads"
2. emerge xen xen-tools
3. /etc/init.d/xend start

Actual Results:  
localhost gentoo # /etc/init.d/xend start
 * Caching service dependencies ...                                       [ ok ]
 * Starting Xen control daemon ...
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread
Traceback (most recent call last):
  File "/usr/sbin/xend", line 44, in <module>
    from xen.xend.server import SrvDaemon
  File "usr/lib/python2.5/site-packages/xen/xend/server/SrvDaemon.py", line 13, in <module>
    import threading
  File "/usr/lib/python2.5/threading.py", line 6, in <module>
    import thread
ImportError: No module named thread                                       [ !! ]
 * ERROR: xend failed to start


Expected Results:  
xend to start without any errors

The xen or xen-tools ebuild, which ever contains the xend init scripts should check for threading in python
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-08-30 02:11:54 UTC
yet another use dep in xen-tools, will do with the upcoming 3.3 bump.
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-09-01 00:45:36 UTC
Thank you for your bug report. I hope it is fixed with the following commit. Please let me know if it works, or not.

*xen-tools-3.3.0 (01 Sep 2008)

  01 Sep 2008; Robert Buchholz <rbu@gentoo.org>
  +files/xen-tools-3.3.0--as-needed.patch,
  +files/xen-tools-3.3.0-nostrip.patch,
  +files/xen-tools-3.3.0-xen-detect-nopie-fix.patch, files/xendomains.confd,
  files/xendomains.initd, metadata.xml, -xen-tools-3.2.0.ebuild,
  +xen-tools-3.3.0.ebuild:
  Version bump to Xen 3.3 (bug #201792). Fixes bugs:
   * Add USE flags for ACM and FLASK Xen Security Modules
   * Properly compile and uninstall python bytecode
   * RDEPEND on pyxml (bug #201255)
   * Remove libvncserver dependency
   * Shutdown xendomains in reverse start order (bug #210445)
   * Allow for parallel shutdown of xendomains (bug #162833)
   * Check that python is built with threading (bug #236092)