LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Building openjdk fails (https://www.linuxquestions.org/questions/slackware-14/building-openjdk-fails-4175620645/)

eindemwort 01-01-2018 06:25 AM

Building openjdk fails
 
Hello,

I am using Slackware 14.2, and KDE.
I want to install openjdk. I have already installed apache-ant successfully.
I get the error just one or two minutes after executing the slackbuild script - I run the command
Code:

TMP=../tmp ./openjdk.SlackBuild
The error I get is:

Code:

mv stamps/patch.stamp.tmp stamps/patch.stamp
Checking patches/rh1022017.patch
Invalid file name openjdk/jdk/src/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java -- skipping patch
ERROR patch patches/rh1022017.patch FAILED!
WARNING make clean-patch before retrying a fix
Makefile:2157: recipe for target 'stamps/patch.stamp' failed
make: *** [stamps/patch.stamp] Error 2

I doubled checked that I do have installed the required packages, which according to slackbuilds.org is only apache-ant - even though I am not sure this Error is related to apache-ant.

I have also updated all my packages just in case I was missing some required version, but the problem is still there.

Has anybody gotten this error in the past?

Thanks!

PD By the way, Happy new Year!

Darth Vader 01-01-2018 06:29 AM

Just use the AlienBOB's OpenJDK shipped binary packages, and be happy: https://slackware.nl/people/alien/slackbuilds/openjdk/

Anyway, if you believe that the Slackware way to install custom packages is to build them from sources, you are terrible mistaken.

Slackware in NOT like the Gentoo, if you do not noticed already. ;)

PS. Your thread title create (intentionally?) confusion, because you do not talk about installing of an OpenJDK package, but about building it from sources, which is not a trivial task. :p

montagdude 01-01-2018 06:53 AM

Does it work if you do not set the TMP environment variable? I just built openjdk on Slackware64-14.2 yesterday without issue.

Edit: did you also ensure you downloaded all the source files for openjdk (there are many) and that the md5sums are correct?

eindemwort 01-01-2018 06:53 AM

Thanks for the hint DarthVader
I am simply new to Slackware maybe, but the docs I have read where talking about using slackbuild scripts - which I found interesting but yes... not comfortable.
I will follow your advice.

You are riht about the misleading title. It was not my intention to create confusion but I cannot change it now. I will pay more attention next time.

By the way, is there a way to search for binary packages?
How did you find this link you provided to me?
:)

mulţumesc!

eindemwort 01-01-2018 06:56 AM

Quote:

Originally Posted by montagdude (Post 5800161)
Does it work if you do not set the TMP environment variable? I just built openjdk on Slackware64-14.2 yesterday without issue.

I actually don't know.
I set another tmp directory because I definitely don't have 11 GB in root - simply followed the suggestion of the README file.
.

Darth Vader 01-01-2018 07:02 AM

Quote:

Originally Posted by eindemwort (Post 5800162)
Thanks for the hint DarthVader
I am simply new to Slackware maybe, but the docs I have read where talking about using slackbuild scripts - which I found interesting but yes... not comfortable.
I will follow your advice.

Do not complicate your life and do as you promised. ;)

Quote:

Originally Posted by eindemwort (Post 5800162)
You are riht about the misleading title. It was not my intention to create confusion but I cannot change it now. I will pay more attention next time.

You can edit the thread title, going in advanced mode while editing your first post, BTW...

Quote:

Originally Posted by eindemwort (Post 5800162)
By the way, is there a way to search for binary packages?
How did you find this link you provided to me?
:)

mulţumesc!

I strongly suggest you to inspect the AlienBOB's really huge repository.

He's The Heavy Lifter of Slackware, and you can find there even really, but really heavy things like Plasma 5.

eindemwort 01-01-2018 07:07 AM

Great!
Thanks again! Tittle has been changed!

Alien Bob 01-01-2018 08:41 AM

Hi eindemwort, welcome to Slackware.
There's a lot of information in the Slack Docs Wiki and as a beginner you may want to follow the links on its homepage https://docs.slackware.com/ . And what you are looking for specifically can be found in https://docs.slackware.com/howtos:sl...ing_software?s[]=repositories


All times are GMT -5. The time now is 11:51 PM.