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 04-21-2017, 01:47 AM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Rep: Reputation: 177Reputation: 177
Unable to build LibreOffice with sbopkg


sbopkg -c indicates there is a new version of LibreOffice available. I ran `sqg -p libreoffice` to build the queue, then ran `sbopkg -i LibreOffice`. I got the following messages:
Code:
Found jdk-8u121-linux-x64.tar.gz in /var/cache/sbopkg.
Checking MD5SUM:
  MD5SUM check for jdk-8u121-linux-x64.tar.gz ... FAILED!
    Expected: 91972fb4e753f1b6674c2b952d974320
    Found:    81ee08846975d4b8d46acf3b6eddf103

Do you want to use the downloaded jdk source:
jdk-8u121-linux-x64.tar.gz in /var/cache/sbopkg?

You can choose among the following options:
 - (Y)es, keep the source and continue the build process;
 - (N)o, delete the source and abort the build process;
 - (R)etry download and continue the build process; or
 - (A)ttempt to download from third party source repository.
(Y)es, (N)o, (R)etry, (A)lternative ?: Y
    Keeping the source and continuing.
Building package for jdk...

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

jdk:
Would you like to continue processing the rest of the
queue or would you like to abort?  If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:
What does this mean? is the repo version of jdk corrupt?

more info after further investigation ...

The /var/cache/sbopkg/jdk-8u121-linux-x64.tar.gz file isn't a gzip file. It's an html file with the following content:
Code:
Sorry!

   In order to download products from Oracle Technology Network you must agree to the OTN license terms.
   Be sure that...
   Your browser has "cookies" and JavaScript enabled.
   You clicked on "Accept License" for the product you wish to download.
   You attempt the download within 30 minutes of accepting the license.
   From here you can go...
So, how then does one retrieve a file for which license terms must be agreed to?

Last edited by mfoley; 04-21-2017 at 01:53 AM.
 
Old 04-21-2017, 02:10 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
I'm guessing you haven't read the README
Quote:
You must Agree to Oracle's download agreement before this can be downloaded.
This means you have to use a web browser to download it. Sorry wget folks.
 
Old 04-21-2017, 05:09 AM   #3
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
This problem with using wget for downloading the Oracle JDK is why I've changed the requirement in LibreOffice (not libreoffice being discussed here) to openjdk (openjdk8 works too). These don't need user intervention via a web browser so are great for automated build systems.

I later did test builds of all SBo packages requiring jdk but substituting openjdk8; all SlackBuilds except office/ganttpeoject built perfectly well using openjdk8. I'd recommend all maintainers of SlackBuilds requiring jdk to satisfy for themselves that openjdk8 is OK and perhaps change their SlackBuilds' requirement.

chris
 
2 members found this post helpful.
Old 04-21-2017, 08:07 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
jdk is not a required dependency for libreoffice, you could just disable it in the build script.
 
1 members found this post helpful.
Old 04-21-2017, 08:44 AM   #5
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
mfoley, you need to be very careful. 'libreoffice' and 'LibreOffice' are two different SlackBuilds. 'libreoffice' packages the official upstream binary, whereas 'LibreOffice' builds from source.

So, if what you really did is exactly what you wrote:

Quote:
Originally Posted by mfoley View Post
I ran `sqg -p libreoffice` to build the queue, then ran `sbopkg -i LibreOffice`
then you built a queue for one package, then ran a different build. You need to be consistent. You probably want 'libreoffice'.
 
3 members found this post helpful.
Old 04-21-2017, 09:10 AM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by chris.willing View Post
This problem with using wget for downloading the Oracle JDK is why I've changed the requirement in LibreOffice (not libreoffice being discussed here) to openjdk (openjdk8 works too). These don't need user intervention via a web browser so are great for automated build systems.
Yikes!!!! LibreOffice and libreoffice are different?!! I thought those package names were case insensitive. Why is there a LibreOffice and a libreoffice? How do I get libreoffice off my system? Running `slackpkg remove libreoffice` gives me "The file(s) libreoffice can't be removed - package not installed." Yet it gave me a success message after the installation.

I'd also like to get the jdk off my system, but:
Code:
# ls /var/log/packages/ | grep jdk
jdk-8u121-x86_64-1_SBo

# slackpkg remove jdk-8u121-x86_64-1_SBo

Looking for jdk-8u121-x86_64-1_SBo in package list. Please wait... DONE

The file(s) jdk-8u121-x86_64-1_SBo can't be removed - package not installed.
Have I trashed my system?

