[packages/openjdk12] continue relying on $host for x32 detection

atler atler at pld-linux.org
Fri Feb 11 00:56:18 CET 2022


commit 9c91890b7b9f0e673a8fb5c73d227369943b3b8c
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

 openjdk12.spec |  2 ++
 x32.patch      | 28 ++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
---
diff --git a/openjdk12.spec b/openjdk12.spec
index 99b63ab..c275834 100644
--- a/openjdk12.spec
+++ b/openjdk12.spec
@@ -34,6 +34,7 @@ Source0:	https://github.com/openjdk/jdk12u/archive/jdk-%{version}-ga/%{name}-%{v
 Source10:	make-cacerts.sh
 Patch0:		no_optflags.patch
 Patch1:		make-4.3.patch
+Patch2:		x32.patch
 URL:		http://openjdk.java.net/
 BuildRequires:	/usr/bin/jar
 BuildRequires:	alsa-lib-devel
@@ -345,6 +346,7 @@ Przykłady dla OpenJDK.
 
 %patch0 -p1
 %patch1 -p1
+%patch2 -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/openjdk12.git/commitdiff/ebf5b46e9211aa09ed1973ad2ccc9e555894f51e



More information about the pld-cvs-commit mailing list