diff --git a/dismiss-warnings-in-GCC-8.X.patch b/dismiss-warnings-in-GCC-8.X.patch index 6592a74..55847d9 100644 --- a/dismiss-warnings-in-GCC-8.X.patch +++ b/dismiss-warnings-in-GCC-8.X.patch @@ -2,12 +2,14 @@ diff --git a/hotspot/make/linux/makefiles/adlc.make b/hotspot/make/linux/makefil index 92b8b9b3..a24f9184 100644 --- a/hotspot/make/linux/makefiles/adlc.make +++ b/hotspot/make/linux/makefiles/adlc.make -@@ -64,6 +64,9 @@ CXXFLAGS = $(SYSDEFS) $(INCLUDES) +@@ -64,6 +64,11 @@ CXXFLAGS = $(SYSDEFS) $(INCLUDES) # Force assertions on. CXXFLAGS += -DASSERT +# Introduced in GCC 8.X -+CXXFLAGS += -Wno-error=stringop-overflow= ++ifneq "$(shell expr \( $(CC_VER_MAJOR) \>= 8 \))" "0" ++ CXXFLAGS += -Wno-error=stringop-overflow= ++endif + # CFLAGS_WARN holds compiler options to suppress/enable warnings. # Compiler warnings are treated as errors diff --git a/openjdk-1.8.0.spec b/openjdk-1.8.0.spec index 135e025..9897299 100644 --- a/openjdk-1.8.0.spec +++ b/openjdk-1.8.0.spec @@ -916,7 +916,7 @@ Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{r Name: java-%{javaver}-%{origin} Version: %{javaver}.%{updatever}.%{buildver} -Release: 0 +Release: 1 # java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons # and this change was brought into RHEL-4. java-1.5.0-ibm packages # also included the epoch in their virtual provides. This created a @@ -2209,6 +2209,9 @@ require "copy_jdk_configs.lua" %endif %changelog +* Tue Feb 15 2022 eapen - 1:1.8.0.322-b06.1 +- fix makes failure when gcc version is lower than 8 + * Thu Feb 10 2022 eapen - 1:1.8.0.322-b06.0 - upgrade to 8u322-b06(ga) - modified fast-serializer-jdk8.patch to adopt openjdk