Last edited by mfoley; 04-21-2017 at 09:17 AM.
 
Old 04-21-2017, 09:32 AM   #7
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by mfoley View Post
Yikes!!!! LibreOffice and libreoffice are different?!! I thought those package names were case insensitive. Why is there a LibreOffice and a libreoffice?
As is normal with Unix, case is important. If you read the READMEs for both, your question about the difference will be answered.

Quote:
Originally Posted by mfoley View Post
How do I get libreoffice off my system? Running `slackpkg remove libreoffice` gives me "The file(s) libreoffice can't be removed - package not installed." Yet it gave me a success message after the installation.
You created a build queue for libreoffice but then attempted to install LibreOffice. In the end, nothing was installed.

Quote:
Originally Posted by mfoley View Post
I'd also like to get the jdk off my system, but:
Code:
# ls /var/log/packages/ | grep jdk
jdk-8u121-x86_64-1_SBo

# slackpkg remove jdk-8u121-x86_64-1_SBo

Looking for jdk-8u121-x86_64-1_SBo in package list. Please wait... DONE

The file(s) jdk-8u121-x86_64-1_SBo can't be removed - package not installed.
Have I trashed my system?
I think what you did should work unless the package is corrupt, but maybe try either of these and see if there's any difference:

Code:
slackpkg remove jdk
or

Code:
removepkg /var/log/packages/jdk-8u121-x86_64-1_SBo

Last edited by montagdude; 04-21-2017 at 09:40 AM.
 
Old 04-21-2017, 09:59 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I just bonce over to Alien Bobs and get the pre-compiled one I need.

http://www.slackware.com/~alien/slac...s/libreoffice/
 
Old 04-21-2017, 10:32 AM   #9
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Quote:
Originally Posted by montagdude View Post
As is normal with Unix, case is important. If you read the READMEs for both, your question about the difference will be answered.
Actually, I've read the READMEs for both and it doesn't tell me the difference -- at least as far as I can understand. In fact the page for libreoffice references LibreOffice and 5.3.2 throughout. So, not obvious -- at least to me.
Quote:
You created a build queue for libreoffice but then attempted to install LibreOffice. In the end, nothing was installed.
OK, I can live with that explanation.
Quote:
I think what you did should work unless the package is corrupt, but maybe try either of these and see if there's any difference:

Code:
slackpkg remove jdk
or

Code:
removepkg /var/log/packages/jdk-8u121-x86_64-1_SBo
Well, the `remove jdk` didn't work. The remove of the full path gave me:
Code:
# slackpkg remove /var/log/packages/jdk-8u121-x86_64-1_SBo
:
:
Total package(s): 723

Do you wish to remove selected packages (Y/n)? y

Package: GConf-3.2.6-x86_64-3
        Removing...

Removing package /var/log/packages/GConf-3.2.6-x86_64-3...
Removing files:
  --> Deleting symlink /usr/lib64/libgconf-2.so
  --> Deleting symlink /usr/lib64/libgconf-2.so.4
  --> Deleting /etc/dbus-1/system.d/org.gnome.GConf.Defaults.conf
  --> /etc/gconf/2/evoldap.conf.new no longer exists. Skipping.
  --> /etc/gconf/2/path.new no longer exists. Skipping.
  --> Deleting /etc/xdg/autostart/gsettings-data-convert.desktop
  --> Deleting /usr/bin/gconf-merge-tree
  --> Deleting /usr/bin/gconftool-2
  --> Deleting /usr/bin/gsettings-data-convert
  --> Deleting /usr/bin/gsettings-schema-convert
  --> Deleting /usr/doc/GConf-3.2.6/AUTHORS
  --> Deleting /usr/doc/GConf-3.2.6/COPYING
  --> Deleting /usr/doc/GConf-3.2.6/ChangeLog
  --> Deleting /usr/doc/GConf-3.2.6/NEWS
  --> Deleting /usr/doc/GConf-3.2.6/README
  --> Deleting /usr/doc/GConf-3.2.6/TODO
  --> Deleting /usr/include/gconf/2/gconf/gconf-changeset.h
^C
which appeared to want to remove ALL packages in my system. I did the CTRL-C as it was working on the first one and I reinstalled GConf-3.2.6-x86_64-3. So, that was not a good idea. I guess I'll not worry about it, though the java jdk is huge and if I don't need it it would be nice to get rid of it, but apparently slackpkg doesn't know how to do that. I now have several jdk's installed:
Code:
/usr/lib64/java/bin/javac
/usr/lib64/jvm/bin/javac
/usr/lib/java/bin/javac
and that may or may not include the openjdk for LibreOffice.
 
