SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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].
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.