LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Libreoffice-5.1.0.3 (https://www.linuxquestions.org/questions/slackware-14/libreoffice-5-1-0-3-a-4175572051/)

orbea 02-14-2016 08:46 PM

Alright, my slackbuild now works again without python3 installed, but it will no longer try to build against Slackware's python2 which doesn't work anymore. By default if python3 is installed it will use "--enable-python=system" and if its not it will use "--enable-python=internal" which apparently is a lot faster... (Edit: Probably was just the ccache.) Of course its still possible to disable python or to force using an internal or fully internal python3 (I'm not sure the exact difference).

https://notabug.org/orbea/Slackbuild...ce/libreoffice
Code:

Slackware package /tmp/libreoffice-5.1.0.3-i486-2_SBo.tgz created.


real    73m53.145s
user    36m25.703s
sys    8m54.947s

Additionally, if anyone is trying to build libreoffice in a chroot or ssh environment, make sure $DISPLAY is not set. "echo $DISPLAY" should print nothing and if it does use "unset DISPLAY" before running the script, or you will likely end up with something like this...
Code:

[CUT] cppcanvas_emfplus
S=/tmp/SBo/libreoffice-5.1.0.3 && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/cppcanvas_emfplus.test.user && mkdir $W/CppunitTest/cppcanvas_emfplus.test.user &&    rm -fr $W/CppunitTest/cppcanvas_emfplus.test.core && mkdir $W/CppunitTest/cppcanvas_emfplus.test.core && cd $W/CppunitTest/cppcanvas_emfplus.test.core && (LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs  VCL_HIDE_WINDOWS=1 MALLOC_CHECK_=2 MALLOC_PERTURB_=153    $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_cppcanvas_emfplus.so  "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:UserInstallation=file://$W/CppunitTest/cppcanvas_emfplus.test.user"  "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-env:UNO_TYPES=file://$I/program/types/offapi.rdb file://$I/program/types.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/canvas/source/cairo/cairocanvas.component file://$W/ComponentTarget/canvas/source/factory/canvasfactory.component file://$W/ComponentTarget/cppcanvas/source/uno/mtfrenderer.component file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/extensions/source/scanner/scn.component file://$W/ComponentTarget/filter/source/config/cache/filterconfig1.component file://$W/ComponentTarget/framework/util/fwk.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/package/util/package2.component file://$W/ComponentTarget/sax/source/expatwrap/expwrap.component file://$W/ComponentTarget/sfx2/util/sfx.component file://$W/ComponentTarget/sd/util/sd.component file://$W/ComponentTarget/sd/util/sdd.component file://$W/ComponentTarget/svl/source/fsstor/fsstorage.component file://$W/ComponentTarget/toolkit/util/tk.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/unoxml/source/service/unoxml.component file://$W/ComponentTarget/svtools/util/svt.component"  -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapprotector.so unobootstrapprotector  --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector  "-env:CPPUNITTESTTARGET=$W/CppunitTest/cppcanvas_emfplus.test"  > $W/CppunitTest/cppcanvas_emfplus.test.log 2>&1 || ( RET=$?; $S/solenv/bin/gdb-core-bt.sh $W/LinkTarget/Executable/cppunittester $W/CppunitTest/cppcanvas_emfplus.test.core $RET >> $W/CppunitTest/cppcanvas_emfplus.test.log 2>&1; cat $W/CppunitTest/cppcanvas_emfplus.test.log; $S/solenv/gbuild/platform/unittest-failed-default.sh Cppunit cppcanvas_emfplus))
No protocol specified
No protocol specified
unknown:0:Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments


##Failure Location unknown## : Error
Test name: Test::testFdo77229
An uncaught exception of type com.sun.star.uno.RuntimeException
- PresenterCanvas: invalid number of arguments

Failures !!!
Run: 1  Failure total: 1  Failures: 0  Errors: 1

Error: a unit test failed, please do one of:
make CppunitTest_cppcanvas_emfplus CPPUNITTRACE="gdb --args"
    # for interactive debugging on Linux
make CppunitTest_cppcanvas_emfplus VALGRIND=memcheck
    # for memory checking
make CppunitTest_cppcanvas_emfplus DEBUGCPPUNIT=TRUE
    # for exception catching

/tmp/SBo/libreoffice-5.1.0.3/solenv/gbuild/CppunitTest.mk:90: recipe for target '/tmp/SBo/libreoffice-5.1.0.3/workdir/CppunitTest/cppcanvas_emfplus.test' failed
make[1]: *** [/tmp/SBo/libreoffice-5.1.0.3/workdir/CppunitTest/cppcanvas_emfplus.test] Error 1
rm /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/line.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/line.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/char.brk /tmp/SBo/libreoffice-5.1.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk
make[1]: Leaving directory '/tmp/SBo/libreoffice-5.1.0.3'
Makefile:244: recipe for target 'build' failed
make: *** [build] Error 2

real    79m40.793s
user    41m21.669s
sys    10m24.672s


keithpeter 02-15-2016 12:22 PM

Hello all

Fresh install of 32 bit -current, added Perl Zip module. Ran the new libreoffice.Slackbuild with newly downloaded supporting files. I got the error below part way through. I was running the compilation on tty2 outside of the GUI and echo $DISPLAY was returning empty.

Code:

creating Modules/Setup
creating Modules/Setup.local
creating Makefile
make[2]: Entering directory '/home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3'
/usr/bin/ccache gcc -pthread -c -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG yes  -O2 -march=i486 -mtune=i686  -Werror=declaration-after-statement  -I. -IInclude -I./Include  -fPIC -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
gcc: error: yes: No such file or directory
Makefile:753: recipe for target 'Programs/python.o' failed
make[2]: *** [Programs/python.o] Error 1
make[2]: Leaving directory '/home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3'
/home/keith/tmp/libreoffice-5.1.0.3/external/python3/ExternalProject_python3.mk:59: recipe for target '/home/keith/tmp/libreoffice-5.1.0.3/workdir/ExternalProject/python3/build' failed

The file at /home/keith/tmp/libreoffice-5.1.0.3/workdir/UnpackedTarball/python3 was there and had about 20 lines with some error code in it.

Deleted ~/tmp and installed Python3 binary package from slackonly and after about 4 hours got a package that installed fine using this command line...

Code:

#TMP="/home/keith/tmp" OPT="yes" DICT="yes" HELP="yes" NUMJOBS="2" KDE="yes" ./libreoffice.SlackBuild
I can restore a clean system quickly if anyone wants another run.

orbea 02-15-2016 01:09 PM

Did you try to build it the same way both times? I think the important line is:
Code:

gcc: error: yes: No such file or directory
Was this a full install? Is your coreutils package installed correctly? What does the command "which yes" return? You should have both /bin/yes and a symlink to it, /usr/bin/yes. Can you compile the python3 from SBo without any issues?

Also I don't use kde or even install it so I haven't tested that functionality personally.

keithpeter 02-15-2016 01:26 PM

Quote:

Originally Posted by orbea (Post 5500625)
Did you try to build it the same way both times? I think the important line is:
Code:

gcc: error: yes: No such file or directory
Was this a full install?

Yes, fresh install from the -current DVD including everything (even kdei) dated 8th Feb with updates applied today. I beleive it was same system both times. Only change was installation of python3 from slackonly and reboot.

Quote:

Originally Posted by orbea (Post 5500625)
Is your coreutils package installed correctly? What does the command "which yes" return? You should have both /bin/yes and a symlink to it, /usr/bin/yes.

See below - 'which yes' only shows /usr/bin/yes.

Code:

root@illy:~# ls /bin/y*
/bin/yes*  /bin/ypdomainname@

Code:

root@illy:~# which yes
/usr/bin/yes

Quote:

Originally Posted by orbea (Post 5500625)
Can you compile the python3 from SBo without any issues?

I just downloaded the binary from slackonly/current. I'll do a fresh install and post 'which yes' command output and try actually compiling python3 on Wednesday (UK timezone, busy tomorrow Tuesday). The error message reported above was seen before installing python3 though and I took it that the earlier compile aborted because of an issue with the *internal* python3. When compiling *after* installing python3 from slackbuild, the compilation completed fine.

Quote:

Originally Posted by orbea (Post 5500625)
Also I don't use kde or even install it so I haven't tested that functionality personally.

Oddly enough, I usually use xfce4 and don't install the kde or kdei package sets but I decided to keep to a full install on this occasion so that we had a common reference point. The KDE="yes" option allows correct behaviour in some of the Tools | Options dialogs which I did not see on previous compiles: specifically being able to pick options from lists with the mouse instead of using up/down arrows.

orbea 02-15-2016 02:19 PM

My understanding is that its failing to find yes during the compilation of the internal python3 provided by libreoffice, which I didn't run into here. This makes me curious if compiling python3 itself works or if its only the one provided by libreoffice. I can try to sabotage 'yes' in a chroot and see if that reproduces the issue...

As I am using a minimal tiling wm I don't really need any of that desktop integration and I am seeing no issues with my build using the mouse in Tools | Options, though perhaps that is different in a desktop environment? As libreoffice doesn't enable kde4 by default I decided to not either. Also, in case anyone is curious this is the version of libreoffice that finally removed the kde3 support.

keithpeter 02-15-2016 02:48 PM

Code:

bash-4.3$ which yes
/usr/bin/yes
bash-4.3$ ls /bin/y*
/bin/yes*  /bin/ypdomainname

Above is what I get on a fresh default (i.e. full) install from -current DVD and updated to today. I get that from the command line after logging in before issuing a startx command.

I shall try compiling with the default internal python3 and *without* the KDE="yes" option with only the perl ZIP module installed when I next get some time to have this chugging away.

Alien Bob 02-15-2016 04:58 PM

The close proximity of "yes -O2 -march=i486 -mtune=i686" makes me wonder if perhaps you did something weird to the definition of the CFLAGS variable?


All times are GMT -5. The time now is 06:13 PM.