FS#23733 - libreoffice pyuno broken
Attached to Project:
Arch Linux
Opened by Francisco Pina (Stunts) - Tuesday, 12 April 2011, 22:50 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 19 August 2011, 14:06 GMT
Opened by Francisco Pina (Stunts) - Tuesday, 12 April 2011, 22:50 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 19 August 2011, 14:06 GMT
|
Details
Description:
pyuno is broken (not very broken, just a little bit), as can be seen in this closed bug: https://bugs.archlinux.org/task/16636?string=uno&project=0&search_name=&type[0]=&sev[0]=&pri[0]=&due[0]=&reported[0]=&cat[0]=&status[0]=closed&percent[0]=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto= However, my skills have increased slightly since then and this time I have managed to find the source of the problem. In order to solve the problem we must patch libreoffice's uno.py (/usr/lib/libreoffice/basis-link/program/uno.py) The patch is attached. It's my first patch ever, so I hope it's ok. It seems to work on my system. I have created it based on debian's python-uno package. This makes pyuno work as expected with the testcase from the above mentioned closed bug. It also makes bibus work correctly. Let me know if anything else is required. |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Friday, 19 August 2011, 14:06 GMT
Reason for closing: Works for me
Friday, 19 August 2011, 14:06 GMT
Reason for closing: Works for me
I have attached the patch again, this time done right.
BTW, can you please point me somewhere to learn about creating patches the right way, so that this won't happen again?
export PYTHONPATH=$PYTHONPATH:/usr/lib/libreoffice/basis-link/program
similar to what was done in the old openoffice package fixes the problem.
The only thing relevant that I have found is in the source file "libreoffice-ure-XXXXX.tar.bz2" under "pyuno/source/module/uno.py", but this file is radically different from the one I can see in our (installed) package.
I'm just not sure how to report this upstream...
Reported here:
https://bugs.freedesktop.org/show_bug.cgi?id=37037
Seems that the line I have patched does not exist on the original source, however, I cannot find any evidence of it being added in our PKGBUILD.
Doing a diff between our uno.py and the upstream uno.py yelds:
26a27
> import os
27a29,32
>
> sys.path.append('${exec_prefix}/lib/libreoffice/basis-link/program')
> if getattr(os.environ, 'URE_BOOTSTRAP', None) is None:
> os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:${exec_prefix}/lib/libreoffice/program/fundamentalrc"
And guess what: replacing our uno.py with the upstream one solves the testcase problems and the issues with bibus.
I only figured this out after having had a reply from upstream...
I manually added the patch to uno.py and I am able to run pyuno based scripts again.
Did the fix get "undone" in the 3.4.x releases after 3.4.0-1?
or, if there is an upstream bug report that incorporated the fix exists, then let me know what it is and I'll review it.
Thanks
Seems to be working fine for me in both cases.
Anyone else can confirm this, please?
I went back to the original bug issue for this thread and confirmed that the current libreoffice *is* working.
Please 're-close' this bug.