Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content

Fix build failure coming from jlink

Romain Hunault requested to merge 436-fix-docker into master

Description

Fix the build issue

Issue(s)

https://gitlab.e.foundation/e/devices/easy-installer/-/issues/436

Test environment

Test procedures

Technical details

I would suspect the problem is coming from a Java version update. Do we fix the version we use for the build?

References:

Build started to fail between the 2nd and the 11th August

We can find openjdk-11 updates at https://wiki.openjdk.org/display/JDKUpdates/Archived+Releases

Trying to install the OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz from https://github.com/adoptium/temurin11-binaries/releases/tag/jdk-11.0.15%2B10, following those steps https://www.vultr.com/docs/how-to-manually-install-java-8-on-ubuntu-16-04/

apt-get update && apt-get install wget
wget https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.15%2B10/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz
mkdir /usr/lib/jdk && cd /usr/lib/jdk
tar -xvf ~/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz 
echo 'PATH="${PATH}:/usr/lib/jdk/jdk-11.0.15+10/bin"' >> /etc/environment
echo 'JAVA_HOME="/usr/lib/jdk/jdk-11.0.15+10"' >> /etc/environment
update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jdk/jdk-11.0.15+10/bin/java" 0
update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jdk/jdk-11.0.15+10/bin/javac" 0
update-alternatives --set java /usr/lib/jdk/jdk-11.0.15+10/bin/java
update-alternatives --set javac /usr/lib/jdk/jdk-11.0.15+10/bin/javac
update-alternatives --list java
update-alternatives --list javac
java --version
rm -rf ~/OpenJDK11U-jdk_x64_linux_hotspot_11.0.15_10.tar.gz 

Screenshots

Edited by Romain Hunault

Merge request reports

Loading