From 8c8509433bd2ed38af0fa57c4d1fc1fd54144918 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 21 Feb 2024 12:18:09 +0100 Subject: [PATCH] Switch Java compiler source/target to 1.8 Resolves: RHEL-52689 --- 0002-Set-Java-source-target-to-1.8.patch | 25 ++++++++++++++++++++++++ java_cup.spec | 10 +++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 0002-Set-Java-source-target-to-1.8.patch diff --git a/0002-Set-Java-source-target-to-1.8.patch b/0002-Set-Java-source-target-to-1.8.patch new file mode 100644 index 0000000..b62e62e --- /dev/null +++ b/0002-Set-Java-source-target-to-1.8.patch @@ -0,0 +1,25 @@ +From 202fbfcbb7c179dcd40e7b296604febb10a8c256 Mon Sep 17 00:00:00 2001 +From: Marian Koncek +Date: Wed, 21 Feb 2024 12:13:45 +0100 +Subject: [PATCH] Set Java source/target to 1.8 + +--- + build.xml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/build.xml b/build.xml +index d5c2b54..cb1dfd1 100644 +--- a/build.xml ++++ b/build.xml +@@ -57,7 +57,7 @@ + token="+ version_str" + value='+ "v0.11b ${cupversion} (SVN rev ${svnversion})"'> + +- ++ + + + +-- +2.43.0 + diff --git a/java_cup.spec b/java_cup.spec index 7552ce2..8390720 100644 --- a/java_cup.spec +++ b/java_cup.spec @@ -20,6 +20,7 @@ Source2: %{name}-MANIFEST.MF Source4: %{name}-runtime-MANIFEST.MF Patch0: %{name}-build.patch +Patch1: 0002-Set-Java-source-target-to-1.8.patch %if %{with bootstrap} BuildRequires: javapackages-bootstrap @@ -52,9 +53,8 @@ Documentation for java_cup. %prep %setup -q -%patch0 -b .build - -sed -i '/ - 1:0.11b-29 +- Switch Java compiler source/target to 1.8 +- Resolves: RHEL-52689 + * Thu Aug 01 2024 Troy Dawson - 1:0.11b-29 - Bump release for Aug 2024 java mass rebuild