Accepting request 752790 from Java:packages
Allow building with jdk >= 9 OBS-URL: https://build.opensuse.org/request/show/752790 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/groovy18?expand=0&rev=3
This commit is contained in:
commit
050674e1db
11
groovy18-notarget.patch
Normal file
11
groovy18-notarget.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java 2019-11-29 07:24:28.272641368 +0100
|
||||||
|
+++ groovy-core-GROOVY_1_8_9/src/main/org/codehaus/groovy/vmplugin/v5/Java5.java 2019-11-29 07:34:42.096191072 +0100
|
||||||
|
@@ -313,7 +313,7 @@
|
||||||
|
case PACKAGE:
|
||||||
|
return AnnotationNode.PACKAGE_TARGET;
|
||||||
|
default:
|
||||||
|
- throw new GroovyBugError("unsupported Target " + value);
|
||||||
|
+ return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,12 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 2 06:38:42 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Added patch:
|
||||||
|
* groovy18-notarget.patch
|
||||||
|
+ Do not except on a classfile with MODULE information, just
|
||||||
|
ignore it
|
||||||
|
+ Fixes build with jdk9+
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Oct 11 09:02:52 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
Fri Oct 11 09:02:52 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package groovy18
|
# spec file for package groovy18
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -39,6 +39,7 @@ Patch4: groovy-CVE-2015-3253-and-CVE-2016-6814.patch
|
|||||||
Patch5: groovy18-sourcetarget.patch
|
Patch5: groovy18-sourcetarget.patch
|
||||||
Patch6: groovy18-iterator.patch
|
Patch6: groovy18-iterator.patch
|
||||||
Patch7: groovy18-securitymanager.patch
|
Patch7: groovy18-securitymanager.patch
|
||||||
|
Patch8: groovy18-notarget.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-antlr
|
BuildRequires: ant-antlr
|
||||||
BuildRequires: antlr
|
BuildRequires: antlr
|
||||||
@ -64,7 +65,6 @@ BuildRequires: mvn(javax.servlet:jsp-api)
|
|||||||
BuildRequires: mvn(javax.servlet:servlet-api)
|
BuildRequires: mvn(javax.servlet:servlet-api)
|
||||||
BuildRequires: mvn(org.apache.ant:ant-junit)
|
BuildRequires: mvn(org.apache.ant:ant-junit)
|
||||||
BuildRequires: mvn(org.apache.ant:ant-launcher)
|
BuildRequires: mvn(org.apache.ant:ant-launcher)
|
||||||
BuildConflicts: java-devel >= 9
|
|
||||||
Requires: %{name}-lib = %{version}-%{release}
|
Requires: %{name}-lib = %{version}-%{release}
|
||||||
# Used for servlet / gsp:
|
# Used for servlet / gsp:
|
||||||
Requires: glassfish-jsp-api
|
Requires: glassfish-jsp-api
|
||||||
@ -130,6 +130,7 @@ cp %{SOURCE3} .
|
|||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
# build.xml is not compatible with Ant 1.10+
|
# build.xml is not compatible with Ant 1.10+
|
||||||
sed -i "s| depends=\"-excludeLegacyAntVersion\"||" build.xml
|
sed -i "s| depends=\"-excludeLegacyAntVersion\"||" build.xml
|
||||||
@ -172,7 +173,7 @@ build-jar-repository target/lib/compile glassfish-servlet-api glassfish-jsp-api/
|
|||||||
# Build
|
# Build
|
||||||
# TODO: Build at least tests, maybe examples
|
# TODO: Build at least tests, maybe examples
|
||||||
export CLASSPATH=$(build-classpath ant/ant-antlr)
|
export CLASSPATH=$(build-classpath ant/ant-antlr)
|
||||||
ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \
|
%ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \
|
||||||
createJars javadoc
|
createJars javadoc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user