[packages/openjdk17] continue relying on $host for x32 detection
atler
atler at pld-linux.org
Thu Feb 17 11:57:54 CET 2022
commit bb0936798aaa5e43567259bb9cee078b542e8d83
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Feb 10 23:31:33 2022 +0100
continue relying on $host for x32 detection
how is abi supposed to be part of cpu remains mystery
openjdk17.spec | 2 ++
x32.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
---
diff --git a/openjdk17.spec b/openjdk17.spec
index c466326..05aa2c9 100644
--- a/openjdk17.spec
+++ b/openjdk17.spec
@@ -33,6 +33,7 @@ Source0: https://github.com/openjdk/jdk17u/archive/jdk-%{version}-ga/%{name}-%{v
# Source0-md5: 94344312ee396394964f51933936f7aa
Source10: make-cacerts.sh
Patch0: no_optflags.patch
+Patch1: x32.patch
URL: http://openjdk.java.net/
BuildRequires: /usr/bin/jar
BuildRequires: alsa-lib-devel
@@ -345,6 +346,7 @@ Przykłady dla OpenJDK.
%setup -qn jdk17u-jdk-%{version}-ga
%patch0 -p1
+%patch1 -p1
%build
# Make sure we have /proc mounted - otherwise idlc will fail later.
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..c860004
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,28 @@
+--- jdk12u-jdk-12.0.2-ga/make/autoconf/platform.m4.orig 2019-07-16 18:38:28.000000000 +0200
++++ jdk12u-jdk-12.0.2-ga/make/autoconf/platform.m4 2022-02-10 23:23:27.419607985 +0100
+@@ -30,17 +30,19 @@
+ [
+ # First argument is the cpu name from the trip/quad
+ case "$1" in
+- x86_64*x32)
+- VAR_CPU=x32
+- VAR_CPU_ARCH=x86
+- VAR_CPU_BITS=32
+- VAR_CPU_ENDIAN=little
+- ;;
+ x86_64)
+ VAR_CPU=x86_64
+ VAR_CPU_ARCH=x86
+ VAR_CPU_BITS=64
+ VAR_CPU_ENDIAN=little
++ case "$host" in
++ *x32)
++ VAR_CPU=x32
++ VAR_CPU_ARCH=x86
++ VAR_CPU_BITS=32
++ VAR_CPU_ENDIAN=little
++ ;;
++ esac
+ ;;
+ i?86)
+ VAR_CPU=x86
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/openjdk17.git/commitdiff/6fe77f252a7d149496f31b9772735498be5f4c32
More information about the pld-cvs-commit
mailing list