Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501268 - x11-wm/xpra-0.11.2 crashes on launch if built minimal for headless server USE="-client server"
Summary: x11-wm/xpra-0.11.2 crashes on launch if built minimal for headless server USE...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Michael Weber (RETIRED)
URL: https://www.xpra.org/trac/ticket/515
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-02-14 03:01 UTC by Joe Stroller
Modified: 2014-02-19 22:43 UTC (History)
1 user (show)

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


Attachments
Patch to fix this bug (xpra-headless-crash-fix.patch,2.11 KB, patch)
2014-02-14 03:01 UTC, Joe Stroller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Stroller 2014-02-14 03:01:21 UTC
Created attachment 370378 [details, diff]
Patch to fix this bug

Full USE flags: server -client clipboard rencode x264 csc webp vpx -dec_av2 -dec_av -opengl -pulseaudio -sound 

Result:

$ xpra start :100 --start-child=firefox
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/xpra", line 4, in <module>
    import xpra.scripts.main
  File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 21, in <module>
    from xpra.platform.features import LOCAL_SERVERS_SUPPORTED, SHADOW_SUPPORTED, CAN_DAEMONIZE
  File "/usr/lib64/python2.7/site-packages/xpra/platform/features.py", line 34, in <module>
    "UI_THREAD_POLLING")
  File "/usr/lib64/python2.7/site-packages/xpra/platform/__init__.py", line 38, in platform_import
    platform_module = __import__(module, {}, {}, imports)
  File "/usr/lib64/python2.7/site-packages/xpra/platform/xposix/features.py", line 19, in <module>
    from xpra.platform.xposix.appindicator_tray import is_unity
  File "/usr/lib64/python2.7/site-packages/xpra/platform/xposix/appindicator_tray.py", line 10, in <module>
    from xpra.client.tray_base import TrayBase, debug
ImportError: No module named client.tray_base
$ 


This bug has been reported upstream and is fixed in xpra trunk.

See xpra.org tracker, ticket 515: https://www.xpra.org/trac/ticket/515

totaam reports that he will backport this fix to xpra-0.11.x, so probably 0.11.3

Or you can apply the attached patch and release xpra-0.11.2-r1 (tested here, works for me).
Comment 1 Joe Stroller 2014-02-14 03:53:39 UTC
Fixed in 0.11.3, released 20 minutes ago: https://www.xpra.org/src/xpra-0.11.3.tar.xz
Comment 2 Michael Weber (RETIRED) gentoo-dev 2014-02-19 22:43:01 UTC
(In reply to Joe Stroller from comment #1)
> Fixed in 0.11.3, released 20 minutes ago:
> https://www.xpra.org/src/xpra-0.11.3.tar.xz

+*xpra-0.11.3 (19 Feb 2014)
+
+  19 Feb 2014; Michael Weber <xmw@gentoo.org> +xpra-0.11.3.ebuild:
+  Version bump fixing bug 501268.
+