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.
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.
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.
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).
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.