LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-08-2018, 06:04 PM   #16
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 323

Rep: Reputation: 121Reputation: 121

Whoa, new posts, 2 years later! Guess that's how long it takes to build LO from source...
 
Old 08-17-2018, 04:12 AM   #17
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 900

Rep: Reputation: 195Reputation: 195
Thanks for this script orbea, which I have just used to successfully build LibreOffice 6.0.6.2. Using the following parameters:

Code:
time SYSTEM_LIBS="no" TMP="/tmp/ads" NUMBJOBS="16" CCACHE="no" ./libreoffice.SlackBuild
the elapsed time was not too painful:

Code:
Slackware package /tmp/libreoffice-6.0.6.2-x86_64-1_orb.tgz created.


real	420m20.030s
user	393m12.531s
sys	31m33.578s
So it is a comfortable overnight compile next time . Only small issue was when I also specified:
Code:
LANGUAGES="en-GB"
This failed early in the piece with the following message:

Code:
configure: error: invalid language: ''en-GB'' (vs ''); supported languages are: en-US
af am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de dgo dz el en-GB [...}
(I have omitted the full list of available languages). I will dig a little deeper and see if I have missed something obvious here...

And thanks again!
 
Old 08-17-2018, 04:53 AM   #18
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,576

Rep: Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093Reputation: 1093
Quote:
Originally Posted by andrew.46 View Post
Thanks for this script orbea, which I have just used to successfully build LibreOffice 6.0.6.2. Using the following parameters:

Code:
time SYSTEM_LIBS="no" TMP="/tmp/ads" NUMBJOBS="16" CCACHE="no" ./libreoffice.SlackBuild
the elapsed time was not too painful:

Code:
Slackware package /tmp/libreoffice-6.0.6.2-x86_64-1_orb.tgz created.


real	420m20.030s
user	393m12.531s
sys	31m33.578s
So it is a comfortable overnight compile next time . Only small issue was when I also specified:
Code:
LANGUAGES="en-GB"
To be honest, for this information to be meaningful, it should be assorted with some hardware specs. E.g.
Quote:
the elapsed time was not too painful while using my Intel Personal SuperComputer, with 64 Xeon cores at 5GHz, 512GB 3000Mhz DDR4 and 4 Xeon Phi units for off-loading, which consumes only 5KW/h on full load.

Last edited by Darth Vader; 08-17-2018 at 06:41 AM.
 
1 members found this post helpful.
Old 08-17-2018, 05:02 AM   #19
Petri Kaukasoina
Member
 
Registered: Mar 2007
Posts: 339

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by andrew.46 View Post

Code:
time SYSTEM_LIBS="no" TMP="/tmp/ads" NUMBJOBS="16" CCACHE="no" ./libreoffice.SlackBuild
Code:
real	420m20.030s
user	393m12.531s
sys	31m33.578s
You compiled it using only one core. Try spelling NUMJOBS correctly next time.

Last edited by Petri Kaukasoina; 08-17-2018 at 05:05 AM.
 
2 members found this post helpful.
Old 08-17-2018, 09:13 AM   #20
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,289

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by andrew.46 View Post
So it is a comfortable overnight compile next time . Only small issue was when I also specified:
Code:
LANGUAGES="en-GB"
This failed early in the piece with the following message:

Code:
configure: error: invalid language: ''en-GB'' (vs ''); supported languages are: en-US
af am ar as ast be bg bn bn-IN bo br brx bs ca ca-valencia cs cy da de dgo dz el en-GB [...}
(I have omitted the full list of available languages). I will dig a little deeper and see if I have missed something obvious here...

And thanks again!
To be honest I haven't tested the languages very much, but I'll take a look at this later to see if I can reproduce it.
 
1 members found this post helpful.
Old 08-17-2018, 11:28 AM   #21
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,289

Original Poster
Rep: Reputation: Disabled
I see the problem, I think this is essentially a libreoffice bug.

I set $languages to "--with-lang='$LANGUAGES'", but libreoffice's configure will fail there. Instead it will work with "--with-lang=en-GB" or "--with-lang=en-US" without the extra quotes. Unfortunately this will fail if more than one language is set, like LANGUAGES="en-US en-GB" due to obvious word splitting.

I took a look at Alien Bob's script and came up with a similar workaround where $languages does not contain the "--with-lang=" and forced pushed this to my staging branch (Helps avoid the temptation to force push to master...). This also helps simplify the logic, thanks for the report!

