LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LibreOffice in Slackware. (https://www.linuxquestions.org/questions/slackware-14/libreoffice-in-slackware-4175647812/)

Tonus 08-18-2020 12:47 PM

That's for the installed package. Compiling it requires much more disk space.

burning 08-18-2020 02:25 PM

Quote:

Originally Posted by Tonus (Post 6157169)
That's for the installed package. Compiling it requires much more disk space.

Thanks, I didn't know this. Any idea how much it takes up while compiling?

aikempshall 08-19-2020 02:58 AM

I've successfully compiled LO 7.0 with jdk11 and LibreOffice using SlackBuilds from ponce. Had to tweak them slightly. Dumped JDK8.

I use VirtualBox, 4 Processors and 8G of memory using an I7-4770K. I always like to have at least 40G+ of free disk space before I start compiling LO. I don't compile in the default /tmp, don't want to fill up the root partition.

Compiles in 2hrs 10mins I'm using with-parallelism=6

Compiled package size is 352MB.

burning 08-19-2020 07:18 AM

Quote:

Originally Posted by aikempshall (Post 6157369)
I've successfully compiled LO 7.0 with jdk11 and LibreOffice using SlackBuilds from ponce. Had to tweak them slightly. Dumped JDK8.

I use VirtualBox, 4 Processors and 8G of memory using an I7-4770K. I always like to have at least 40G+ of free disk space before I start compiling LO. I don't compile in the default /tmp, don't want to fill up the root partition.

Compiles in 2hrs 10mins I'm using with-parallelism=6

Compiled package size is 352MB.

Thanks, I'd be trying to compile it with OpenJDK8. Do you know if it's possible to compile it using my home partition and install it into my root partition? I'd also be using Ponce's SlackBuild, any advice based on how you tweaked it?

aikempshall 08-19-2020 08:23 AM

Quote:

Originally Posted by burning (Post 6157413)
Thanks, I'd be trying to compile it with OpenJDK8. Do you know if it's possible to compile it using my home partition and install it into my root partition? I'd also be using Ponce's SlackBuild, any advice based on how you tweaked it?


AlienBob gave the reason for not including java support in LO7 as

Quote:

I do not have OpenJDK 9 or higher in my repositories and I will not, until IcedTea adds support for these versions. Until then, I stick with Java 8 and that means I had to disable Java support in the libreoffice packages that I compile from source.
I don't use openjdk, don' know why, so I could ignore AlienBob's reasoning.

I use Oracle jdk.

In hacking other people's SlackBuilds I just muddle through. So treat the following very carefully.


Each SlackBuild is written to allow the caller to override "hard coded" parameters. For instance in the LibreOffice.SlackBuild you're see the line

Code:

TMP=${TMP:-/tmp/SBo}
Before calling the LibreOffice.SlackBuild I do this

Code:

export TMP=/home/packages/tmp/SBo
Not sure if it's necessary but I have /home/packages/tmp/SBo owned by root.

This patch file, for LibreOffice.SlackBuild might help

Code:

--- /home/alex/tmp/ponce.org/office/LibreOffice/LibreOffice.SlackBuild  2020-06-28 10:00:29.139632294 +0100
+++ /home/alex/Documents/ponce.org.buildpackages/LibreOffice7.0/LibreOffice.SlackBuild  2020-08-06 10:38:52.000000000 +0100
@@ -26,9 +26,9 @@
 
 PRGNAM=LibreOffice
 SRCNAM=libreoffice
-VERSION=${VERSION:-6.4.1.2}
+VERSION=${VERSION:-7.0.0.3}
 SHORT_VERSION=${VERSION%.*.*}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-0}
 TAG=${TAG:-_SBo}
 PACKAGER=${PACKAGER:-"AnonymousCoward"}
 
@@ -92,7 +92,14 @@
 [ "${PARALLEL:-0}" != "0" ] && parallel="--with-parallelism=$PARALLEL"
 
 JAVA=${JAVA:-jdk}
