diff --git a/Speed-up-class-loading-of-groovy-all-files.patch b/Speed-up-class-loading-of-groovy-all-files.patch new file mode 100644 index 0000000000000000000000000000000000000000..df3571caee9a902ba4ff41eadb4406bd44c093eb --- /dev/null +++ b/Speed-up-class-loading-of-groovy-all-files.patch @@ -0,0 +1,22 @@ +From f8a3b45b926bf2c969c633f2aea44f4c8f007d62 Mon Sep 17 00:00:00 2001 +From: sunlan +Date: Fri, 8 Dec 2017 08:01:10 +0800 +Subject: [PATCH] Speed up class loading of groovy-all files + +--- + gradle/assemble.gradle | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle +index 20d74d6efd5..42e9e2b76a0 100644 +--- a/gradle/assemble.gradle ++++ b/gradle/assemble.gradle +@@ -397,7 +397,7 @@ task jarAll(type: Jar, dependsOn: replaceJarWithJarJar) { + + ant { + copy(file: archivePathTmp, tofile: archivePath) +- jar(destfile: archivePath, update:true, manifest: manifestPath) { ++ jar(destfile: archivePath, update: true, index: true, manifest: manifestPath) { + zipfileset(src: jar.archivePath, excludes:'META-INF') + } + delete(file: archivePathTmp, quiet: true, deleteonexit: true) diff --git a/groovy.spec b/groovy.spec index bf7050d792cdf4c78889bbf1b4c0696a34779ac1..e832943348f8c721649832cf685b87d31121401d 100644 --- a/groovy.spec +++ b/groovy.spec @@ -1,6 +1,6 @@ Name: groovy Version: 2.4.8 -Release: 9 +Release: 10 Summary: Dynamic language for the Java Platform License: ASL 2.0 and BSD and EPL-1.0 and Public Domain and ANTLR-PD and MIT URL: http://groovy-lang.org @@ -18,6 +18,7 @@ Patch4: 0005-Update-to-QDox-2.0.patch Patch5: 0006-Disable-artifactory-publish.patch Patch6: 0007-Fix-missing-extension-definitions.patch Patch7: CVE-2020-17521.patch +Patch8: Speed-up-class-loading-of-groovy-all-files.patch BuildRequires: gradle-local >= 2.1-0.9 javapackages-local java-devel >= 1.8 ant antlr-tool ant-antlr BuildRequires: aqute-bnd gpars multiverse apache-parent testng jline apache-commons-cli apache-commons-beanutils @@ -190,7 +191,10 @@ EOF %doc LICENSE NOTICE README.adoc %changelog -* Thu Feb 04 2021 wangyue 2.4.8-9 +* Mon Aug 09 2021 lingsheng - 2.4.8-10 +- Speed up class loading of groovy-all files + +* Thu Feb 04 2021 wangyue - 2.4.8-9 - fix CVE-2020-17521 * Thu Dec 7 2019 openEuler Buildteam - 2.4.8-8