forked from pool/groovy18
This commit is contained in:
parent
5c656f52f4
commit
5a83bf797a
21
groovy18-nofork.patch
Normal file
21
groovy18-nofork.patch
Normal file
@ -0,0 +1,21 @@
|
||||
diff -urEbwB groovy-core-GROOVY_1_8_9.orig/build.xml groovy-core-GROOVY_1_8_9/build.xml
|
||||
--- groovy-core-GROOVY_1_8_9.orig/build.xml 2013-02-15 09:42:29.000000000 +0100
|
||||
+++ groovy-core-GROOVY_1_8_9/build.xml 2022-03-22 20:27:42.099395524 +0100
|
||||
@@ -180,7 +180,7 @@
|
||||
<exclude name="groovy/ui/**/*.java"/>
|
||||
</javac>
|
||||
<java classname="org.codehaus.groovy.tools.DgmConverter"
|
||||
- fork="yes"
|
||||
+ fork="no"
|
||||
failonerror="true">
|
||||
<classpath>
|
||||
<pathelement path="${mainClassesDirectory}"/>
|
||||
@@ -194,7 +194,7 @@
|
||||
|
||||
<target name="-stagedcompile-groovy" depends="-initGroovyc">
|
||||
<groovyc srcdir="${mainSourcePath}" destdir="${mainClassesDirectory}"
|
||||
- fork="true" stacktrace="true"
|
||||
+ fork="false" stacktrace="true"
|
||||
memorymaximumsize="${groovycMain_mx}">
|
||||
<classpath>
|
||||
<pathelement path="${mainClassesDirectory}"/>
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 22 19:41:23 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Added patch:
|
||||
* groovy18-nofork.patch
|
||||
+ do not fork the groovyc and java tasks in the ant build.xml
|
||||
file, so that the ANT_OPTS are propagated to the tasks
|
||||
- Add opens of java.lang from java.base module to all unnamed
|
||||
* fixes build with jdk17
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 21 15:03:23 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -42,6 +42,7 @@ Patch7: groovy18-securitymanager.patch
|
||||
Patch8: groovy18-notarget.patch
|
||||
Patch9: groovy18-amgiguous-function-calls.patch
|
||||
Patch10: groovy18-asm7.patch
|
||||
Patch11: groovy18-nofork.patch
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-antlr
|
||||
BuildRequires: antlr
|
||||
@ -135,6 +136,7 @@ cp %{SOURCE3} .
|
||||
%patch8 -p1
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
%patch11 -p1
|
||||
|
||||
# build.xml is not compatible with Ant 1.10+
|
||||
sed -i "s| depends=\"-excludeLegacyAntVersion\"||" build.xml
|
||||
@ -179,6 +181,9 @@ build-jar-repository target/lib/compile glassfish-servlet-api glassfish-jsp-api/
|
||||
# Build
|
||||
# TODO: Build at least tests, maybe examples
|
||||
export CLASSPATH=$(build-classpath ant/ant-antlr)
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
||||
export ANT_OPTS="--add-opens=java.base/java.lang=ALL-UNNAMED"
|
||||
%endif
|
||||
%ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \
|
||||
createJars javadoc
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user