Apache OpenOffice (AOO) Bugzilla – Issue 79648
do not use lock file when installing bundled extensions
Last modified: 2013-08-07 15:31:14 UTC
... because if the user uses sudo this may create the user installation directory and the lock file with root access. The user will not be able to modify it later on.
see also tr 148665
The fix for i79643 also fixes this problem. However, we should prevent writing the lock file altogether. Therefore I will keep this open.
*** Issue 80564 has been marked as a duplicate of this issue. ***
Retargeted to 3.0.
*** Issue 86080 has been marked as a duplicate of this issue. ***
We may use a new command line switch -nolockfile which is only valid together with --shared (because then no other user should be using the office).
Please make sure this is done for OOo 3.0, it is causing major problems with package installation since unopkg is used in deb/rpm's to register extensions. We are having to drop the writer2latex extension on Ubuntu 8.04 because unopkg won't work reliably and is causing install failures.
As obr indicated in issue 86080 we may just implement an option for the script which does not affect the behaviour of --shared. We need to think about Windows. Although it does not come with sudo, I am sure there are implementation around which try to emulate it. If so, we'd have a problem since there is no unopkg script on Windows ....
A work around is to start unopkg with additional bootstrap parameters. For example unopkg -env:UserInstallation=file:////var/temp/myuserinstallation -env:UNO_JAVA_JFW_INSTALL_DATA=$$ORIGIN/../share/config/javasettingsunopkginstall.xml .... The first -env causes that the whole user installation is redirected. The script which invokes unopkg needs to make sure that the directory exists and delete it later on. The second -env is to provide a location for the java settings. If you run unopkg several times then use the same value (do not delete it). It causes that the first unopkg searches for a suitable JRE, writes the settings to that file. All other unopkg calls later on will reuse these settings. However, after changing the directory structure of OOo, the URL is probably wrong.
.
unopkg is not used anymore during setup, so the issue is invalid *** This issue has been marked as a duplicate of 77196 ***