Update to Oxygen.3a release for java 10 support

Break circular dep on JDT by providing the java API stubs in this package
This commit is contained in:
Mat Booth 2018-04-09 13:47:05 +01:00
parent ae85500a06
commit 1f7e1143f0
4 changed files with 21 additions and 11 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/ecj-*.pom /ecj-*.pom
/ecj-*/ /ecj-*/
/ecjsrc-*.jar /ecjsrc-*.jar
/java10api.jar

View File

@ -1,19 +1,21 @@
Epoch: 1 Epoch: 1
%global qualifier M-4.7.3-201803010715 %global qualifier M-4.7.3aRC2-201803300640
Summary: Eclipse Compiler for Java Summary: Eclipse Compiler for Java
Name: ecj Name: ecj
Version: 4.7.3 Version: 4.7.3a
Release: 1%{?dist} Release: 1%{?dist}
URL: http://www.eclipse.org URL: http://www.eclipse.org
License: EPL License: EPL
Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}.jar Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}RC2.jar
Source1: ecj.sh.in Source1: ecj.sh.in
Source3: https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/%{version}/ecj-%{version}.pom Source3: https://repo1.maven.org/maven2/org/eclipse/jdt/core/compiler/ecj/%{version}/ecj-%{version}.pom
# Extracted from https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/%%{qualifier}/ecj-%%{version}.jar # Extracted from https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/%%{qualifier}/ecj-%%{version}.jar
Source4: MANIFEST.MF Source4: MANIFEST.MF
# Java API stubs for newer JDKs
Source5: java10api.jar
# Always generate debug info when building RPMs (Andrew Haley) # Always generate debug info when building RPMs (Andrew Haley)
Patch0: %{name}-rpmdebuginfo.patch Patch0: %{name}-rpmdebuginfo.patch
@ -21,15 +23,13 @@ Patch0: %{name}-rpmdebuginfo.patch
# Fix build with lambda syntax, ebz#520940 # Fix build with lambda syntax, ebz#520940
Patch1: java8.patch Patch1: java8.patch
# Include java9api stubs in build # Include java API stubs in build
Patch2: java9api.patch Patch2: javaAPI.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: ant BuildRequires: ant
BuildRequires: javapackages-local BuildRequires: javapackages-local
# Needed for java9api jar
BuildRequires: eclipse-jdt
%description %description
ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as ECJ is the Java bytecode compiler of the Eclipse Platform. It is also known as
@ -60,8 +60,12 @@ rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java
org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt \ org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt \
org.eclipse.jdt:core org.eclipse.jdt:ecj org.eclipse.jdt:core org.eclipse.jdt:ecj
# Make Java API stubs available for other packages
%mvn_artifact "org.eclipse:java10api:jar:10" %{SOURCE5}
%mvn_alias "org.eclipse:java10api:jar:10" "org.eclipse:java9api:jar:9"
%build %build
ant -Djava9api=$(build-classpath eclipse/java9api) ant -Djavaapi=%{SOURCE5}
%install %install
%mvn_artifact pom.xml ecj.jar %mvn_artifact pom.xml ecj.jar
@ -80,6 +84,10 @@ install -m 644 -p ecj.1 $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1
%{_mandir}/man1/ecj* %{_mandir}/man1/ecj*
%changelog %changelog
* Mon Apr 09 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3a-1
- Update to Oxygen.3a release for java 10 support
- Break circular dep on JDT by providing the java API stubs in this package
* Tue Mar 20 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3-1 * Tue Mar 20 2018 Mat Booth <mat.booth@redhat.com> - 1:4.7.3-1
- Update to Oxygen.3 - Update to Oxygen.3

View File

@ -5,7 +5,7 @@
<property name="jar_file" value="ecj.jar" /> <property name="jar_file" value="ecj.jar" />
+ <path id="build.path"> + <path id="build.path">
+ <pathelement path="${java9api}"/> + <pathelement path="${javaapi}"/>
+ <pathelement path="/usr/lib/jvm/java-1.8.0/jre/lib/rt.jar"/> + <pathelement path="/usr/lib/jvm/java-1.8.0/jre/lib/rt.jar"/>
+ </path> + </path>
<target name="build"> <target name="build">

View File

@ -1,2 +1,3 @@
SHA512 (ecjsrc-4.7.3.jar) = 31a86941360fca6a9e93216acf3f66ea27d66b955ffefed7f2b160685ac0d26111e8eaf0fecfd4972f48112970d1501cf60aed121c67c55f007b313706490688 SHA512 (ecjsrc-4.7.3aRC2.jar) = c6886bf1b21f47ba68f55fff40b2c02f6032e2b491a79d374c2596418a04c994d243623a3efef747f36edefdb5f2731a475e972a1191d7e002beaecc2ef9d5e5
SHA512 (ecj-4.7.3.pom) = 79e59064806c2c4a2ed62da3a584448bbd3603bc1e7fab73f0d5b34dffec8ff8305604e1786e8e5fbf41204a4e336e3268d862158986fea0d4cbd81bb1158d32 SHA512 (ecj-4.7.3a.pom) = a4eb5656867b88817dfe2776320c5a91f2d2402372a993e7698bc5846d5dd05f0bfb9808ed2e514e442438595cf05db0df7014c1c957e4c134bb82f236975759
SHA512 (java10api.jar) = b92faee6a4f7ab3d631e93ed99fffb101035bf7c0dd632dd5322c9e0d2848eeda496d6cf4d28122c88173fb7fcacc77ce40f2822e923903cec47114c9a25c242