FS#24581 - Libreoffice-sdk: wrong sdk home dir, not initialized

Attached to Project: Arch Linux
Opened by Jesse Jaara (Huulivoide) - Sunday, 05 June 2011, 08:10 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 16 June 2011, 11:12 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Stéphane Gaudreault (stephane)
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Libreoffice-sdk package's initializon script
/usr/lib/libreoffice/basis3.4/sdk/setsdkenv_unix.sh
Doesn't point to correct dir for the sdk root.
It tries to set it as /usr/bin, instead of
/usr/lib/libreoffice/basis3.4/sdk

Also it hasn't been initialized before packing.
So it ask the user for a location of some apps it
uses and dirs where the user wan'ts to save things.



Additional info:
Version: 3.4.0-1

* config and/or log files etc.
This is what you get after fixing the sdk's root
dir in the script by hand.

************************************************************************
*
* You have to configure your SDK environment first before you can
* can use it! The configuration has to be done only once.
*
************************************************************************

Using an array as a reference is deprecated at /usr/lib/libreoffice/basis3.4/sdk//configure.pl line 738.
Using an array as a reference is deprecated at /usr/lib/libreoffice/basis3.4/sdk//configure.pl line 738.
Using an array as a reference is deprecated at /usr/lib/libreoffice/basis3.4/sdk//configure.pl line 743.
Using an array as a reference is deprecated at /usr/lib/libreoffice/basis3.4/sdk//configure.pl line 743.
Enter the Office installation directory [/usr/lib/libreoffice]:
Enter GNU make (3.79.1 or higher) tools directory [/usr/bin]:
Enter zip (2.3 or higher) tool directory [/usr/bin]:
C++ compilers where for example a language binding exist:
- Solaris, Sun WorkShop 6 update 1 C++ 5.2 2000/09/11 or higher
- Linux, GNU C++ compiler, gcc version 4.0.1 or higher
- MacOS, GNU C++ compiler, gcc version 4.0.1 or higher
Enter the directory of the C++ compiler, the directory
where the compiler is located (optional) [/usr/lib/ccache/bin]:
Enter Java SDK (1.5, recommendation is 1.6 or higher) installation directory (optional) [/usr]:
Default output directory is in your HOME directory.
Enter an existent directory if you prefer a different output directory (optional) [/home/jesse]: /tmp/libre
Error: Could not find directory '/tmp/libre'.
Do you want to skip the choice of the 'optional output directory' (YES/NO): [YES]
Automatic deployment of UNO components (YES/NO) [YES]:

ERROR: could not open '/usr/lib/libreoffice/basis3.4/sdk//setsdkenv_unix.sh.in' for reading at /usr/lib/libreoffice/basis3.4/sdk//configure.pl line 780, <STDIN> line 8.



Steps to reproduce:
1. Try to run /usr/lib/libreoffice/basis3.4/sdk/setsdkenv_unix.sh
Doesn't work
2.Fix OO_SDK_HOME to OO_SDK_HOME='/usr/lib/libreoffice/basis3.4/sdk'
inthe script.
3. Re run the script.

This prevents the building of voikko, a finnish spell/hypenation cheker
for ooo/libre....
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Thursday, 16 June 2011, 11:12 GMT
Reason for closing:  Fixed
Comment by Andreas Radke (AndyRTR) - Sunday, 05 June 2011, 14:17 GMT Comment by Jesse Jaara (Huulivoide) - Sunday, 12 June 2011, 12:04 GMT
How is this progressing? This bug currently prevents the
building of the Finnish spell and hypenation checker plugin.
Canät we just do that "Just 'sed' our distro
paths into it and add the missing setsdkenv_unix.sh.in file from the
sdk source?"
Comment by Andreas Radke (AndyRTR) - Sunday, 12 June 2011, 12:35 GMT
I'll try to fix this in the soon expected 3.4.1rc releases. Can you give me the proper sed command?
Comment by Andreas Radke (AndyRTR) - Wednesday, 15 June 2011, 19:03 GMT
Just uploading 3.4.1rc1 to testing. please give it a try. I've reworked the paths in LibO-SDK. Use setsdkenv_unix or the identical setsdkenv_unix.sh to preset your environment. You can reconfigure with "setsdkenv_unix--force-configure" your system.

The only thing I'm currently not sure is the path in the /usr/lib/libreoffice/basis3.4/sdk/setsdkenv_unix{,sh} script that defines where to store stuff in you local homedir:

"$HOME/$OO_SDK_NAME/$HOSTNAME/setsdkenv_unix.sh" - what is store there when you do some developement? Only settings? Then I would move this better to ~/.config/.libreoffice/3/user/sdk using $XDG_CONFIG_HOME. But if real data is stored there I'd leave it as it is.

Opinions? Can we close this one?
Comment by Jesse Jaara (Huulivoide) - Thursday, 16 June 2011, 10:28 GMT
It seems tha the setsdkenv_unix.sh script is only used to generate the set-up script for
libreoffice and setsdkenv_unix.sh.in is the actual script that sets the variables
for building srtuff.
Comment by Jesse Jaara (Huulivoide) - Thursday, 16 June 2011, 11:00 GMT
OFFICE_BASE_HOME needs to be '/usr/lib/libreoffice/basis3.4'
and not '/usr/lib/libreoffice' changing that in the .in file
and sourcing it will result in working libre dev enviroinment :D
Change that and this can be closed
Comment by Andreas Radke (AndyRTR) - Thursday, 16 June 2011, 11:11 GMT
Fixed OFFICE_BASE_HOME in trunk for future builds.

Loading...