LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2019, 04:59 PM   #1
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Rep: Reputation: 149Reputation: 149
Amazon Corretto Slackbuild


In case anyone needs it:
https://github.com/bifferos/slackbui...mazon-corretto
 
Old 10-10-2019, 12:36 PM   #2
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Thanks for sharing this!
 
Old 10-13-2019, 08:24 PM   #3
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Yes indeed - thanks for sharing! I had no idea this even existed; it is reassuring to know that what I have installed on my computer is a Java compiler of the kind of production quality suitable for everday business at a multi-billion dollar business such as Amazon, and offering it for free on their website is a good way of ensuring future business, at least in a small way.
 
Old 10-16-2019, 04:11 PM   #4
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Is it safe to say this is a replacement for openjdk jdk etc..???
 
Old 10-17-2019, 04:44 PM   #5
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
Quote:
Originally Posted by PROBLEMCHYLD View Post
Is it safe to say this is a replacement for openjdk jdk etc..???
This *is* a version of OpenJDK, with Amazon's security fixes.

I'm using it with a substantial Java project. Yes, there were bugs moving from Oracle but most fixed. No significant performance issues, in short nothing too dramatic. If you developed from scratch with Corretto (or OpenJDK) you'd probably never notice. It seems the days when OpenJDK was significantly inferior to Oracle are long-gone.

The main reason to switch away from Oracle now concerns licensing:
https://www.itassetmanagement.net/20...censing-model/

Probably a non-issue for small home projects but for any commercial use it's another story.
 
Old 10-18-2019, 07:09 AM   #6
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
thanks biff. Think I will replace jdk with this. I like Amazon, never had any problems with them.
 
Old 12-02-2019, 03:50 AM   #7
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
This is now a slack-build:
https://slackbuilds.org/repository/1...azon-corretto/

However it now gives an issue because installing Kodi with slpkg says it wants the jdk, whereas the compile seems to run fine with Corretto. So the next question (maybe needs another thread) is how do we elegantly overcome this problem of allowing optional dependencies one of which must be present (without manually compiling the Kodi slackbuild of course, which is how I got around this).

thanks!
 
Old 12-09-2019, 01:10 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 bifferos View Post
This is now a slack-build:
https://slackbuilds.org/repository/1...azon-corretto/

However it now gives an issue because installing Kodi with slpkg says it wants the jdk, whereas the compile seems to run fine with Corretto. So the next question (maybe needs another thread) is how do we elegantly overcome this problem of allowing optional dependencies one of which must be present (without manually compiling the Kodi slackbuild of course, which is how I got around this).

thanks!
SBo does not have anything in place to list two different programs that resolve the same requirement. The maintainer just has to pick one (and can document any alternatives in the README). To manage this, it would be something your specific SBo building program would need to tackle. I know slackrepo is able to delete and add requirements, so I can tell slackrepo to remove the jdk requirement and add corretto or open-jdk as a requirement for the build process. Whether slpkg supports this type of thing, you'd have to check the documentation or with the developer. sbopkg can do it by editing the REQUIRES line in the .info for the program you're building through the interface.
 
1 members found this post helpful.
Old 12-10-2019, 04:47 AM   #9
bifferos
Member
 
Registered: Jul 2009
Posts: 401

Original Poster
Rep: Reputation: 149Reputation: 149
Looks like I may have to review my use of slpkg as I can't get it to work with -current.

It seems the JDK issues will be difficult to solve as I tried the LibreOffice build last night and it won't work against Corretto. Unfortunately I have my own reasons for wanting the Corretto install to behave exactly like the Oracle JDK, so I used the same filenames in /etc/profile.d/ e.g. 'jdk.sh', which in hindsight was a mistake.

I only yesterday noticed the LibreOffice slackbuild script has this in it:

Code:
JAVA=${JAVA:-openjdk7}
if [ "$JAVA" = "openjdk7" ]; then
  . /etc/profile.d/openjdk7.sh
  use_java="--with-java=java"
elif [ "$JAVA" = "openjdk8" ]; then
  . /etc/profile.d/openjdk8.sh
  use_java="--with-java=java"
elif [ "$JAVA" = "jdk" ]; then
  . /etc/profile.d/jdk.sh
  use_java="--with-java=java"
elif [ "$JAVA" = "no" ]; then
  use_java="--with-java=no"
fi
Corretto should have it's own profile script.
 
  


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
LXer: Commercials for Amazon’s crappy phone in Amazon Prime videos? LXer Syndicated Linux News 0 12-09-2014 12:31 AM
Amazon Linux AMI(Amazon Machine Image) - ec2 server - query about pem file unclesamcrazy Linux - Newbie 11 11-27-2014 04:31 PM

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

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