Old 04-21-2017, 12:52 PM   #10
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,539

Original Poster
Rep: Reputation: 177Reputation: 177
Mystery solved. I had to unblacklist SBo packages for the slackpkg remove to work.
 
Old 04-21-2017, 01:31 PM   #11
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 mfoley View Post
Mystery solved. I had to unblacklist SBo packages for the slackpkg remove to work.
Just as an FYI, you don't need to use slackpkg to remove packages. You can simply type removepkg jdk to remove it. slackpkg is an online aware component of pkgtools (that was added into official Slackware in 12.2, but was available in extra/ since 9.1), but it really shines in ensuring your Slackware is up-to-date with the mirrors. While it does incorporate other aspects of pkgtools (installing and removing packages), personally, I stick to the singular scripts (installpkg and removepkg) most of the time because it won't be affected by any blacklist you have for slackpkg.
 
1 members found this post helpful.
Old 04-21-2017, 05:17 PM   #12
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 914

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by orbea View Post
jdk is not a required dependency for libreoffice, you could just disable it in the build script.
Please read https://slackbuilds.org/guidelines/ which includes the following
Quote:
REQUIRES contains a space-separated list of all required build-time and run-time dependencies, each named exactly as listed on the SlackBuilds.org site. It should not contain anything that is part of Slackware itself. The content of REQUIRES should only be first level dependencies (i.e. no deps of deps).

Optional dependences should not be listed in REQUIRES - they should still be listed in the README (and preferably will list what feature the optional dependency provides). If the maintainer feels that a dependency is, while techically optional, strongly recommended enough to require it, that is generally acceptable - we'll retain veto power on that but we expect that it won't be an issue.
So although you are correct that jdk (openjdk, openjdk8) is not necessary to build libreoffice from the SlackBuild (which just repackages existing binaries), it is still there because it is a potential runtime requirement. Perhaps your particular usage of libreoffice doesn't need it but who's to say whether your usage is typical. It's the maintainer's decision as to whether a techically (sic) optional but strongly recommended requirement is included.

chris
 
1 members found this post helpful.
Old 04-21-2017, 08:39 PM   #13
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
I've told you this before, but apparently you haven't listened. The only required dependency for libreoffice is perl-archive-zip. Everything else should be left up to the user's discretion, especially proprietary software like jdk. So since you will not correctly inform users I guess I can do it for you...

Also, the precompiled binary libreoffice package will complain if jdk is not installed, but will still work fine. Willy was kind enough to provide this in his script so users can disable it if desired.

Code:
# If you want to disable java support by removing executable permissions
# form LibreOffice's java loader (this will not affect other apps), set this
# variable to "YES"   Default is "NO"
DISABLE_JAVA=${DISABLE_JAVA:-NO}
https://slackbuilds.org/slackbuilds/...ice.SlackBuild
 
1 members found this post helpful.
Old 04-21-2017, 09:08 PM   #14
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
Orbea: Some clarification: That's previous maintainer's work, not mine
 
1 members found this post helpful.
Old 04-21-2017, 09:14 PM   #15
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 orbea View Post
I've told you this before, but apparently you haven't listened. The only required dependency for libreoffice is perl-archive-zip. Everything else should be left up to the user's discretion...
No, everything on the REQUIRES line is left to the maintainer's discretion. That's the SBo policy. If you don't like it, then maybe take it up on the mailing list and see if you can get some admins on board who might be willing to change it.

As a maintainer, you are able to add optional dependencies is the REQUIRES section if you feel like the software should have the features it provides. It is up to users to remove any dependencies they don't want (just like it is up to them to add features based on flags and/or additional dependencies).
 
1 members found this post helpful.
  


Reply

Tags
fail, sbopkg, slackbuilds


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
Can't get GT5 to build from SlackBuilds or with sbopkg TarFile Slackware 16 04-20-2016 11:47 AM
[SOLVED] SBo + sbopkg, qt5 build parallel a4z Slackware 3 10-12-2014 11:54 AM
SBOPKG(8) not list/show/build dependencies of SlackBuild scripts to build Slackware p xavi_slacky Slackware 3 06-13-2013 07:53 PM
[SOLVED] Cannot build wxPython from sbopkg arubin Slackware 12 10-08-2012 06:22 PM
LXer: Build Your Business Around LibreOffice, LibreOffice Certification Program Announced LXer Syndicated Linux News 0 05-07-2012 12:10 PM

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

All times are GMT -5. The time now is 07: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