LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-18-2020, 12:47 PM   #121
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

That's for the installed package. Compiling it requires much more disk space.
 
1 members found this post helpful.
Old 08-18-2020, 02:25 PM   #122
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Quote:
Originally Posted by Tonus View Post
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?
 
Old 08-19-2020, 02:58 AM   #123
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
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.
 
2 members found this post helpful.
Old 08-19-2020, 07:18 AM   #124
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post
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?
 
Old 08-19-2020, 08:23 AM   #125
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by burning View Post
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.
 
1 members found this post helpful.
Old 08-19-2020, 12:22 PM   #126
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post

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?

Last edited by burning; 08-19-2020 at 12:24 PM.
 
Old 08-20-2020, 02:58 AM   #127
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Quote:
Originally Posted by burning View Post
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
 
1 members found this post helpful.
Old 08-21-2020, 10:41 PM   #128
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
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
 
1 members found this post helpful.
Old 08-21-2020, 11:15 PM   #129
Gnisho
Member
 
Registered: Aug 2012
Location: WA
Distribution: slackware
Posts: 73

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 09-04-2020, 01:16 PM   #130
mats_b_tegner
Member
 
Registered: Nov 2009
Location: Gothenburg, Sweden
Distribution: Slackware
Posts: 946

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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/

Last edited by mats_b_tegner; 09-06-2020 at 10:45 AM.
 
1 members found this post helpful.
Old 09-08-2020, 10:10 AM   #131
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Quote:
Originally Posted by aikempshall View Post
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?
 
Old 09-08-2020, 10:16 AM   #132
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by burning View Post
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.
 
1 members found this post helpful.
Old 09-10-2020, 02:53 PM   #133
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by Alien Bob View Post
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

Last edited by burning; 09-11-2020 at 10:39 AM.
 
Old 09-10-2020, 04:31 PM   #134
drumz
Member
 
Registered: Apr 2005
Location: Oklahoma, USA
Distribution: Slackware
Posts: 906

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Quote:
Originally Posted by burning View Post
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).
 
2 members found this post helpful.
Old 09-11-2020, 10:59 AM   #135
burning
Member
 
Registered: Jan 2020
Location: Canada
Distribution: Slackware
Posts: 273

Rep: Reputation: Disabled
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
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: LibreOffice 4.4 Released as the Most Beautiful LibreOffice Ever LXer Syndicated Linux News 0 01-30-2015 01:10 AM
LXer: LibreOffice vs. OpenOffice: Why LibreOffice Wins LXer Syndicated Linux News 0 10-29-2014 10:50 AM
How to install only Writer from Libreoffice package"libreoffice-4.0.3-i486-1alien.txz just.srad Slackware 10 05-30-2013 02:37 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM
LXer: LibreOffice Tips: Inserting QurĂ¢??an text in LibreOffice Writer LXer Syndicated Linux News 0 04-16-2012 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration