LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 02-18-2021, 05:52 AM   #1
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 148

Rep: Reputation: 22
Request for openjdk11 package for Slackwarearm Current for RPi4


Prebuilt openjdk11 binaries are available at

https://adoptopenjdk.net/

I request for a .txz package for RPi4 to be created and made available at https://sarpi.fatdog.eu/index.php?p=...ads#currentpkg.

This is needed for building LibreOffice for RPi4.

The version https://slackware.uk/sarpi/pkg/jdk-8...urrent_sp1.txz cannot be used for building LibreOffice.
 
Old 02-18-2021, 07:25 PM   #2
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by rsamurti View Post
Prebuilt openjdk11 binaries are available at

https://adoptopenjdk.net/

I request for a .txz package for RPi4 to be created and made available at https://sarpi.fatdog.eu/index.php?p=...ads#currentpkg.

This is needed for building LibreOffice for RPi4.

The version https://slackware.uk/sarpi/pkg/jdk-8...urrent_sp1.txz cannot be used for building LibreOffice.
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...
Attached Files
File Type: txt adoptopenjdk.txt (94.9 KB, 12 views)
 
3 members found this post helpful.
Old 02-19-2021, 05:24 AM   #3
rsamurti
Member
 
Registered: Dec 2003
Location: Mysore
Distribution: Mandrake, Libranet, Slackware
Posts: 148

Original Poster
Rep: Reputation: 22
Thank you so much for this information. Some how I had missed the buildscript available at SlackBuilds.org.
 
1 members found this post helpful.
Old 04-03-2021, 05:56 PM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Found this thread as I needed Java for my Pi400. The Slackbuild seems to have been updated to look for a version 12 but I didn't see any Version 12 packages for arm or even Linux at all on github, so first edit I had to make was to change back to the version 11 for both the TARNAM

Code:
TARNAM=OpenJDK11U-jdk_arm_linux_hotspot_${MAJORVER}_${MINORVER}.tar.gz
and the build version
Code:
VERSION=${VERSION:-11.0.10+9}
but you must also update the path in the adoptopenjdk.sh in the root of the slackbuild and in the profile.d as well as the .csh because those were all hard coded to lib64 and needed changed to lib.

I suppose once the 64bit arm arch is mainstream that part won't be needed but for now...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Autoboot.txt not found upon reboot after updating slarm current on rpi4 mEllis Slackware - ARM 5 05-31-2020 09:02 AM
[SOLVED] Arduino IDE on RPi4 SlackwareARM -current using modified Slackbuild TheTKS Slackware - ARM 3 02-15-2020 10:50 PM
[SOLVED] slackwarearm-current: package cvs , splitvt , tcl Wiser Slacker Slackware - ARM 1 02-12-2016 11:03 AM
slackwarearm-current: broken package (bridge-utils) mega-lnx Slackware - ARM 2 10-30-2015 04:13 PM

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

All times are GMT -5. The time now is 12:06 AM.

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