Compare commits
	
		
			10 Commits
		
	
	
		
	
	| Author | SHA256 | Date | |
|---|---|---|---|
| 803ecded08 | |||
| 2637fef3e3 | |||
| b82108986e | |||
| 182695c211 | |||
| e366a32a9a | |||
| 4452e52b0b | |||
| 340b480f80 | |||
| e98d947f91 | |||
| 1718500d11 | |||
| 4069333c02 | 
							
								
								
									
										33
									
								
								config.guess
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										33
									
								
								config.guess
									
									
									
									
										vendored
									
									
								
							| @@ -1,10 +1,10 @@ | ||||
| #! /bin/sh | ||||
| # Attempt to guess a canonical system name. | ||||
| #   Copyright 1992-2023 Free Software Foundation, Inc. | ||||
| #   Copyright 1992-2025 Free Software Foundation, Inc. | ||||
|  | ||||
| # shellcheck disable=SC2006,SC2268 # see below for rationale | ||||
|  | ||||
| timestamp='2023-07-20' | ||||
| timestamp='2025-07-10' | ||||
|  | ||||
| # This file is free software; you can redistribute it and/or modify it | ||||
| # under the terms of the GNU General Public License as published by | ||||
| @@ -60,7 +60,7 @@ version="\ | ||||
| GNU config.guess ($timestamp) | ||||
|  | ||||
| Originally written by Per Bothner. | ||||
| Copyright 1992-2023 Free Software Foundation, Inc. | ||||
| Copyright 1992-2025 Free Software Foundation, Inc. | ||||
|  | ||||
| This is free software; see the source for copying conditions.  There is NO | ||||
| warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." | ||||
| @@ -123,7 +123,7 @@ set_cc_for_build() { | ||||
|     dummy=$tmp/dummy | ||||
|     case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in | ||||
| 	,,)    echo "int x;" > "$dummy.c" | ||||
| 	       for driver in cc gcc c89 c99 ; do | ||||
| 	       for driver in cc gcc c17 c99 c89 ; do | ||||
| 		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then | ||||
| 		       CC_FOR_BUILD=$driver | ||||
| 		       break | ||||
| @@ -155,6 +155,9 @@ Linux|GNU|GNU/*) | ||||
|  | ||||
| 	set_cc_for_build | ||||
| 	cat <<-EOF > "$dummy.c" | ||||
| 	#if defined(__ANDROID__) | ||||
| 	LIBC=android | ||||
| 	#else | ||||
| 	#include <features.h> | ||||
| 	#if defined(__UCLIBC__) | ||||
| 	LIBC=uclibc | ||||
| @@ -162,6 +165,8 @@ Linux|GNU|GNU/*) | ||||
| 	LIBC=dietlibc | ||||
| 	#elif defined(__GLIBC__) | ||||
| 	LIBC=gnu | ||||
| 	#elif defined(__LLVM_LIBC__) | ||||
| 	LIBC=llvm | ||||
| 	#else | ||||
| 	#include <stdarg.h> | ||||
| 	/* First heuristic to detect musl libc.  */ | ||||
| @@ -169,6 +174,7 @@ Linux|GNU|GNU/*) | ||||
| 	LIBC=musl | ||||
| 	#endif | ||||
| 	#endif | ||||
| 	#endif | ||||
| 	EOF | ||||
| 	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` | ||||
| 	eval "$cc_set_libc" | ||||
| @@ -628,7 +634,8 @@ EOF | ||||
| 		sed 's/^		//' << EOF > "$dummy.c" | ||||
| 		#include <sys/systemcfg.h> | ||||
|  | ||||
| 		main() | ||||
| 		int | ||||
| 		main () | ||||
| 			{ | ||||
| 			if (!__power_pc()) | ||||
| 				exit(1); | ||||
| @@ -712,7 +719,8 @@ EOF | ||||
| 		#include <stdlib.h> | ||||
| 		#include <unistd.h> | ||||
|  | ||||
| 		int main () | ||||
| 		int | ||||
| 		main () | ||||
| 		{ | ||||
| 		#if defined(_SC_KERNEL_BITS) | ||||
| 		    long bits = sysconf(_SC_KERNEL_BITS); | ||||
| @@ -904,7 +912,7 @@ EOF | ||||
| 	fi | ||||
| 	;; | ||||
|     *:FreeBSD:*:*) | ||||
| 	UNAME_PROCESSOR=`/usr/bin/uname -p` | ||||
| 	UNAME_PROCESSOR=`uname -p` | ||||
| 	case $UNAME_PROCESSOR in | ||||
| 	    amd64) | ||||
| 		UNAME_PROCESSOR=x86_64 ;; | ||||
| @@ -1589,6 +1597,12 @@ EOF | ||||
|     *:Unleashed:*:*) | ||||
| 	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE | ||||
| 	;; | ||||
|     x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*) | ||||
| 	GUESS=$UNAME_MACHINE-pc-ironclad-mlibc | ||||
| 	;; | ||||
|     *:[Ii]ronclad:*:*) | ||||
| 	GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc | ||||
| 	;; | ||||
| esac | ||||
|  | ||||
| # Do we have a guess based on uname results? | ||||
| @@ -1612,6 +1626,7 @@ cat > "$dummy.c" <<EOF | ||||
| #endif | ||||
| #endif | ||||
| #endif | ||||
| int | ||||
| main () | ||||
| { | ||||
| #if defined (sony) | ||||
| @@ -1796,8 +1811,8 @@ fi | ||||
| exit 1 | ||||
|  | ||||
| # Local variables: | ||||
| # eval: (add-hook 'before-save-hook 'time-stamp) | ||||
| # eval: (add-hook 'before-save-hook 'time-stamp nil t) | ||||
| # time-stamp-start: "timestamp='" | ||||
| # time-stamp-format: "%:y-%02m-%02d" | ||||
| # time-stamp-format: "%Y-%02m-%02d" | ||||
| # time-stamp-end: "'" | ||||
| # End: | ||||
|   | ||||
							
								
								
									
										901
									
								
								config.sub
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										901
									
								
								config.sub
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @@ -1,3 +1,19 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Sun Sep 28 11:05:40 UTC 2025 - Fridrich Strba <fstrba@suse.com> | ||||
|  | ||||
| - Refresh the config.sub and config.guess files | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Tue Jul 29 07:03:50 UTC 2025 - Andreas Schwab <schwab@suse.de> | ||||
|  | ||||
| - jdk-8354941.patch: JDK-8354941: Build failure with glibc 2.42 due | ||||
|   to uabs() name collision | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Mon Jul 21 10:59:48 UTC 2025 - Fridrich Strba <fstrba@suse.com> | ||||
|  | ||||
| - Do not embed rebuild counter (bsc#1246806) | ||||
|  | ||||
| ------------------------------------------------------------------- | ||||
| Fri Jul 18 05:55:27 UTC 2025 - Fridrich Strba <fstrba@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,7 @@ | ||||
| # | ||||
| # spec file for package java-21-openjdk | ||||
| # | ||||
| # Copyright (c) 2025 SUSE LLC | ||||
| # Copyright (c) 2025 SUSE LLC and contributors | ||||
| # | ||||
| # All modifications and additions to the file contributed by third parties | ||||
| # remain the property of their copyright owners, unless otherwise agreed | ||||
| @@ -175,6 +175,7 @@ Patch200:       ppc_stack_overflow_fix.patch | ||||
| # | ||||
| Patch302:       disable-doclint-by-default.patch | ||||
| Patch303:       java-40y.patch | ||||
| Patch304:       jdk-8354941.patch | ||||
| # | ||||
| BuildRequires:  alsa-lib-devel | ||||
| BuildRequires:  autoconf | ||||
| @@ -412,6 +413,7 @@ rm -rvf src/java.desktop/share/native/liblcms/lcms2* | ||||
|  | ||||
| %patch -P 302 -p1 | ||||
| %patch -P 303 -p1 | ||||
| %patch -P 304 -p1 | ||||
|  | ||||
| # Extract systemtap tapsets | ||||
|  | ||||
| @@ -469,7 +471,7 @@ bash ../configure \ | ||||
|     --with-version-pre="" \ | ||||
| %endif | ||||
|     --with-version-build="%{buildver}" \ | ||||
|     --with-version-opt="suse-%{release}-%{_arch}" \ | ||||
|     --with-version-opt="suse-%{suse_version}-%{_arch}" \ | ||||
| %if %{with zero} | ||||
|     --with-jvm-variants=zero \ | ||||
| %else | ||||
|   | ||||
							
								
								
									
										194
									
								
								jdk-8354941.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										194
									
								
								jdk-8354941.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,194 @@ | ||||
| From 925929d568ba0f9b8c2710b74c84e3d672ac4e90 Mon Sep 17 00:00:00 2001 | ||||
| From: Severin Gehwolf <sgehwolf@openjdk.org> | ||||
| Date: Tue, 13 May 2025 09:59:49 +0000 | ||||
| Subject: [PATCH] 8354941: Build failure with glibc 2.42 due to uabs() name | ||||
|  collision | ||||
|  | ||||
| Reviewed-by: kbarrett, thartmann | ||||
| --- | ||||
|  src/hotspot/cpu/aarch64/assembler_aarch64.cpp      | 2 +- | ||||
|  src/hotspot/cpu/aarch64/assembler_aarch64.hpp      | 2 +- | ||||
|  src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp | 2 +- | ||||
|  src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp  | 4 ++-- | ||||
|  src/hotspot/cpu/riscv/assembler_riscv.hpp          | 2 +- | ||||
|  src/hotspot/cpu/riscv/stubGenerator_riscv.cpp      | 4 ++-- | ||||
|  src/hotspot/share/opto/mulnode.cpp                 | 4 ++-- | ||||
|  src/hotspot/share/opto/subnode.cpp                 | 4 ++-- | ||||
|  src/hotspot/share/utilities/globalDefinitions.hpp  | 8 ++++---- | ||||
|  9 files changed, 16 insertions(+), 16 deletions(-) | ||||
|  | ||||
| diff --git a/src/hotspot/cpu/aarch64/assembler_aarch64.cpp b/src/hotspot/cpu/aarch64/assembler_aarch64.cpp | ||||
| index c7b867a4207..fab224847f4 100644 | ||||
| --- a/src/hotspot/cpu/aarch64/assembler_aarch64.cpp | ||||
| +++ b/src/hotspot/cpu/aarch64/assembler_aarch64.cpp | ||||
| @@ -461,7 +461,7 @@ void Assembler::bang_stack_with_offset(int offset) { Unimplemented(); } | ||||
|   | ||||
|  bool asm_util::operand_valid_for_immediate_bits(int64_t imm, unsigned nbits) { | ||||
|    guarantee(nbits == 8 || nbits == 12, "invalid nbits value"); | ||||
| -  uint64_t uimm = (uint64_t)uabs((jlong)imm); | ||||
| +  uint64_t uimm = (uint64_t)g_uabs((jlong)imm); | ||||
|    if (uimm < (UCONST64(1) << nbits)) | ||||
|      return true; | ||||
|    if (uimm < (UCONST64(1) << (2 * nbits)) | ||||
| diff --git a/src/hotspot/cpu/aarch64/assembler_aarch64.hpp b/src/hotspot/cpu/aarch64/assembler_aarch64.hpp | ||||
| index dafb4f5229b..5d3ca441b41 100644 | ||||
| --- a/src/hotspot/cpu/aarch64/assembler_aarch64.hpp | ||||
| +++ b/src/hotspot/cpu/aarch64/assembler_aarch64.hpp | ||||
| @@ -930,7 +930,7 @@ public: | ||||
|    static const uint64_t branch_range = NOT_DEBUG(128 * M) DEBUG_ONLY(2 * M); | ||||
|   | ||||
|    static bool reachable_from_branch_at(address branch, address target) { | ||||
| -    return uabs(target - branch) < branch_range; | ||||
| +    return g_uabs(target - branch) < branch_range; | ||||
|    } | ||||
|   | ||||
|    // Unconditional branch (immediate) | ||||
| diff --git a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp | ||||
| index 0a2dd0dce97..8ec1af1bd7a 100644 | ||||
| --- a/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp | ||||
| +++ b/src/hotspot/cpu/aarch64/macroAssembler_aarch64.cpp | ||||
| @@ -2894,7 +2894,7 @@ void MacroAssembler::wrap_add_sub_imm_insn(Register Rd, Register Rn, uint64_t im | ||||
|    if (fits) { | ||||
|      (this->*insn1)(Rd, Rn, imm); | ||||
|    } else { | ||||
| -    if (uabs(imm) < (1 << 24)) { | ||||
| +    if (g_uabs(imm) < (1 << 24)) { | ||||
|         (this->*insn1)(Rd, Rn, imm & -(1 << 12)); | ||||
|         (this->*insn1)(Rd, Rd, imm & ((1 << 12)-1)); | ||||
|      } else { | ||||
| diff --git a/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp b/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp | ||||
| index b2cc462ff8e..2bfc49d05dd 100644 | ||||
| --- a/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp | ||||
| +++ b/src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp | ||||
| @@ -1130,7 +1130,7 @@ class StubGenerator: public StubCodeGenerator { | ||||
|   | ||||
|    void copy_memory_small(DecoratorSet decorators, BasicType type, Register s, Register d, Register count, int step) { | ||||
|      bool is_backwards = step < 0; | ||||
| -    size_t granularity = uabs(step); | ||||
| +    size_t granularity = g_uabs(step); | ||||
|      int direction = is_backwards ? -1 : 1; | ||||
|   | ||||
|      Label Lword, Lint, Lshort, Lbyte; | ||||
| @@ -1189,7 +1189,7 @@ class StubGenerator: public StubCodeGenerator { | ||||
|                     Register s, Register d, Register count, int step) { | ||||
|      copy_direction direction = step < 0 ? copy_backwards : copy_forwards; | ||||
|      bool is_backwards = step < 0; | ||||
| -    unsigned int granularity = uabs(step); | ||||
| +    unsigned int granularity = g_uabs(step); | ||||
|      const Register t0 = r3, t1 = r4; | ||||
|   | ||||
|      // <= 80 (or 96 for SIMD) bytes do inline. Direction doesn't matter because we always | ||||
| diff --git a/src/hotspot/cpu/riscv/assembler_riscv.hpp b/src/hotspot/cpu/riscv/assembler_riscv.hpp | ||||
| index 24de7c15fe3..afb661e180d 100644 | ||||
| --- a/src/hotspot/cpu/riscv/assembler_riscv.hpp | ||||
| +++ b/src/hotspot/cpu/riscv/assembler_riscv.hpp | ||||
| @@ -2913,7 +2913,7 @@ public: | ||||
|    static const unsigned long branch_range = 1 * M; | ||||
|   | ||||
|    static bool reachable_from_branch_at(address branch, address target) { | ||||
| -    return uabs(target - branch) < branch_range; | ||||
| +    return g_uabs(target - branch) < branch_range; | ||||
|    } | ||||
|   | ||||
|    // Decode the given instruction, checking if it's a 16-bit compressed | ||||
| diff --git a/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp b/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp | ||||
| index 8c5e1c097ef..bc4d2e94414 100644 | ||||
| --- a/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp | ||||
| +++ b/src/hotspot/cpu/riscv/stubGenerator_riscv.cpp | ||||
| @@ -917,7 +917,7 @@ class StubGenerator: public StubCodeGenerator { | ||||
|   | ||||
|    void copy_memory_v(Register s, Register d, Register count, int step) { | ||||
|      bool is_backward = step < 0; | ||||
| -    int granularity = uabs(step); | ||||
| +    int granularity = g_uabs(step); | ||||
|   | ||||
|      const Register src = x30, dst = x31, vl = x14, cnt = x15, tmp1 = x16, tmp2 = x17; | ||||
|      assert_different_registers(s, d, cnt, vl, tmp1, tmp2); | ||||
| @@ -973,7 +973,7 @@ class StubGenerator: public StubCodeGenerator { | ||||
|      } | ||||
|   | ||||
|      bool is_backwards = step < 0; | ||||
| -    int granularity = uabs(step); | ||||
| +    int granularity = g_uabs(step); | ||||
|   | ||||
|      const Register src = x30, dst = x31, cnt = x15, tmp3 = x16, tmp4 = x17, tmp5 = x14, tmp6 = x13; | ||||
|      const Register gct1 = x28, gct2 = x29, gct3 = t2; | ||||
| diff --git a/src/hotspot/share/opto/mulnode.cpp b/src/hotspot/share/opto/mulnode.cpp | ||||
| index f42d06a3650..43d842173dd 100644 | ||||
| --- a/src/hotspot/share/opto/mulnode.cpp | ||||
| +++ b/src/hotspot/share/opto/mulnode.cpp | ||||
| @@ -245,7 +245,7 @@ Node *MulINode::Ideal(PhaseGVN *phase, bool can_reshape) { | ||||
|    // Check for negative constant; if so negate the final result | ||||
|    bool sign_flip = false; | ||||
|   | ||||
| -  unsigned int abs_con = uabs(con); | ||||
| +  unsigned int abs_con = g_uabs(con); | ||||
|    if (abs_con != (unsigned int)con) { | ||||
|      sign_flip = true; | ||||
|    } | ||||
| @@ -480,7 +480,7 @@ Node *MulLNode::Ideal(PhaseGVN *phase, bool can_reshape) { | ||||
|   | ||||
|    // Check for negative constant; if so negate the final result | ||||
|    bool sign_flip = false; | ||||
| -  julong abs_con = uabs(con); | ||||
| +  julong abs_con = g_uabs(con); | ||||
|    if (abs_con != (julong)con) { | ||||
|      sign_flip = true; | ||||
|    } | ||||
| diff --git a/src/hotspot/share/opto/subnode.cpp b/src/hotspot/share/opto/subnode.cpp | ||||
| index 8b2538f8ab5..c4a86d76506 100644 | ||||
| --- a/src/hotspot/share/opto/subnode.cpp | ||||
| +++ b/src/hotspot/share/opto/subnode.cpp | ||||
| @@ -1899,14 +1899,14 @@ const Type* AbsNode::Value(PhaseGVN* phase) const { | ||||
|    case Type::Int: { | ||||
|      const TypeInt* ti = t1->is_int(); | ||||
|      if (ti->is_con()) { | ||||
| -      return TypeInt::make(uabs(ti->get_con())); | ||||
| +      return TypeInt::make(g_uabs(ti->get_con())); | ||||
|      } | ||||
|      break; | ||||
|    } | ||||
|    case Type::Long: { | ||||
|      const TypeLong* tl = t1->is_long(); | ||||
|      if (tl->is_con()) { | ||||
| -      return TypeLong::make(uabs(tl->get_con())); | ||||
| +      return TypeLong::make(g_uabs(tl->get_con())); | ||||
|      } | ||||
|      break; | ||||
|    } | ||||
| diff --git a/src/hotspot/share/utilities/globalDefinitions.hpp b/src/hotspot/share/utilities/globalDefinitions.hpp | ||||
| index 0083442be6c..625fdcc414f 100644 | ||||
| --- a/src/hotspot/share/utilities/globalDefinitions.hpp | ||||
| +++ b/src/hotspot/share/utilities/globalDefinitions.hpp | ||||
| @@ -1164,7 +1164,7 @@ inline bool is_even(intx x) { return !is_odd(x); } | ||||
|   | ||||
|  // abs methods which cannot overflow and so are well-defined across | ||||
|  // the entire domain of integer types. | ||||
| -static inline unsigned int uabs(unsigned int n) { | ||||
| +static inline unsigned int g_uabs(unsigned int n) { | ||||
|    union { | ||||
|      unsigned int result; | ||||
|      int value; | ||||
| @@ -1173,7 +1173,7 @@ static inline unsigned int uabs(unsigned int n) { | ||||
|    if (value < 0) result = 0-result; | ||||
|    return result; | ||||
|  } | ||||
| -static inline julong uabs(julong n) { | ||||
| +static inline julong g_uabs(julong n) { | ||||
|    union { | ||||
|      julong result; | ||||
|      jlong value; | ||||
| @@ -1182,8 +1182,8 @@ static inline julong uabs(julong n) { | ||||
|    if (value < 0) result = 0-result; | ||||
|    return result; | ||||
|  } | ||||
| -static inline julong uabs(jlong n) { return uabs((julong)n); } | ||||
| -static inline unsigned int uabs(int n) { return uabs((unsigned int)n); } | ||||
| +static inline julong g_uabs(jlong n) { return g_uabs((julong)n); } | ||||
| +static inline unsigned int g_uabs(int n) { return g_uabs((unsigned int)n); } | ||||
|   | ||||
|  // "to" should be greater than "from." | ||||
|  inline intx byte_size(void* from, void* to) { | ||||
| --  | ||||
| 2.50.1 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user