-if [ "$JAVA" = "openjdk7" ]; then
+if [ "$JAVA" = "jdk14" ]; then
+  . /etc/profile.d/jdk14.sh
+##  use_java="--with-java=java"
+  use_java="--with-jdk-home=/usr/lib64/jdk14-14.0.1"
+elif [ "$JAVA" = "jdk11" ]; then
+  . /etc/profile.d/jdk11.sh
+  use_java="--with-jdk-home=/usr/lib64/jdk11-11.0.7"
+elif [ "$JAVA" = "openjdk7" ]; then
  . /etc/profile.d/openjdk7.sh
  use_java="--with-java=java"
 elif [ "$JAVA" = "openjdk8" ]; then




I can then do

Code:

export JAVA=jdk11
before calling LibreOffice.SlackBuild

I also hacked the ponce jdk11.SlackBuild


Code:

--- /home/alex/tmp/ponce.org/development/jdk11/jdk11.SlackBuild 2020-06-28 10:00:28.662639255 +0100
+++ /home/alex/Documents/ponce.org.buildpackages/jdk11/jdk11.SlackBuild 2020-07-11 18:39:18.000000000 +0100
@@ -27,6 +27,8 @@
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
+DVER=${PRGNAM}-$(printf $VERSION | cut -du -f1)
+
 if [ -z "$ARCH" ]; then
  case "$(uname -m)" in
    i?86) ARCH=i586 ;;
@@ -64,6 +66,11 @@
  \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
 
+echo move ${DVER} to java
+
+mv ${DVER} java
+ln -sf java ${DVER}
+
 find $PRGNAM-$VERSION -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true


Before running these SlackBuilds I remove the jdk8 package and any LO packages from my test system and reboot the machine.

I'm only using LO7 to see whether mailmerge, Base and macros still work and then only in a test system. In my production systems I still have Slackware 14.2 and LO 6.2.8.2. Don't intend to shift away from these anytime soon.

burning 08-19-2020 12:22 PM

Quote:

Originally Posted by aikempshall (Post 6157435)

I'm only using LO7 to see whether mailmerge, Base and macros still work and then only in a test system. In my production systems I still have Slackware 14.2 and LO 6.2.8.2. Don't intend to shift away from these anytime soon.

Thank you kindly for the explanation! :) Though I think I'll probably just try building the slackbuild without java support if OpenJDK isn't supported. And I'll have to make sure I'm installing an old enough version of LO that still runs on 32-bit systems. From the looks of it, both version of LibreOffice on Slackbuilds.org are for 64-bit systems. I've edited the version number of a slackbuild to use a more updated source before, but would the same thing work for editing the slackbuild to use an older source which is 32-bit when the build expects 64-bit?

aikempshall 08-20-2020 02:58 AM

Quote:

Originally Posted by burning (Post 6157507)
Thank you kindly for the explanation! :) Though I think I'll probably just try building the slackbuild without java support if OpenJDK isn't supported. And I'll have to make sure I'm installing an old enough version of LO that still runs on 32-bit systems. From the looks of it, both version of LibreOffice on Slackbuilds.org are for 64-bit systems. I've edited the version number of a slackbuild to use a more updated source before, but would the same thing work for editing the slackbuild to use an older source which is 32-bit when the build expects 64-bit?


I have a 32bit machine with P4 processor. It takes 26 hours to compile on that machine.

Obviously you must need a 32bit LO binary and LO are no longer supplying them, so your options are to use AlienBob's binaries or build your own.

Why do you need Java support?

Alex

coralfang 08-21-2020 10:41 PM

With alienbob's binaries i've been getting this the past week or so, and can't seem to get it working again. Any ideas how to fix that? I've tried linking libboost_locale.so to libboost_locale.so.1.73.0 etc.
Code:

> $ libreoffice                                                                                                                                           
/usr/lib64/libreoffice/program/soffice.bin: error while loading shared libraries: libboost_locale.so.1.73.0: cannot open shared object file: Error 40


Gnisho 08-21-2020 11:15 PM

coralfang, check Alien's slackbuilds for the boost-compat package. It was recently updated to cover boost 1.73.0 and installing it will get libreoffice going again.

