[SOLVED] failed 'jdk' slackbuild killing several slackbuilds
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.
failed 'jdk' slackbuild killing several slackbuilds
I recently reinstalled slack 14.2. Trying to recreate the slackbuilds I use, including libreoffice and scilab, I run into a wall because there simply ARE NO MORE 'jdk' suites. Oracle has gone to other frameworks. This means several slackbuild scripts simply no longer work, because the 'jdk' slackbuild fails.
Trying to build, as an alternative, "Libre Office6.1.3.2" is a labyrinth of tedious misdirection, too confusing to even inspire one to begin, unless one has a fetish for complex software. 'openjdk' likewise is not friendly to those who would try to recreate a 'jdk' option.
The result is a typical linux embroglio, one piece of software goes missing, which creates a chain-reaction of multiple failures across the spectrum of highly used programs - such as good office software - now unavailable to many who didn't get the timing right.
Robby Workman has provided us with many very useful pieces of software (several good slackbuilds). He may be very busy or ill. I would certainly hope that he - or someone with similar skills (not me, I'm just too old and cranky) can resurrect a working form of 'jdk' and its interface with a working form of 'libreoffice'.
Right now, there are no slackbuilds for libreoffice (and others) which are workable for a non-guru.
Please do not point to 'openJdk' and 'LibreOffice6.1.3.2' as solutions, and call this problem 'solved'. These are not solutions, except for the very few expert programmers.
So is this one of those threads where you rant and preemptively reject solutions while providing no information about the problems you are actually encountering? I have built openjdk with no issues and without needing to be a programmer to do it. What problems are you having with building it?
You can modify the java.Slackbuild script for use with Java 8 (either JRE or JDK). As far as I can remember there is one place in this script where you will have to update the version string to "8u191".
The Java 8 *.tar.gz tarballs are still available on the oracle website. Download and place the downloaded tarball in the directory with the updated Slackbuild script, and you should be good to go for creating a package for Java 8.
---------
I should add that I was referring to the java.Slackbuild script found in the extra/java directory of Slackware. That is the one that I typically use.
Last edited by regis_n_bits; 12-17-2018 at 07:02 PM.
Reason: Added info about the slackbuild script used.
Does your use of LibreOffice necessarily entail any of its java components (typically database components)? As some here have often been keen to point out, building LibreOffice without Java support is possible. As mentioned in its README file, the LibreOffice.SlackBuild (the build from source version) enables this by setting JAVA=no when you run the script i.e.
Code:
JAVA=no sh ./LibreOffice.SlackBuild
Also, although I haven't tried this myself, you could probably use the libreoffice.SlackBuild (the simpler repackaging version - note its lowercase name). The repackaging itself certainly doesn't need a jdk, which is purely a runtime requirement - but only for some components. If you're not using those components then it shouldn't matter that you don't have any java installed.
There are also downloads, as Chris.Willing ponts out, of LibreOffice that don't require you to compile against Java. For intance, use rpm2txz on an RPM from https://www.libreoffice.org/download/download/ and you're up and running.
I've never used Scilab, so no data there. But with one of the JDKs listed above, it seems like it ought to work. Certainly I've tested all those JDKs against, for instance, Linux Sampler with success.
Man, I don't know much about much and I just the other day agreed to Oracle's terms and downloaded jdk then used a slackbuild without a problem. My biggest problem was negotiating their confusing (for me) website
*******************************************************************************
* YOU MUST AGREE TO ORACLE'S DOWNLOAD AGREEMENT BEFORE YOU CAN DOWNLOAD THE *
* JDK BINARY PACKAGE FROM THEM. THIS MEANS THAT YOU HAVE TO USE SOME SORT OF *
* WEB BROWSER, E.G. FIREFOX, TO DOWNLOAD IT. LINKS, WGET, ET AL WILL NOT WORK *
*******************************************************************************
You can't use automated tools to build jdk because Oracle requires you to agree to its license terms before you can download it. This causes all automated tools to fail to download it, which will cause them to fail to build it (which then causes that cascade failure you mentioned).
I just checked, and the download still works fine. You can go to Oracle's site by visiting the Homepage link on SBo, then select JDK8 downloads, then click on the "Accept License Agreement" radio button and finally, click your download link (64bit and 32bit -- these links won't work until the license agreement is accepted). You can then either save the file to your automated tool's source directory or manually run the SlackBuild to generate the package.
Last edited by bassmadrigal; 12-18-2018 at 11:42 AM.
Reason: Added direct links, and the requirement of accepting the license before downloading
I recently reinstalled slack 14.2. Trying to recreate the slackbuilds I use, including libreoffice and scilab, I run into a wall because there simply ARE NO MORE 'jdk' suites. Oracle has gone to other frameworks. This means several slackbuild scripts simply no longer work, because the 'jdk' slackbuild fails.
What version of the JDK are you attempting to package? That's rather important to know.
BTW, as a side note, Oracle will continue to support java 8 until january 2019, then it will stop and move on the upper, somewhat incompatible, versions.
but, and this is a pretty recent development, seems like Amazon will step in providing a long term support java distribution compatible with java 8
Well, sorry for my absence. That was rude but unavoidable.
I am trying to build the current download for 'libreoffice' SBo, which requires 'jdk' SBo (jdk 8u192). In the past this has worked for me, but I was not smart enuf to save the jdk source before reinstalling Slack 14.2. Now, despite all the attempts at help (thank you), I still cannot get Oracle to permit a download. I am (and have been) well aware of the Oracle 'download agreement', but I have been unable to even find a place to 'accept the license agreement'.
Referring to bassmadrigal's helpful post below, I must be ignorant, but I cannot find any 'link' on SBo that leads to the 'Accept License Agreement' 'radio button'. When I substitute the path below, it just gives me an Oracle page, with no apparent links or buttons as described. It lists a bunch of 'jdk download links', and all they do is pop up a page with NO SUCH RADIO BUTTON, and no hints that I can see. Just an empty dialog box.
All of this is what I experienced late in 2018, and has not changed as of Jan 6, 2019.
I'm reluctant to get into the 'openJdk' SBo build, which quotes a processing time of '2 hours', and am unwilling to go thru that knothole just to find out it failed.
I am thankful for the suggestions, but I cannot make them work. The 'direct download' from Oracle mentioned in one reply just goes to the same empty page.
If anyone can see what simple dufuss error I am making (wouldn't be the first time!), I would be most grateful to have it pointed out.
*******************************************************************************
* YOU MUST AGREE TO ORACLE'S DOWNLOAD AGREEMENT BEFORE YOU CAN DOWNLOAD THE *
* JDK BINARY PACKAGE FROM THEM. THIS MEANS THAT YOU HAVE TO USE SOME SORT OF *
* WEB BROWSER, E.G. FIREFOX, TO DOWNLOAD IT. LINKS, WGET, ET AL WILL NOT WORK *
*******************************************************************************
You can't use automated tools to build jdk because Oracle requires you to agree to its license terms before you can download it. This causes all automated tools to fail to download it, which will cause them to fail to build it (which then causes that cascade failure you mentioned).
I just checked, and the download still works fine. You can go to Oracle's site by visiting the Homepage link on SBo, then select JDK8 downloads, then click on the "Accept License Agreement" radio button and finally, click your download link (64bit and 32bit -- these links won't work until the license agreement is accepted). You can then either save the file to your automated tool's source directory or manually run the SlackBuild to generate the package.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.