LinuxQuestions.org
Visit Jeremy's Blog.
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 05-08-2020, 01:53 AM   #1
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Rep: Reputation: Disabled
Building libreoffice-langpack with sbopkg


Hi all,

I am trying to build the SBo package libreoffice-langpack with sbopkg. As I would like to use the German language pack, I have added:

sbopkg -i libreoffice-langpack:LOLANG="de"

I have assumed already that it would not be able to download the source package so I have done that already in advance and placed it in /var/cache/sbopkg.

Still the Slackbuild first tries to download an build the English version and shortly afterwards it complains that it could not find the source file for the German langpack.

So my question is: am I missing something? Is there a way to build a language specific libreoffice-langpack using sbopkg?

Greetings

Lioh
 
Old 05-08-2020, 01:44 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
It downloads the english version since that is what is linked in the SlackBuild, but it should try and build with the de version. My guess is you need to move the downloaded file to /var/lib/sbopkg/SBo/14.2/office/libreoffice-langpack/ instead of /var/cache/sbopkg/. That folder is where sbopkg checks for downloaded files and then moves them to where they need to be, but this is a unique case since the file isn't downloaded by sbopkg, so it doesn't know it needs to move it.

Normally, this file would be downloaded to the same directory you run the SlackBuild from, but sbopkg works differently. Due to this, it would be impossible to edit the README to explain where to put the file since it is likely a different location for each SBo building program (sbopkg, sbotools, etc).
 
Old 05-09-2020, 12:55 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
Please read the README. It's already mentioned there
 
Old 05-09-2020, 01:37 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by willysr View Post
Please read the README. It's already mentioned there
The README doesn't cover running it in the various tools like sbopkg. It's understandable to be a bit confused about where to put the file if you're not familiar with the structure those tools use.

It's also understandable that the README doesn't provide instructions on where to put the downloaded file for [insert your favorite tool here].
 
Old 05-09-2020, 11:26 PM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,680

Rep: Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796Reputation: 1796
well, it's meant for SBo usage, not for third party
 
Old 05-09-2020, 11:54 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by willysr View Post
well, it's meant for SBo usage, not for third party
My point was that OP had downloaded the German language pack because they did read the README... but they just didn't know where to put the file so sbopkg would pick it up. Reading the README won't help with that part.
 
Old 05-15-2020, 06:25 AM   #7
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Original Poster
Rep: Reputation: Disabled
That's funny because /var/cache/sbopkg works with nearly any other package (e.g. jdk where one has to do it like that because Oracle restricts the download). Just for the libreoffice-langpack and helppack it doesn't. Btw. /var/lib/sbopkg/SBo-git/office/libreoffice-langpack/ gets overwritten and cleared on every one. No sources are picked up from that here.

I can understand that @willysr does not want to put any effort into it, I was just asking because it's a little bit inconvenient to manually build the packages (no problem, though)
 
Old 05-15-2020, 10:09 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by lioh View Post
That's funny because /var/cache/sbopkg works with nearly any other package (e.g. jdk where one has to do it like that because Oracle restricts the download). Just for the libreoffice-langpack and helppack it doesn't. Btw. /var/lib/sbopkg/SBo-git/office/libreoffice-langpack/ gets overwritten and cleared on every one. No sources are picked up from that here.
The reason is because sbopkg downloads the sources listed in the .info to /var/cache/sbopkg/ and then copies them over to /var/lib/sbopkg/SBo-git/$CATEGORY/$PROGRAM/ before cd'ing to the directory and running the SlackBuild.

The problem in this case is that sbopkg doesn't know about the DE language pack. It isn't listed in the .info file, so it only copies over what it knows is needed by the SlackBuild, which is the English pack. When it cd's to the directory and runs the SlackBuild, the DE language pack isn't in the directory, so you get your error. Any other languages will need to be copied manually to /var/lib/sbopkg/SBo-git/office/libreoffice-langpack/ before having sbopkg build the package.

This location is unique to sbopkg (and other building tools would have their own unique locations), so it is not warranted to put that in the README on SBo.
 
Old 05-15-2020, 10:43 AM   #9
lioh
Member
 
Registered: Aug 2019
Location: Switzerland
Distribution: Slackware
Posts: 194

Original Poster
Rep: Reputation: Disabled
@bassmadrigal thanks for making that clear.
 
  


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
Unable to build LibreOffice with sbopkg mfoley Slackware 30 08-30-2020 09:14 PM
[SOLVED]Building gnucash via sbopkg on Slackware 64 14.2 multios Slackware 12 01-28-2017 04:49 PM
Sbopkg : building a queue file with CFLAGS and CXXFLAGS set. Linux.tar.gz Slackware 4 03-11-2012 10:24 PM
[SOLVED] Compile error when building SBOPKG for libsoup vdemuth Slackware 2 01-02-2011 01:35 PM
Openoffice Langpack integration with source sailajabhandaru Linux - Software 0 11-08-2005 11:19 PM

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

All times are GMT -5. The time now is 06:04 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
Open Source Consulting | Domain Registration