Code:
diff --git a/office/libreoffice/libreoffice.SlackBuild b/office/libreoffice/libreoffice.SlackBuild
index 8f3ab46..ec68fb3 100644
--- a/office/libreoffice/libreoffice.SlackBuild
+++ b/office/libreoffice/libreoffice.SlackBuild
@@ -117,9 +117,8 @@ case "${HELP:-0}" in
 esac

 case "${LANGUAGES:=en-US}" in
-  [aA][lL][lL] ) languages='--with-lang=ALL' ;;
-  [eE][nN][-_][uU][sS] ) languages='--with-lang=en-US' ;;
-  *[![:space:]]*|*[[:space:]]* ) languages="--with-lang='$LANGUAGES'" ;;
+  [aA][lL][lL] ) languages='ALL' ;;
+  *[![:space:]]*|*[[:space:]]* ) languages="$LANGUAGES" ;;
   * ) languages= ;;
 esac

@@ -423,6 +422,7 @@ CXXFLAGS="$SLKCFLAGS" \
   --with-build-version="Built on $(cat /etc/slackware-version)" \
   --with-vendor="$(grep MAINTAINER $CWD/$PRGNAM.info | cut -c13- | tr -d '\"')" \
   --with-alloc=system \
+  --with-lang="$(printf %s "$languages" | tr _ -)" \
   --enable-release-build \
   --without-krb5 \
   --without-gssapi \
@@ -430,7 +430,6 @@ CXXFLAGS="$SLKCFLAGS" \
   --without-junit \
   --with-parallelism="${NUMJOBS:-1}" \
   --build=$ARCH-slackware-linux \
-  $languages \
   $theme \
   $webdav \
   "$@"
 
2 members found this post helpful.
Old 08-17-2018, 11:53 AM   #22
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 430

Rep: Reputation: 284Reputation: 284Reputation: 284
What's your type of hardware to build libreoffice from source?

Thanks in advance for your answer.
 
Old 08-17-2018, 12:02 PM   #23
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,289

Original Poster
Rep: Reputation: Disabled
I have an AMD FX-6350 6-core cpu where I use NUMJOBS=4. This takes roughly 2 hours with a default build and a bit longer with no system libraries, but when rebuilding with a large enough ccache (5 GB without debugging symbols) I have seen the entire build finish in around 20 minutes.
 
1 members found this post helpful.
Old 08-17-2018, 12:29 PM   #24
nobodino
Member
 
Registered: Jul 2010
Location: in France
Distribution: slackware, slackware from scratch, LFS, linux Mint, Niresh (MacOS)...
Posts: 430

Rep: Reputation: 284Reputation: 284Reputation: 284
And how much RAM?
 
Old 08-17-2018, 12:39 PM   #25
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,289

Original Poster
Rep: Reputation: Disabled
8 GB, this is kind of on the low side and it would be better if I could use a bigger tmpfs which I set to 4 GB which is not large enough to build libreoffice...
 
1 members found this post helpful.
Old 08-17-2018, 06:36 PM   #26
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 900

Rep: Reputation: 195Reputation: 195
Thanks orbea for the fix and thanks to Petri who pointed out my inglorious typo of 'NUMBJOBS'! And for Darth a few more details:

Processor: AMD FX(tm)-8350 Eight-Core Processor
RAM: 16GiB
Command line:

Code:
time SYSTEM_LIBS="no" TMP="/tmp/ads" NUMJOBS="16" CCACHE="no" LANGUAGES="en-GB" ./libreoffice.SlackBuild
TimeTaken:

Code:
real	81m47.139s
user	559m40.463s
sys	33m30.590s
Computer ran a little hot with this one but now a pretty reasonable compile time
 
2 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Alien Bob's Libreoffice 4.3.0.4 slackbuild AlleyTrotter Slackware 1 08-06-2014 04:53 PM
[SOLVED] LibreOffice-4.2.3 slackbuild error on new KDE integration split off frushiyama Slackware 2 04-22-2014 06:03 PM
office/libreoffice SlackBuild scripts is old ? xavi_slacky Slackware 24 06-19-2013 07:47 AM
[SOLVED] LibreOffice SlackBuild (from SBO) Missing Files? tronayne Slackware 4 03-29-2013 12:50 PM
LibreOffice.SlackBuild in RAM? Konphine Slackware 12 02-18-2012 01:14 PM

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

All times are GMT -5. The time now is 12:02 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration