Quote:
Originally Posted by rsamurti
|
Reminder that
SlackBuilds.org exists to enable users like you and me to easily build Slackware packages for ourselves. You do not really want "SARPi" to do it for you, when you can learn how to do it yourself. Right?
However, I notice that the 'adoptopenjdk.SlackBuild' script only supports Slackware x86_64 architecture. You can change that before building anything with it. Allow me to show you how to do it the very easy way.
So, do this...
Code:
root@slackware:~# cd /tmp/
root@slackware:/tmp# wget https://slackbuilds.org/slackbuilds/14.2/development/adoptopenjdk.tar.gz
root@slackware:/tmp# tar -zxvf adoptopenjdk.tar.gz
root@slackware:/tmp# cd adoptopenjdk
Then... download the adoptopenjdk11 binary
Code:
root@slackware:/tmp/adoptopenjdk# wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_arm_linux_hotspot_11.0.10_9.tar.gz
You can use 'nano' text editor to make these changes to the SlackBuild script code...
Code:
root@slackware:/tmp/adoptopenjdk# nano -w adoptopenjdk.SlackBuild
You'll need to edit and modify the top section of the 'adoptopenjdk.SlackBuild' file so it looks like this...
Code:
PRGNAM=adoptopenjdk
VERSION=${VERSION:-11.0.10+9}
BUILD=${BUILD:-1}
ARCH=${ARCH:-$(uname -m)}
TAG=${TAG:-_SBo}
MAJORVER=${VERSION%+*}
MINORVER=${VERSION#*+}
TARNAM=OpenJDK11U-jdk_arm_linux_hotspot_${MAJORVER}_${MINORVER}.tar.gz
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
LIBDIRSUFFIX=""
set -e
...
after editing DON'T forget to save the file before you exit! (i.e. press "CTRL" and "X" keys together - then press "Y" key to save and exit the nano editor)
Now... run the adoptopenjdk.SlackBuild script...
Code:
root@slackware:/tmp/adoptopenjdk# ./adoptopenjdk.SlackBuild
View this adoptopenjdk11 build log I made if you want to compare with your own results...