Summary: | app-accessibility/orca: Verify and potentially improve Python-related code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Arfrever Frehtes Taifersar Arahesis (RETIRED) <arfrever> |
Component: | Current packages | Assignee: | Gnome Accessibility (OBSOLETE) <gnome-accessibility+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | python |
Priority: | Highest | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 309041, 309045 | ||
Bug Blocks: | 308257 | ||
Attachments: |
orca-2.28.3.ebuild.patch
orca.ebuild.diff orca.py /usr/bin/orca |
Description
Arfrever Frehtes Taifersar Arahesis (RETIRED)
2010-03-07 16:52:58 UTC
Created attachment 223197 [details, diff]
orca-2.28.3.ebuild.patch
I'm attaching not tested patch, which probably works correctly.
Dependencies of app-accessibility/orca need to be fixed first. Created attachment 250281 [details]
orca.ebuild.diff
Hello Arfrever
I am trying to fix these python bugs while bumping Gnome 2.32 but I have seen I am unable to make orca work on a system with python3.1 as main python interpreter.
Even running "python_convert_shebangs -r 2 ." in src_prepare doesn't fix the problem (like it does with accerciser), and I still get the following error at runtime:
$ orca
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/orca/orca.py", line 1950
print msg
^
SyntaxError: invalid syntax
If you know how to handle this, please tell me what to do.
Thanks a lot :-)
Maybe "orca" script is generated later, so check if calling python_convert_shebangs() in src_install() helps. If it doesn't help, then please attach "orca" script. Created attachment 250871 [details]
orca.py
orca.py is already present on "fresh" upstream sources, I attach it
I meant "orca", not "orca.py". (In reply to comment #4) > Maybe "orca" script is generated later, so check if calling > python_convert_shebangs() in src_install() helps. If it doesn't help, then > please attach "orca" script. > That neither works :-( Created attachment 251039 [details]
/usr/bin/orca
(In reply to comment #8) runOrca() function needs to be fixed. sed -e "s:/usr/bin/python:$(PYTHON -a):" ... (In reply to comment #9) > (In reply to comment #8) > > runOrca() function needs to be fixed. > sed -e "s:/usr/bin/python:$(PYTHON -a):" ... > It's is being generated from orca.in that has the following: runOrca() { exec_prefix=@prefix@ PYTHONPATH=${PYTHONPATH}:@pyexecdir@ export PYTHONPATH saveXmodmap @PYTHON@ -c "import orca.orca; orca.orca.main()" "$ARGS" restoreXmodmap } Maybe it should look different to properly detect python version? :-/ Fixed in 2.32, thanks a lot Arfrever |