From 48a8739af33d29ac41d7b81900c846b73f90ac8928cec7ac1c19d4b082fc22ae Mon Sep 17 00:00:00 2001
From: Fridrich Strba <fstrba@suse.com>
Date: Mon, 25 Jan 2021 17:18:09 +0000
Subject: [PATCH] OBS-URL:
 https://build.opensuse.org/package/show/Java:Factory/java-1_8_0-openj9?expand=0&rev=41

---
 0394ef7545243942a4b27227a22174c1be67ed60.zip |  3 --
 345e1b09e2a1f2cf6323b25edc901cce197f4365.zip |  3 ++
 41f03341d596924e866595d8c94ab3bff33066a4.zip |  3 --
 582366ae54510a48f7815921091db00357c4338a.zip |  3 --
 741e94ea8673b021fc7edc59a2ec8bd203fa2b03.zip |  3 ++
 ab07c6a8fd534eb77c4946e4546e659f8f043b8b.zip |  3 ++
 java-1_8_0-openj9.spec                       | 16 ++++----
 openj9-nogit.patch.in                        | 42 +++++++++++++-------
 8 files changed, 45 insertions(+), 31 deletions(-)
 delete mode 100644 0394ef7545243942a4b27227a22174c1be67ed60.zip
 create mode 100644 345e1b09e2a1f2cf6323b25edc901cce197f4365.zip
 delete mode 100644 41f03341d596924e866595d8c94ab3bff33066a4.zip
 delete mode 100644 582366ae54510a48f7815921091db00357c4338a.zip
 create mode 100644 741e94ea8673b021fc7edc59a2ec8bd203fa2b03.zip
 create mode 100644 ab07c6a8fd534eb77c4946e4546e659f8f043b8b.zip

diff --git a/0394ef7545243942a4b27227a22174c1be67ed60.zip b/0394ef7545243942a4b27227a22174c1be67ed60.zip
deleted file mode 100644
index f94ebb1..0000000
--- a/0394ef7545243942a4b27227a22174c1be67ed60.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:1acd0b760017d08d9f6694aa4c22aade6a313c86c9130529990aca8a59d23f52
-size 26632201
diff --git a/345e1b09e2a1f2cf6323b25edc901cce197f4365.zip b/345e1b09e2a1f2cf6323b25edc901cce197f4365.zip
new file mode 100644
index 0000000..122a610
--- /dev/null
+++ b/345e1b09e2a1f2cf6323b25edc901cce197f4365.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:36833bb67f51baadd801e53c599ecf8e8c6f3c6ff80015586921bb60c3769769
+size 26833967
diff --git a/41f03341d596924e866595d8c94ab3bff33066a4.zip b/41f03341d596924e866595d8c94ab3bff33066a4.zip
deleted file mode 100644
index a8732a3..0000000
--- a/41f03341d596924e866595d8c94ab3bff33066a4.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:48a0244ded895e22bd1fc9f6c4571f30af279a83fc752acbc17698dfed94218e
-size 124676997
diff --git a/582366ae54510a48f7815921091db00357c4338a.zip b/582366ae54510a48f7815921091db00357c4338a.zip
deleted file mode 100644
index 1c64003..0000000
--- a/582366ae54510a48f7815921091db00357c4338a.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:239797fcd77ea53151537b993975dcb3c7a8cd791b5b8f81fb9d77ea36208b16
-size 10827012
diff --git a/741e94ea8673b021fc7edc59a2ec8bd203fa2b03.zip b/741e94ea8673b021fc7edc59a2ec8bd203fa2b03.zip
new file mode 100644
index 0000000..71d6e70
--- /dev/null
+++ b/741e94ea8673b021fc7edc59a2ec8bd203fa2b03.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5420ebe7fc3c0d28241afeec620c35dd77ca85264cf2ecf7c802c55b566198f9
+size 10811199
diff --git a/ab07c6a8fd534eb77c4946e4546e659f8f043b8b.zip b/ab07c6a8fd534eb77c4946e4546e659f8f043b8b.zip
new file mode 100644
index 0000000..b386709
--- /dev/null
+++ b/ab07c6a8fd534eb77c4946e4546e659f8f043b8b.zip
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:e3eff834139be151576bc3257e1835faf5dd0178b5b1ed0bad0a70916b5679a8
+size 125901812
diff --git a/java-1_8_0-openj9.spec b/java-1_8_0-openj9.spec
index 46eaf75..9a52da1 100644
--- a/java-1_8_0-openj9.spec
+++ b/java-1_8_0-openj9.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package java-1_8_0-openj9
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,15 +28,15 @@
 %global updatever       272
 %global buildver        b10
 %global root_repository https://github.com/ibmruntimes/openj9-openjdk-jdk8/archive