mats_b_tegner 09-04-2020 01:16 PM

LibreOffice 7.0.1 was released on the 3rd of September:
https://blog.documentfoundation.org/...breoffice-701/
Edit 2020-09-06:
Eric "AlienBob" Hameleers has released 7.0.1 packages for -current:
https://bear.alienbase.nl/mirrors/pe.../ChangeLog.txt
https://bear.alienbase.nl/mirrors/pe...e/pkg/current/
https://bear.alienbase.nl/mirrors/pe...pkg64/current/

burning 09-08-2020 10:10 AM

Quote:

Originally Posted by aikempshall (Post 6157669)
I have a 32bit machine with P4 processor. It takes 26 hours to compile on that machine.

Obviously you must need a 32bit LO binary and LO are no longer supplying them, so your options are to use AlienBob's binaries or build your own.

Why do you need Java support?

Alex

Thanks. And I don't think I need java support per say, I just assumed it'd be better to have it than to not.

Quick question about AlienBOB's libreoffice packages;
http://slackware.uk/people/alien/sla...s/libreoffice/
Under Libreoffice, there are two pkg directories, pkg and pkg64, which seems to imply that the packages which are under pkg will be 32-bit, but in the pkg directory, they list version 6.4 and up for -14.2 and 7.0.1 for -current, but I thought that 6.2 was the last version of LO to support 32-bit?
Does the package listed for -current (7.0.1) work on 32-bit slackware?

Alien Bob 09-08-2020 10:16 AM

Quote:

Originally Posted by burning (Post 6163779)
I thought that 6.2 was the last version of LO to support 32-bit?
Does the package listed for -current (7.0.1) work on 32-bit slackware?

If you compile the sources, you can build 32bit binaries which is what I did. Probably the Document Foundation no longer releases official 32bit binaries, like Google with Chrome. But who cares about binaries compiled on a non-Slackware OS?
The libreoffice-7.0.1 package in ./pkg/current/ works on a 32bit Slackware-current. Of course these binaries will not work on Slackware 14.2 but with a bit of effort you can compile a 32bit libreoffice-7.0.1 package for Slackware 14.2 yourself.

burning 09-10-2020 02:53 PM

Quote:

Originally Posted by Alien Bob (Post 6163784)
If you compile the sources, you can build 32bit binaries which is what I did. Probably the Document Foundation no longer releases official 32bit binaries, like Google with Chrome. But who cares about binaries compiled on a non-Slackware OS?
The libreoffice-7.0.1 package in ./pkg/current/ works on a 32bit Slackware-current. Of course these binaries will not work on Slackware 14.2 but with a bit of effort you can compile a 32bit libreoffice-7.0.1 package for Slackware 14.2 yourself.

Ah, thank you :)
I'll get to work on this then!

edit: is it the .txz file I'd be needing then? Or is that a complete package? I'll be trying to build for -current on 32-bit

edit2: nvm, I re-read alienBob's post and realized his package should work. No need for me to build my own

drumz 09-10-2020 04:31 PM

Quote:

Originally Posted by burning (Post 6164563)
is it the .txz file I'd be needing then? Or is that a complete package? I'll be trying to build for -current on 32-bit

The *.txz file is binary Slackware package compiled by Alien Bob. To compile yourself look in the build (https://bear.alienbase.nl/mirrors/pe...eoffice/build/) directory. Also it would be good to browse his blog posts (https://alien.slackbook.org/blog/?s=libreoffice).

burning 09-11-2020 10:59 AM

For some reason, the package I installed from ./pkg/current/ for 7.0.1 doesn't seem to be working properly. For reference, I'm running slackware -current on a 32-bit machine.

Restarting my computer, I tried running libreoffice, I see the loading bar come up but then it just disappears almost as quickly as it came. Running it from the command line gives the error:
Code:

/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libboost_locale.so.1.74.0: cannot open shared object file: No such file or directory
I'd say I'd just try building from source but would that be likely to fix the error? Regardless, is there a semi-obvious fix for this?

thx


All times are GMT -5. The time now is 09:42 PM.