>>> Starting src_compile * python2_7: running distutils-r1_run_phase distutils-r1_python_compile /usr/bin/python2.7 setup.py build Traceback (most recent call last): File "setup.py", line 27, in <module> usr_share = os.environ['$XDG_DATA_HOME'] File "/usr/lib64/python2.7/UserDict.py", line 40, in __getitem__ raise KeyError(key) KeyError: '$XDG_DATA_HOME'
Created attachment 436256 [details] ebuild test run Please post the output of 'emerge --info', preferably as an attachment. This doesn't seem to occur when I do a test run (see attached).
Created attachment 436854 [details] emerge --info
worky if `unset XDG_DATA_HOME` first
Seems like an obvious typo in the setup script. I suggested a fix upstream: https://github.com/spesmilo/electrum/pull/1838/files In the meantime, we can either patch this locally, or better yet, unset XDG_DATA_HOME in the ebuild (because the build shouldn't depend on the user's data directory in the first place).
If I apply the github upstream fix then electrum's .desktop file will be installed in /var/tmp/portage/net-misc/electrum-2.6.4/homedir/.local/share/applications/electrum.desktop, which is wrong.
I ran with this src_compile and it seems to work now: src_compile() { unset XDG_DATA_HOME default }
This bug still exists on ~amd64.
the workaround of modifying the ebuild worked for me. thanks. Needed ~x86 since current "stable" gentoo is too out of date to actually perform transactions.
master 92ed6f4d8a72] net-misc/electrum: Run xdg_environment_reset (#584242) 1 file changed, 1 insertion(+)