Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package java-1_8_0-openj9 for openSUSE:Factory checked in at 2025-06-18 15:56:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/java-1_8_0-openj9 (Old) and /work/SRC/openSUSE:Factory/.java-1_8_0-openj9.new.19631 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "java-1_8_0-openj9" Wed Jun 18 15:56:50 2025 rev:32 rq:1286414 version:1.8.0.452 Changes: -------- --- /work/SRC/openSUSE:Factory/java-1_8_0-openj9/java-1_8_0-openj9.changes 2025-06-05 20:33:33.383340367 +0200 +++ /work/SRC/openSUSE:Factory/.java-1_8_0-openj9.new.19631/java-1_8_0-openj9.changes 2025-06-18 16:01:17.032937137 +0200 @@ -1,0 +2,9 @@ +Tue Jun 17 15:58:52 UTC 2025 - Fridrich Strba <fst...@suse.com> + +- Add -std=gnu99 to CFLAGS to fix gcc15 compile time error. Since + the C++ part is on -std=gnu++98, this is the closest. +- Added patch: + * fix-build-with-gcc15.patch + + fix a typo in omr that is fatal with gcc15 + +------------------------------------------------------------------- New: ---- fix-build-with-gcc15.patch ----------(New B)---------- New:- Added patch: * fix-build-with-gcc15.patch + fix a typo in omr that is fatal with gcc15 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ java-1_8_0-openj9.spec ++++++ --- /var/tmp/diff_new_pack.ByfhlA/_old 2025-06-18 16:01:18.212985475 +0200 +++ /var/tmp/diff_new_pack.ByfhlA/_new 2025-06-18 16:01:18.212985475 +0200 @@ -116,6 +116,8 @@ Patch31: stringop-overflow.patch # Fix build with gcc 14 Patch32: fix-build-with-gcc14.patch +# Fix an error with gcc 15 +Patch33: fix-build-with-gcc15.patch # Patches for system libraries Patch201: system-libjpeg.patch Patch202: system-libpng.patch @@ -365,6 +367,7 @@ %patch -P 31 -p1 %patch -P 32 -p1 +%patch -P 33 -p1 cat %{SOURCE100} \ | sed "s/@OPENJ9_SHA@/`expr substr '%{openj9_revision}' 1 7`/g" \ @@ -394,7 +397,7 @@ # bash ./autogen.sh #) -EXTRA_CFLAGS="-Wno-error -Wno-maybe-uninitialized -fno-delete-null-pointer-checks -fno-lifetime-dse" +EXTRA_CFLAGS="-Wno-error -Wno-maybe-uninitialized -std=gnu99 -fno-delete-null-pointer-checks -fno-lifetime-dse" EXTRA_CPP_FLAGS="-Wno-error -Wno-maybe-uninitialized -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse" %ifarch ppc64le @@ -408,6 +411,8 @@ CC=gcc-7 \ NM=gcc-nm-7 \ %endif + --with-extra-cflags="$EXTRA_CFLAGS" \ + --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \ --disable-warnings-as-errors-omr \ --disable-warnings-as-errors-openj9 \ --enable-demos \ ++++++ fix-build-with-gcc15.patch ++++++ --- jdk/omr/compiler/control/OMROptions.hpp 2025-06-17 09:54:56.357954869 +0200 +++ jdk/omr/compiler/control/OMROptions.hpp 2025-06-17 09:55:55.158986393 +0200 @@ -2080,7 +2080,7 @@ public: OptionFlagArray(){ memset(_words, 0, sizeof(_words)); } - void operator=(const OptionFlagArray &other){ memcpy(_words, other.words, sizeof(_words)); } + void operator=(const OptionFlagArray &other){ memcpy(_words, other._words, sizeof(_words)); } bool isEmpty() {