We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8df034d + 0bd481a commit f96732bCopy full SHA for f96732b
modules/singleton-jdk/configure.sh
@@ -15,5 +15,10 @@ fi
15
# our stated JAVA_VERSION-JAVA_VENDOR (e.g.: 11-openjdk; 1.8.0-openj9)
16
rpm -e --nodeps $(rpm -qa java-* | grep -v "^java-${JAVA_VERSION}-${JAVA_VENDOR}")
17
18
-# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=2089626
19
-alternatives --set java "java-${JAVA_VERSION}-${JAVA_VENDOR}.$(uname -m)"
+# workaround for <https://issues.redhat.com/browse/RHEL-3437>
+# The alternative link groups touched here need to match up with those set in
20
+# modules/jdk/*/configure.sh
21
+_arch="$(uname -i)"
22
+for alt in java javac java_sdk_openjdk jre_openjdk; do
23
+ alternatives --set "$alt" "java-${JAVA_VERSION}-${JAVA_VENDOR}.${_arch}"
24
+done
0 commit comments