Bug 67718 - UI: Advanced configuration tab empty when compiling without java
Summary: UI: Advanced configuration tab empty when compiling without java
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All Linux (All)
: medium normal
Assignee: Caolán McNamara
URL:
Whiteboard: BSA
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-08-03 17:00 UTC by Jérôme Borme
Modified: 2013-09-09 13:41 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Side to side, the Advanced tab when LibO is compile with (left) and without (right) java. (54.66 KB, image/png)
2013-08-03 17:00 UTC, Jérôme Borme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jérôme Borme 2013-08-03 17:00:07 UTC
Created attachment 83589 [details]
Side to side, the Advanced tab when LibO is compile with (left) and without (right) java.

When compiling libreoffice-4.1.0.4 (release) using the configure option --without-java, the pan at tools/options/LibreOffice/Advanced is brokenly empty.)

This pan should show 1) a list of java environments to choose from and 2) Optional (unstable) options: Enable experimental features; Enable experimental sidebar (on restart); Enable macro recording (limited). When java is disabled at compile-time, it is understandable that the java part of the dialog is removed. However the three other checkboxes should still be there. 

Workaround (either of the two).
1. Activate java at compile-time, then deactivate it (if required) in the Advanced dialog. Drawback: obliges the user to install a jdk/jre as the package manager will pull java dependencies when activating the compile flag. This dependency is useless as the sidebar does not require java, and it's a bit annoying for users who do not want or do not have other uses for large jdk/jre packages on their systems. 
2. Compile with java, change desired options, then compile without java, and remove undesired java dependencies. Drawback: not possible to change Advanced options at a later point; need to perform two lengthy compilations.


Bug was reported on the gentoo bugzilla https://bugs.gentoo.org/show_bug.cgi?id=478346 and also discussed in forums over there.

The configure line on my system follows. To give a cleaner presentation I separate the common part and the specific part to activate/deactivate java (which you have to concatenate to reconstitute the complete configure line -- I hope order of parameters is not critical).

COMMON PART:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking --docdir=/usr/share/doc/libreoffice-4.1.0.4/ --with-system-headers --with-system-libs --with-system-jars --with-system-dicts --enable-cairo-canvas --enable-graphite --enable-largefile --enable-mergelibs --enable-python=system --enable-randr --enable-randr-link --enable-release-build --enable-hardlink-deliver --disable-ccache --disable-crashdump --disable-dependency-tracking --disable-epm --disable-fetch-external --disable-gnome-vfs --disable-gstreamer-0-10 --disable-report-builder --disable-kdeab --disable-kde --disable-online-update --disable-rpath --disable-systray --with-alloc=system --with-build-version=Gentoo official package --enable-extension-integration --with-external-dict-dir=/usr/share/myspell --with-external-hyph-dir=/usr/share/myspell --with-external-thes-dir=/usr/share/myspell --with-external-tar=/mnt/stockage/var-tmp-portage/portage/app-office/libreoffice-4.1.0.4/distdir --with-lang= --with-parallelism=6 --with-system-ucpp --with-vendor=Gentoo Foundation --with-x --without-afms --without-fonts --without-myspell-dicts --without-help --with-helppack-integration --without-sun-templates --disable-sdremote-bluetooth --enable-cups --disable-debug --enable-dbus --disable-evolution2 --disable-gconf --disable-gio --disable-lockdown --disable-gtk --disable-gtk3 --enable-kde4 --disable-ext-mariadb-connector --disable-odk --disable-opengl --disable-postgresql-sdbc --disable-telepathy --disable-linkoo --disable-vba --disable-neon --without-system-mysql-cppconn --without-doxygen --without-system-sane --without-system-vigra --disable-ext-nlpsolver --disable-ext-presenter-minimizer --disable-scripting-beanshell --disable-scripting-javascript --disable-ext-wiki-publisher

WITH JAVA:
--with-java --without-junit --without-system-hsqldb --with-ant-home=/usr/share/ant --with-jdk-home=/opt/icedtea-bin-6.1.12.6

WITHOUT JAVA:
--without-java
Operating System: Linux (Other)
Version: 4.1.0.4 release
Comment 1 Benedikt Morbach 2013-09-05 22:18:30 UTC
I can confirm that this issue is still present in 4.1.1.2 and thus set the status to NEW.
I changed the component to UI, since it doesn't just affect writer,
set the platform to ALL, since I have seen it on x86 and x86_64 and highly doubt that it is platform specific
and added the REGRESSION keyword since it worked in before (in 4.0 iirc)
Comment 2 Caolán McNamara 2013-09-09 13:41:12 UTC
This was fixed on master with http://cgit.freedesktop.org/libreoffice/core/commit/?id=1d95129bdc48cd93d1aba2591bdf87ee6ab7b296

It wasn't backported to 4.1 seeing as compiling without java is not really an end-user sort of thing and isn't a truly supported configuration because it doesn't give full functionality