-%global root_revision   41f03341d596924e866595d8c94ab3bff33066a4
-%global root_branch     openj9-0.23.0
+%global root_revision   ab07c6a8fd534eb77c4946e4546e659f8f043b8b
+%global root_branch     openj9-0.24.0
 %global omr_repository  https://github.com/eclipse/openj9-omr/archive
-%global omr_revision    582366ae54510a48f7815921091db00357c4338a
-%global omr_branch      v0.23.0-release
+%global omr_revision    741e94ea8673b021fc7edc59a2ec8bd203fa2b03
+%global omr_branch      v0.24.0-release
 %global openj9_repository https://github.com/eclipse/openj9/archive
-%global openj9_revision 0394ef7545243942a4b27227a22174c1be67ed60
-%global openj9_branch   v0.23.0-release
-%global openj9_tag      openj9-0.23.0
+%global openj9_revision 345e1b09e2a1f2cf6323b25edc901cce197f4365
+%global openj9_branch   v0.24.0-release
+%global openj9_tag      openj9-0.24.0
 %global icedtea_sound_version 1.0.1
 %global freemarker_version 2.3.29
 # priority must be 6 digits in total
diff --git a/openj9-nogit.patch.in b/openj9-nogit.patch.in
index 089254f..b73dd15 100644
--- a/openj9-nogit.patch.in
+++ b/openj9-nogit.patch.in
@@ -1,9 +1,17 @@
---- a/closed/OpenJ9.gmk	2020-01-23 11:32:56.700658325 +0100
-+++ b/closed/OpenJ9.gmk	2020-01-23 23:25:54.764578248 +0100
-@@ -29,15 +29,15 @@
+diff --git a/closed/OpenJ9.gmk b/closed/OpenJ9.gmk
+index 27dcc77dd3..163077bb7d 100644
+--- a/closed/OpenJ9.gmk
++++ b/closed/OpenJ9.gmk
+@@ -30,20 +30,20 @@ ifeq (,$(BUILD_ID))
    BUILD_ID := 000000
  endif
  
+-OPENJDK_SHA := $(shell git -C $(TOPDIR) rev-parse --short HEAD)
++OPENJDK_SHA := @OPENJDK_SHA@
+ ifeq (,$(OPENJDK_SHA))
+   $(error Could not determine OpenJDK SHA)
+ endif
+ 
 -OPENJ9_SHA := $(shell git -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)
 +OPENJ9_SHA := @OPENJ9_SHA@
  ifeq (,$(OPENJ9_SHA))
@@ -19,7 +27,7 @@
    ifeq (,$(OPENJ9_BRANCH))
      $(error Could not determine OpenJ9 branch)
    endif
-@@ -46,7 +46,7 @@
+@@ -52,7 +52,7 @@ else
    OPENJ9_VERSION_STRING := $(OPENJ9_TAG)
  endif
  
@@ -28,14 +36,20 @@
  ifeq (,$(OPENJ9OMR_SHA))
    $(error Could not determine OMR SHA)
  endif
---- a/jdk/make/closed/autoconf/custom-hook.m4	2020-01-23 11:32:57.428662256 +0100
-+++ b/jdk/make/closed/autoconf/custom-hook.m4	2020-01-23 23:30:36.802221424 +0100
-@@ -368,7 +368,7 @@
-   AC_SUBST(JDK_MOD_VERSION)
-   AC_SUBST(JDK_FIX_VERSION)
- 
--  OPENJDK_SHA=`git -C $SRC_ROOT rev-parse --short HEAD`
-+  OPENJDK_SHA=@OPENJDK_SHA@
- 
-   AC_SUBST(OPENJDK_SHA)
+diff --git a/closed/make/Main.gmk b/closed/make/Main.gmk
+index ab2310f3b0..1c7386d939 100644
+--- a/closed/make/Main.gmk
++++ b/closed/make/Main.gmk
+@@ -35,9 +35,9 @@ clean-j9vm :
+ # Override definition from MakeBase.gmk for OpenJ9.
+ define GetSourceTips
+ 	$(PRINTF) "%s:%s\n" \
+-		OpenJDK "$(shell git -C $(TOPDIR) rev-parse --short HEAD)" \
+-		OpenJ9  "$(shell git -C $(OPENJ9_TOPDIR) rev-parse --short HEAD)" \
+-		OMR     "$(shell git -C $(OPENJ9OMR_TOPDIR) rev-parse --short HEAD)" \
++		OpenJDK "@OPENJDK_SHA@" \
++		OpenJ9  "@OPENJ9_SHA@" \
++		OMR     "@OPENJ9OMR_SHA@" \
+ 		> $@
+ endef