From 4de22476cb6608489e1cff874951a08b35fa17bb Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Mon, 13 May 2024 13:25:38 +0300 Subject: [PATCH] import eclipse-4.12-6.module_el8.1.0+280+b8d347df --- .eclipse.metadata | 4 +- .gitignore | 4 +- ...-with-older-shade-plug-in-versions-w.patch | 32 -- ...w-bootstrapping-against-OSGi-Core-R6.patch | 31 -- ...Add-parent-pom-for-old-tycho-pomless.patch | 31 -- SOURCES/eclipse-adjust-droplets.patch | 52 +++ SOURCES/eclipse-debug-symbols.patch | 27 +- .../eclipse-disable-droplets-in-dropins.patch | 2 +- .../eclipse-disable-uses-constraints.patch | 2 +- SOURCES/eclipse-ebz542708.patch | 28 ++ SOURCES/eclipse-ebz548211-2.patch | 114 ++++++ SOURCES/eclipse-ebz548211.patch | 94 +++++ ...ipse-feature-plugins-to-category-ius.patch | 60 ++- SOURCES/eclipse-fix-dropins.patch | 36 +- SOURCES/eclipse-fix-tests.patch | 28 +- ...se-hide-droplets-from-install-wizard.patch | 39 +- ...ignore-version-when-calculating-home.patch | 24 +- SOURCES/eclipse-make-droplets-runnable.patch | 2 +- SOURCES/eclipse-mockito.patch | 318 +++++++++++++++ SOURCES/eclipse-p2-pick-up-renamed-jars.patch | 10 +- .../eclipse-patch-out-fileupload-dep.patch | 17 +- SOURCES/eclipse-pde-tp-support-droplets.patch | 45 +-- SOURCES/eclipse-secondary-arches.patch | 6 +- SOURCES/eclipse-support-symlink-bundles.patch | 2 +- ...clipse-swt-avoid-javascript-at-build.patch | 45 +-- SOURCES/explicit-hamcrest.patch | 32 +- SOURCES/fix-ant-execution.patch | 26 ++ SOURCES/force-clean-after-p2-operations.patch | 80 ---- SOURCES/toolchains.xml | 110 ------ SPECS/eclipse.spec | 374 ++++++++---------- 30 files changed, 965 insertions(+), 710 deletions(-) delete mode 100644 SOURCES/0001-Avoid-limitation-with-older-shade-plug-in-versions-w.patch delete mode 100644 SOURCES/0002-Allow-bootstrapping-against-OSGi-Core-R6.patch delete mode 100644 SOURCES/0004-Add-parent-pom-for-old-tycho-pomless.patch create mode 100644 SOURCES/eclipse-adjust-droplets.patch create mode 100644 SOURCES/eclipse-ebz542708.patch create mode 100644 SOURCES/eclipse-ebz548211-2.patch create mode 100644 SOURCES/eclipse-ebz548211.patch create mode 100644 SOURCES/eclipse-mockito.patch create mode 100644 SOURCES/fix-ant-execution.patch delete mode 100644 SOURCES/force-clean-after-p2-operations.patch delete mode 100644 SOURCES/toolchains.xml diff --git a/.eclipse.metadata b/.eclipse.metadata index f0183ad..bb28e9d 100644 --- a/.eclipse.metadata +++ b/.eclipse.metadata @@ -1,2 +1,2 @@ -d16ce0f61de3c9005e2cad8715d4518d99d4f1b0 SOURCES/eclipse-platform-sources-4.16.tar.xz -8af7a2c8c65958c39370e6ad00540331cbaac181 SOURCES/org.eclipse.linuxtools.eclipse-build-b056b40d26d052b788b790f27ead774ff804ab55.tar.xz +2325a8753ec3e388d5f062a4e7ba3031cace4cfd SOURCES/eclipse-platform-sources-4.12RC2.tar.xz +cc4f1b206f1a5744884558b663b6064987a52a9c SOURCES/org.eclipse.linuxtools.eclipse-build-c985e357223668b4bc1fb76ea6b9e0c12829b7e8.tar.xz diff --git a/.gitignore b/.gitignore index 2b4e626..403b1dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/eclipse-platform-sources-4.16.tar.xz -SOURCES/org.eclipse.linuxtools.eclipse-build-b056b40d26d052b788b790f27ead774ff804ab55.tar.xz +SOURCES/eclipse-platform-sources-4.12RC2.tar.xz +SOURCES/org.eclipse.linuxtools.eclipse-build-c985e357223668b4bc1fb76ea6b9e0c12829b7e8.tar.xz diff --git a/SOURCES/0001-Avoid-limitation-with-older-shade-plug-in-versions-w.patch b/SOURCES/0001-Avoid-limitation-with-older-shade-plug-in-versions-w.patch deleted file mode 100644 index 9ae9983..0000000 --- a/SOURCES/0001-Avoid-limitation-with-older-shade-plug-in-versions-w.patch +++ /dev/null @@ -1,32 +0,0 @@ -From d39c125a6030c88920f188345fee1d624ac4afe1 Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Tue, 12 Mar 2019 12:58:38 +0000 -Subject: [PATCH 1/4] Avoid limitation with older shade plug-in versions where - it cannot deal with Java 9-style module-info files - ---- - .../org.eclipse.jdt.launching.javaagent/pom.xml | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml b/eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml -index 8d32e4fa5..dd76e096a 100644 ---- a/eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml -+++ b/eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml -@@ -77,6 +77,14 @@ - - - javaagent-shaded -+ -+ -+ *:* -+ -+ **/module-info.class -+ -+ -+ - - - --- -2.26.2 - diff --git a/SOURCES/0002-Allow-bootstrapping-against-OSGi-Core-R6.patch b/SOURCES/0002-Allow-bootstrapping-against-OSGi-Core-R6.patch deleted file mode 100644 index 7a4041d..0000000 --- a/SOURCES/0002-Allow-bootstrapping-against-OSGi-Core-R6.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 006d5e833eae44aab2514918acfe20f8ab3992d2 Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Tue, 12 Mar 2019 15:12:37 +0000 -Subject: [PATCH 2/4] Allow bootstrapping against OSGi Core R6 - ---- - .../http/servlet/internal/HttpServiceRuntimeImpl.java | 8 ++++++-- - 1 file changed, 6 insertions(+), 2 deletions(-) - -diff --git a/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java b/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java -index 8d07030b8..530f5bb11 100644 ---- a/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java -+++ b/rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/HttpServiceRuntimeImpl.java -@@ -1341,8 +1341,12 @@ public class HttpServiceRuntimeImpl - @Override - public Void call() { - try { -- Dictionary properties = getHsrRegistration().getReference().getProperties(); -- properties.put(Constants.SERVICE_CHANGECOUNT, getServiceChangecount()); -+ Dictionary properties = new Hashtable(); -+ String[] keys = getHsrRegistration().getReference().getPropertyKeys(); -+ for (String key : keys) { -+ properties.put(key, getHsrRegistration().getReference().getProperty(key)); -+ } -+ properties.put("service.changecount", getServiceChangecount()); - getHsrRegistration().setProperties(properties); - return null; - } --- -2.26.2 - diff --git a/SOURCES/0004-Add-parent-pom-for-old-tycho-pomless.patch b/SOURCES/0004-Add-parent-pom-for-old-tycho-pomless.patch deleted file mode 100644 index 8e57dfd..0000000 --- a/SOURCES/0004-Add-parent-pom-for-old-tycho-pomless.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 1373863303582bd46daea47db219506c0fbebcee Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Wed, 13 May 2020 15:24:34 +0100 -Subject: [PATCH 4/4] Add parent pom for old tycho-pomless - ---- - eclipse.platform.resources/bundles/pom.xml | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - create mode 100644 eclipse.platform.resources/bundles/pom.xml - -diff --git a/eclipse.platform.resources/bundles/pom.xml b/eclipse.platform.resources/bundles/pom.xml -new file mode 100644 -index 000000000..44a2f411b ---- /dev/null -+++ b/eclipse.platform.resources/bundles/pom.xml -@@ -0,0 +1,12 @@ -+ -+ 4.0.0 -+ -+ eclipse.platform.resources -+ eclipse.platform.resources -+ 4.16.0-SNAPSHOT -+ .. -+ -+ eclipse.platform.resources -+ eclipse.platform.resources-bundles -+ pom -+ --- -2.26.2 - diff --git a/SOURCES/eclipse-adjust-droplets.patch b/SOURCES/eclipse-adjust-droplets.patch new file mode 100644 index 0000000..c751924 --- /dev/null +++ b/SOURCES/eclipse-adjust-droplets.patch @@ -0,0 +1,52 @@ +diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java +index 5fc0e73..ed7e4fa 100644 +--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java ++++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/src/org/eclipse/equinox/internal/p2/engine/EngineActivator.java +@@ -150,7 +150,20 @@ public class EngineActivator implements BundleActivator { + } + continue; + } +- File[] listFiles = extension.listFiles(); ++ ++ // Support the additional 'eclipse' directory if it exists. ++ File[] extensionFiles = extension.listFiles(new FilenameFilter() { ++ public boolean accept(File dir, String name) { ++ return name.equals("eclipse"); ++ } ++ }); ++ ++ File[] listFiles; ++ if (extensionFiles.length == 1) { ++ listFiles = extensionFiles[0].listFiles(); ++ } else { ++ listFiles = extension.listFiles(); ++ } + // new magic - multiple info files, f.e. + // egit.info (git feature) + // cdt.linkĀ (properties file containing link=path) to other info file +diff --git rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java +index 12e4d89..77945ef 100644 +--- rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java ++++ rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java +@@ -160,7 +160,20 @@ public class SimpleConfiguratorUtils { + } + continue; + } +- File[] listFiles = extension.listFiles(); ++ ++ // Support the additional 'eclipse' directory if it exists. ++ File[] extensionFiles = extension.listFiles(new FilenameFilter() { ++ public boolean accept(File dir, String name) { ++ return name.equals("eclipse"); ++ } ++ }); ++ ++ File[] listFiles; ++ if (extensionFiles.length == 1) { ++ listFiles = extensionFiles[0].listFiles(); ++ } else { ++ listFiles = extension.listFiles(); ++ } + // new magic - multiple info files, f.e. + // egit.info (git feature) + // cdt.linkĀ (properties file containing link=path) to other info file diff --git a/SOURCES/eclipse-debug-symbols.patch b/SOURCES/eclipse-debug-symbols.patch index 9d9d63d..60016c2 100644 --- a/SOURCES/eclipse-debug-symbols.patch +++ b/SOURCES/eclipse-debug-symbols.patch @@ -12,7 +12,7 @@ if [ "${OS}" = "" ]; then --- rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak.orig 2019-03-20 10:22:21.420240101 +0000 +++ rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/make_linux.mak 2019-03-20 10:53:53.375471427 +0000 -@@ -82,7 +82,7 @@ +@@ -92,7 +92,7 @@ -DPIXBUF_LIB="\"libgdk_pixbuf-2.0.so.0\"" -DGOBJ_LIB="\"libgobject-2.0.so.0\"" \ -DGIO_LIB="\"libgio-2.0.so.0\"" -DGLIB_LIB="\"libglib-2.0.so.0\"" LFLAGS = ${M_ARCH} -shared -fpic -Wl,--export-dynamic @@ -21,6 +21,31 @@ -fpic \ -DLINUX \ -DDEFAULT_OS="\"$(DEFAULT_OS)\"" \ +--- rt.equinox.bundles/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile.orig 2019-03-19 22:40:23.145082352 +0000 ++++ rt.equinox.bundles/bundles/org.eclipse.equinox.security.linux.x86_64/keystorelinuxnative/makefile 2019-03-20 09:29:20.370457348 +0000 +@@ -1,7 +1,8 @@ + LIBSECRET_CFLAGS = `pkg-config --cflags libsecret-1` + LIBSECRET_LIBS = `pkg-config --libs libsecret-1` + +-CFLAGS = -shared -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" ++CFLAGS := $(CFLAGS) -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" $(LIBSECRET_CFLAGS) ++LDFLAGS := $(LDFLAGS) -shared $(LIBSECRET_LIBS) + + all: ../libkeystorelinuxnative.so + +@@ -9,10 +10,10 @@ + rm ../libkeystorelinuxnative.so ../target/keystoreLinuxNative.o + + ../libkeystorelinuxnative.so: ../target/keystoreLinuxNative.o +- $(CC) $(CFLAGS) -o $@ $< $(LIBSECRET_LIBS) ++ $(CC) $(LDFLAGS) -o $@ $< + + ../target/keystoreLinuxNative.o: ../target keystoreLinuxNative.c +- $(CC) -c -fPIC -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/linux" -o $@ $(TESTFLAGS) $(LIBSECRET_CFLAGS) keystoreLinuxNative.c ++ $(CC) -c $(CFLAGS) -o $@ $(TESTFLAGS) keystoreLinuxNative.c + + ../target: + mkdir -p ../target --- eclipse.platform.team/bundles/org.eclipse.core.net/natives/unix/linux/makefile.orig 2019-03-20 09:49:40.694899138 +0000 +++ eclipse.platform.team/bundles/org.eclipse.core.net/natives/unix/linux/makefile 2019-03-20 10:20:21.704664294 +0000 @@ -25,10 +25,10 @@ diff --git a/SOURCES/eclipse-disable-droplets-in-dropins.patch b/SOURCES/eclipse-disable-droplets-in-dropins.patch index 9c78052..b45995e 100644 --- a/SOURCES/eclipse-disable-droplets-in-dropins.patch +++ b/SOURCES/eclipse-disable-droplets-in-dropins.patch @@ -17,7 +17,7 @@ diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/o index 802ee1b..74023fe 100644 --- rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java +++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/PlatformXmlListener.java -@@ -172,11 +172,24 @@ public class PlatformXmlListener extends DirectoryChangeListener { +@@ -171,11 +171,24 @@ public class PlatformXmlListener extends DirectoryChangeListener { * Ensure that we have a repository for each site in the given configuration. */ protected void synchronizeConfiguration(Configuration config) { diff --git a/SOURCES/eclipse-disable-uses-constraints.patch b/SOURCES/eclipse-disable-uses-constraints.patch index 43278ee..5a56e61 100644 --- a/SOURCES/eclipse-disable-uses-constraints.patch +++ b/SOURCES/eclipse-disable-uses-constraints.patch @@ -12,7 +12,7 @@ diff --git rt.equinox.framework/bundles/org.eclipse.osgi/felix/src/org/apache/fe index ded683f..7216865 100755 --- rt.equinox.framework/bundles/org.eclipse.osgi/felix/src/org/apache/felix/resolver/ResolverImpl.java +++ rt.equinox.framework/bundles/org.eclipse.osgi/felix/src/org/apache/felix/resolver/ResolverImpl.java -@@ -1234,7 +1234,9 @@ public class ResolverImpl implements Resolver +@@ -1231,7 +1231,9 @@ public class ResolverImpl implements Resolver { public void run() { diff --git a/SOURCES/eclipse-ebz542708.patch b/SOURCES/eclipse-ebz542708.patch new file mode 100644 index 0000000..d1696ae --- /dev/null +++ b/SOURCES/eclipse-ebz542708.patch @@ -0,0 +1,28 @@ +From ceaa5685fe7f51dae0ce444407d2aea7a49b8896 Mon Sep 17 00:00:00 2001 +From: Lakshminarayana Nekkanti +Date: Mon, 3 Jun 2019 15:12:13 +0530 +Subject: Bug 542708 - stale JRE shown in Package Explorer after changing it + from 9 or above to 11 + +Change-Id: Ia9ef62a7e90fb12c9107bfaaf2f47af97fca75fb +Signed-off-by: Lakshminarayana Nekkanti +--- + .../jdt/internal/ui/packageview/PackageExplorerContentProvider.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java +index ff62fa9eda..143364142a 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java +@@ -657,7 +657,7 @@ public class PackageExplorerContentProvider extends StandardJavaElementContentPr + return false; + } + // if the class path has changed we refresh the entire project +- if ((flags & IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED) != 0) { ++ if ((flags & (IJavaElementDelta.F_CLASSPATH_CHANGED | IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED)) != 0) { + postRefresh(element, ORIGINAL, element, runnables); + return false; + } +-- +cgit v1.2.1 + diff --git a/SOURCES/eclipse-ebz548211-2.patch b/SOURCES/eclipse-ebz548211-2.patch new file mode 100644 index 0000000..fff6f28 --- /dev/null +++ b/SOURCES/eclipse-ebz548211-2.patch @@ -0,0 +1,114 @@ +From 9ecc34bf838eae50a356b20c76d35fb62a423563 Mon Sep 17 00:00:00 2001 +From: Stephan Herrmann +Date: Tue, 18 Jun 2019 16:28:49 +0200 +Subject: Bug 548211 - "Remove" in the Module dependencies tab does not remove + system modules + +- more fixes, concerning update on Apply and re-open with only java.base + +Change-Id: I39a7a1da6c8ae733010009372fd36a88814e4faf +--- + .../ui/wizards/buildpaths/BuildPathsBlock.java | 3 +++ + .../ui/wizards/buildpaths/CPListElement.java | 24 +++++++++++++++------- + .../wizards/buildpaths/ModuleDependenciesPage.java | 13 ++++++++++++ + 3 files changed, 33 insertions(+), 7 deletions(-) + +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java +index 3fec77d579..37229a834b 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java +@@ -395,6 +395,9 @@ public class BuildPathsBlock { + } + + protected void doUpdateUI() { ++ if (fModulesPage.needReInit()) { ++ init(fCurrJProject, null, null); // extent of system modules was changed, re-init fClassPathList ++ } + fBuildPathDialogField.refresh(); + fClassPathList.refresh(); + boolean is9OrHigherAfter= JavaModelUtil.is9OrHigher(fCurrJProject); +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java +index a3c475e7ea..c670c0770f 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/CPListElement.java +@@ -42,6 +42,7 @@ import org.eclipse.jdt.core.IModuleDescription; + import org.eclipse.jdt.core.IPackageFragmentRoot; + import org.eclipse.jdt.core.JavaCore; + import org.eclipse.jdt.core.JavaModelException; ++import org.eclipse.jdt.core.provisional.JavaModelAccess; + + + import org.eclipse.jdt.internal.corext.util.JavaModelUtil; +@@ -207,13 +208,22 @@ public class CPListElement { + boolean modulesAdded= false; + if (containerEntry != null) { + IPackageFragmentRoot[] fragmentRoots= fProject.findPackageFragmentRoots(containerEntry); +- if (fragmentRoots != null && fragmentRoots.length > 1) { +- for (IPackageFragmentRoot fragmentRoot : fragmentRoots) { +- IModuleDescription currModule= fragmentRoot.getModuleDescription(); +- if (currModule != null) { +- CPListElement curr= create(this, pseudoEntry, currModule, true, fProject); +- fChildren.add(curr); +- modulesAdded= true; ++ if (fragmentRoots != null) { ++ // detect if system library: ++ boolean addChildren= false; ++ if (fragmentRoots.length > 0) { ++ IModuleDescription module= fragmentRoots[0].getModuleDescription(); ++ if (module != null && JavaModelAccess.isSystemModule(module)) ++ addChildren= true; ++ } ++ if (addChildren) { ++ for (IPackageFragmentRoot fragmentRoot : fragmentRoots) { ++ IModuleDescription currModule= fragmentRoot.getModuleDescription(); ++ if (currModule != null) { ++ CPListElement curr= create(this, pseudoEntry, currModule, true, fProject); ++ fChildren.add(curr); ++ modulesAdded= true; ++ } + } + } + } +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java +index b813d22956..e9f1c9feff 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java +@@ -164,6 +164,7 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + private Collection fAllDefaultSystemModules; // if current is unnamed module: transitive closure of default root modules (names) + + public final Map fPatchMap= new HashMap<>(); ++ private boolean needReInit= false; + + public ModuleDependenciesPage(IStatusChangeListener context, CheckedListDialogField classPathList) { + fClassPathList= classPathList; +@@ -530,6 +531,7 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + } + updateLimitModules(cpListElement.findAttributeElement(CPListElement.MODULE)); + fModuleList.refresh(); ++ this.needReInit= true; + } + + public void addToSystemModules(List modulesToAdd) throws JavaModelException { +@@ -655,8 +657,19 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + } + } + } ++ this.needReInit= true; + } + ++ /** Destructively reed the needReInit flag. ++ * @return {@code true} if the classpath needs to be reinitialized due to change of extent of the system library ++ */ ++ public boolean needReInit() { ++ try { ++ return this.needReInit; ++ } finally { ++ this.needReInit= false; ++ } ++ } + private Set computeForwardClosure(List seeds) { + Set closure= new HashSet<>(); + collectForwardClosure(seeds, closure); +-- +cgit v1.2.1 + diff --git a/SOURCES/eclipse-ebz548211.patch b/SOURCES/eclipse-ebz548211.patch new file mode 100644 index 0000000..f390e6d --- /dev/null +++ b/SOURCES/eclipse-ebz548211.patch @@ -0,0 +1,94 @@ +From 5ca45e97b527b5a4d4ed4ce92e32720859911968 Mon Sep 17 00:00:00 2001 +From: Stephan Herrmann +Date: Sat, 15 Jun 2019 20:47:45 +0200 +Subject: Bug 548211 - "Remove" in the Module dependencies tab does not remove + system modules + +Change-Id: I633fa86e5911c50b17a1c7ef188805902942e1db +--- + .../jdt/internal/ui/wizards/NewWizardMessages.java | 1 + + .../ui/wizards/NewWizardMessages.properties | 1 + + .../wizards/buildpaths/ModuleDependenciesPage.java | 22 ++++++++++++++++++---- + 3 files changed, 20 insertions(+), 4 deletions(-) + +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.java +index 3a66ae56ed..961aa63bba 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.java +@@ -564,6 +564,7 @@ public final class NewWizardMessages extends NLS { + public static String ModuleDependenciesPage_removeCurrentModule_error; + public static String ModuleDependenciesPage_removeModule_error_with_hint; + public static String ModuleDependenciesPage_removeSystemModule_error_hint; ++ public static String ModuleDependenciesPage_moduleIsRequired_error_hint; + + public static String ModuleDependenciesAdapter_patchConflict_title; + public static String ModuleDependenciesAdapter_patchConflict_message; +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.properties b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.properties +index feb30bc627..a3d8a04624 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.properties ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/NewWizardMessages.properties +@@ -605,6 +605,7 @@ ModuleDependenciesPage_removeCurrentModule_error=Cannot remove the current modul + ModuleDependenciesPage_removeModule_error_with_hint=Cannot remove module ''{0}''{1} + ModuleDependenciesPage_removeSystemModule_error_hint=\nOnly system modules can be removed here.\n\ + To remove other modules please remove them from the Modulepath (Projects or Libraries tab). ++ModuleDependenciesPage_moduleIsRequired_error_hint=\nIt is required along the path {0} + + ModuleDependenciesAdapter_patchConflict_title=Patch module conflict + ModuleDependenciesAdapter_patchConflict_message=The {0} {1} was declared to patch module ''{2}''.\n\ +diff --git a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java +index ccc5c3317a..b813d22956 100644 +--- a/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java ++++ b/eclipse.jdt.ui/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ModuleDependenciesPage.java +@@ -614,7 +614,16 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + return; + } + selectedModuleNames.add(moduleName); +- collectModulesToRemove(moduleName, allModulesToRemove); ++ String problemModule= collectModulesToRemove(moduleName, allModulesToRemove); ++ if (problemModule != null) { ++ int lastArrow= problemModule.lastIndexOf("->"); //$NON-NLS-1$ ++ String leafMod= lastArrow == -1 ? problemModule : problemModule.substring(lastArrow+2); ++ MessageDialog.openError(getShell(), NewWizardMessages.ModuleDependenciesPage_removeModule_dialog_title, ++ MessageFormat.format(NewWizardMessages.ModuleDependenciesPage_removeModule_error_with_hint, ++ leafMod, ++ MessageFormat.format(NewWizardMessages.ModuleDependenciesPage_moduleIsRequired_error_hint, problemModule))); ++ return; ++ } + } + String seedModules= String.join(", ", selectedModuleNames); //$NON-NLS-1$ + if (allModulesToRemove.size() == selectedModuleNames.size()) { +@@ -664,15 +673,20 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + } + } + +- private void collectModulesToRemove(String mod, Set modulesToRemove) { ++ private String collectModulesToRemove(String mod, Set modulesToRemove) { + if (fModuleList.fNames.contains(mod) && modulesToRemove.add(mod)) { + List requireds= fModuleRequiredByModules.get(mod); + if (requireds != null) { + for (String required : requireds) { +- collectModulesToRemove(required, modulesToRemove); ++ if (fModuleList.getModuleKind(required) == ModuleKind.Focus) ++ return required + "->" + mod; //$NON-NLS-1$ ++ String problemModule= collectModulesToRemove(required, modulesToRemove); ++ if (problemModule != null) ++ return problemModule + "->" + mod; //$NON-NLS-1$ + } + } + } ++ return null; + } + + private boolean confirmRemoveModule(String message) { +@@ -741,7 +755,7 @@ public class ModuleDependenciesPage extends BuildPathBasePage { + List dominators= fModuleRequiredByModules.get(name); + if (dominators != null) { + for (String dominator : dominators) { +- if (names.contains(dominator)) { ++ if (names.contains(dominator) && fModuleList.getModuleKind(dominator) == ModuleKind.System) { + continue outer; + } + } +-- +cgit v1.2.1 + diff --git a/SOURCES/eclipse-feature-plugins-to-category-ius.patch b/SOURCES/eclipse-feature-plugins-to-category-ius.patch index 5e797f8..b255cc7 100644 --- a/SOURCES/eclipse-feature-plugins-to-category-ius.patch +++ b/SOURCES/eclipse-feature-plugins-to-category-ius.patch @@ -1,26 +1,23 @@ -From 6dd34f0b0365e0529f3852c688bfd99519f035d1 Mon Sep 17 00:00:00 2001 +From 42b1d14319f47d477f057a14aa1e2481729c6b13 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Thu, 6 Dec 2018 11:38:58 +0000 -Subject: [PATCH] IU inclusion changes: +Subject: [PATCH 1/2] Change features bundling third-party modules to feature + requirements -* Change features bundling third-party modules to feature requirements -* Make some IU name changes to accommodate for distro-specific packaging --- .../org.eclipse.jdt-feature/feature.xml | 114 ++----------- .../org.eclipse.pde-feature/feature.xml | 16 +- - .../bundles/org.eclipse.jdt.doc.isv/pom.xml | 2 +- - .../bundles/org.eclipse.pde.doc.user/pom.xml | 2 +- - .../org.eclipse.platform.doc.isv/pom.xml | 10 +- + .../org.eclipse.platform.doc.isv/pom.xml | 11 +- .../org.eclipse.help-feature/feature.xml | 130 +++------------ .../org.eclipse.platform-feature/feature.xml | 18 +-- .../org.eclipse.sdk.tests/feature.xml | 58 ++----- .../org.eclipse.test-feature/feature.xml | 56 +------ .../org.eclipse.tips.feature/feature.xml | 11 +- .../features/org.eclipse.e4.rcp/feature.xml | 150 ++---------------- - 11 files changed, 87 insertions(+), 480 deletions(-) + 9 files changed, 83 insertions(+), 481 deletions(-) diff --git a/eclipse.jdt/org.eclipse.jdt-feature/feature.xml b/eclipse.jdt/org.eclipse.jdt-feature/feature.xml -index e12ef6a13..6deae2a13 100644 +index 06887d901..364cae9d8 100644 --- a/eclipse.jdt/org.eclipse.jdt-feature/feature.xml +++ b/eclipse.jdt/org.eclipse.jdt-feature/feature.xml @@ -19,6 +19,23 @@ @@ -47,7 +44,7 @@ index e12ef6a13..6deae2a13 100644 @@ -152,7 +149,7 @@ index e12ef6a13..6deae2a13 100644 id="org.eclipse.jdt.doc.user" download-size="0" diff --git a/eclipse.pde.ui/features/org.eclipse.pde-feature/feature.xml b/eclipse.pde.ui/features/org.eclipse.pde-feature/feature.xml -index 57a58c6d5..a9c3e2c9b 100644 +index 4197cffde..85ab44540 100644 --- a/eclipse.pde.ui/features/org.eclipse.pde-feature/feature.xml +++ b/eclipse.pde.ui/features/org.eclipse.pde-feature/feature.xml @@ -21,6 +21,8 @@ @@ -186,25 +183,24 @@ index 57a58c6d5..a9c3e2c9b 100644 id="org.eclipse.pde.api.tools" download-size="0" diff --git a/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/pom.xml b/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/pom.xml -index 5b9e03021..1702d4dc6 100644 +index f3432dba5..c70631e90 100644 --- a/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/pom.xml +++ b/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/pom.xml -@@ -78,12 +78,12 @@ +@@ -78,12 +78,7 @@ eclipse-plugin - javax.annotation -+ javax.annotation - 0.0.0 - - - eclipse-plugin +- 0.0.0 +- +- +- eclipse-plugin - javax.el + javax.el-api 0.0.0 -@@ -93,7 +93,7 @@ +@@ -75,7 +70,7 @@ eclipse-plugin @@ -213,7 +209,7 @@ index 5b9e03021..1702d4dc6 100644 0.0.0 -@@ -118,7 +118,7 @@ +@@ -95,7 +90,7 @@ eclipse-plugin @@ -223,7 +219,7 @@ index 5b9e03021..1702d4dc6 100644 diff --git a/eclipse.platform.releng/features/org.eclipse.help-feature/feature.xml b/eclipse.platform.releng/features/org.eclipse.help-feature/feature.xml -index 79fa77d7e..5f3d6f6d0 100644 +index 853db711d..5195b6d59 100644 --- a/eclipse.platform.releng/features/org.eclipse.help-feature/feature.xml +++ b/eclipse.platform.releng/features/org.eclipse.help-feature/feature.xml @@ -21,69 +21,6 @@ @@ -376,7 +372,7 @@ index 79fa77d7e..5f3d6f6d0 100644 + diff --git a/eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml b/eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml -index 94f21e6f8..694d49dc1 100644 +index f825d4539..a9b974ca5 100644 --- a/eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml +++ b/eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml @@ -19,6 +19,11 @@ @@ -419,7 +415,7 @@ index 94f21e6f8..694d49dc1 100644 id="org.eclipse.compare.core" download-size="0" diff --git a/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml b/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml -index 6d7659ab9..23f4e6524 100644 +index a3a7d14a0..f0dab84a3 100644 --- a/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml +++ b/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml @@ -19,6 +19,15 @@ @@ -438,7 +434,7 @@ index 6d7659ab9..23f4e6524 100644 -@@ -427,20 +436,6 @@ +@@ -421,20 +430,6 @@ install-size="0" version="0.0.0"/> @@ -459,7 +455,7 @@ index 6d7659ab9..23f4e6524 100644 @@ -502,7 +498,7 @@ index 6d7659ab9..23f4e6524 100644 id="org.eclipse.ui.tests.pluginchecks" download-size="0" diff --git a/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml b/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml -index 1f422b76e..9e26326c3 100644 +index 1dcc94c1c..2a4871027 100644 --- a/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml +++ b/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml @@ -19,6 +19,14 @@ @@ -580,7 +576,7 @@ index 1f422b76e..9e26326c3 100644 - diff --git a/eclipse.platform.ua/org.eclipse.tips.feature/feature.xml b/eclipse.platform.ua/org.eclipse.tips.feature/feature.xml -index b8f52fe1a..a1d866a52 100644 +index 88d843b0f..d5b8195bc 100644 --- a/eclipse.platform.ua/org.eclipse.tips.feature/feature.xml +++ b/eclipse.platform.ua/org.eclipse.tips.feature/feature.xml @@ -32,6 +32,10 @@ @@ -607,7 +603,7 @@ index b8f52fe1a..a1d866a52 100644 - diff --git a/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml b/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml -index 0ce4361be..ac28b73c2 100644 +index ba217da7b..464451193 100644 --- a/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml +++ b/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml @@ -22,6 +22,23 @@ @@ -619,7 +615,7 @@ index 0ce4361be..ac28b73c2 100644 + + + -+ ++ + + + @@ -767,7 +763,7 @@ index 0ce4361be..ac28b73c2 100644 @@ -795,7 +791,7 @@ index 0ce4361be..ac28b73c2 100644 @@ -810,5 +806,5 @@ index 0ce4361be..ac28b73c2 100644 id="org.eclipse.e4.emf.xpath" download-size="0" -- -2.21.1 +2.19.1 diff --git a/SOURCES/eclipse-fix-dropins.patch b/SOURCES/eclipse-fix-dropins.patch index e3efe03..c35b86d 100644 --- a/SOURCES/eclipse-fix-dropins.patch +++ b/SOURCES/eclipse-fix-dropins.patch @@ -8,7 +8,7 @@ private static final String SIMPLE_PROFILE_REGISTRY_INTERNAL = "_simpleProfileRegistry_internal_"; //$NON-NLS-1$ private static final String PROFILE_REGISTRY = "profile registry"; //$NON-NLS-1$ private static final String PROFILE_PROPERTIES_FILE = "state.properties"; //$NON-NLS-1$ -@@ -274,6 +275,14 @@ +@@ -279,6 +280,14 @@ //fragments support - remeber the property internalSetProfileStateProperty(profile, profile.getTimestamp(), SIMPLE_PROFILE_REGISTRY_INTERNAL + getExtTimeStamp(), getExtTimeStamp()); agent.registerService(SERVICE_SHARED_INSTALL_NEW_TIMESTAMP, Long.toString(profile.getTimestamp())); @@ -23,7 +23,7 @@ } else { //This is the first time we create the shared profile. Tag it as such and also remember the timestamp of the base internalSetProfileStateProperty(profile, profile.getTimestamp(), IProfile.STATE_PROP_SHARED_INSTALL, IProfile.STATE_SHARED_INSTALL_VALUE_INITIAL); -@@ -307,6 +316,13 @@ +@@ -312,6 +321,13 @@ if (agent.getService(SERVICE_SHARED_INSTALL_NEW_TIMESTAMP) != null) return false; @@ -37,17 +37,17 @@ String baseTimestamp = getBaseTimestamp(profile.getProfileId()); String extTimestamp = getExtTimeStamp(); if (baseTimestamp == null) { ---- rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java.orig 2019-09-13 14:45:20.806922186 +0100 -+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java 2019-09-13 14:46:41.124689025 +0100 -@@ -560,6 +560,7 @@ +--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java ++++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.reconciler.dropins/src/org/eclipse/equinox/internal/p2/reconciler/dropins/ProfileSynchronizer.java +@@ -563,6 +563,7 @@ - // get all IUs from all our repos + // get all IUs from all our repos IQueryResult allIUs = getAllIUsFromRepos(); + HashSet removedFromAllIUs = new HashSet(); for (Iterator iter = allIUs.iterator(); iter.hasNext();) { final IInstallableUnit iu = iter.next(); IInstallableUnit existing = profileIUs.get(iu); -@@ -573,6 +574,7 @@ +@@ -576,6 +577,7 @@ // (and more expensive) way to find this out is to do an IU profile property query. if (two == null) { // the IU is already installed so don't mark it as a dropin now - see bug 404619. @@ -55,7 +55,7 @@ iter.remove(); continue; } -@@ -614,7 +616,7 @@ +@@ -618,7 +620,7 @@ } // if the IU from the profile is in the "all available" list, then it is already added // otherwise if it isn't in the repo then we have to remove it from the profile. @@ -64,25 +64,25 @@ toRemove.add(iu); } -@@ -787,7 +789,8 @@ +@@ -792,8 +794,8 @@ + IStatus installerPlanStatus = engine.perform(plan.getInstallerPlan(), phaseSet, monitor); if (!installerPlanStatus.isOK()) return installerPlanStatus; - +- - applyConfiguration(true); + if (isReconciliationApplicationRunning()) + applyConfiguration(true); } return engine.perform(plan, phaseSet, monitor); } ---- rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationWizard.java.orig 2019-09-13 14:42:54.512346840 +0100 -+++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationWizard.java 2019-09-13 14:43:12.003296065 +0100 -@@ -158,8 +158,7 @@ +--- rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationWizard.java.orig 2018-04-25 20:31:57.931223008 +0100 ++++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui.sdk.scheduler/src/org/eclipse/equinox/internal/p2/ui/sdk/scheduler/migration/MigrationWizard.java 2018-04-25 20:32:11.069144336 +0100 +@@ -151,7 +151,7 @@ @Override public boolean performCancel() { -- String[] buttons = new String[] { IDialogConstants.YES_LABEL, ProvUIMessages.MigrationPage_LATER_BUTTON, -- IDialogConstants.NO_LABEL }; -+ String[] buttons = new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }; - MessageDialog dialog = new MessageDialog(getShell(), ProvUIMessages.MigrationPage_CONFIRMATION_TITLE, null, - ProvUIMessages.MigrationPage_CONFIRMATION_DIALOG, MessageDialog.QUESTION, buttons, 2); +- String[] buttons = new String[] {IDialogConstants.YES_LABEL, ProvUIMessages.MigrationPage_LATER_BUTTON, IDialogConstants.NO_LABEL}; ++ String[] buttons = new String[] {IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL}; + MessageDialog dialog = new MessageDialog(getShell(), ProvUIMessages.MigrationPage_CONFIRMATION_TITLE, null, ProvUIMessages.MigrationPage_CONFIRMATION_DIALOG, MessageDialog.QUESTION, buttons, 2); + return rememberCancellationDecision(dialog.open()); diff --git a/SOURCES/eclipse-fix-tests.patch b/SOURCES/eclipse-fix-tests.patch index 620831f..39bf472 100644 --- a/SOURCES/eclipse-fix-tests.patch +++ b/SOURCES/eclipse-fix-tests.patch @@ -1,6 +1,6 @@ --- eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target/MinimalTargetDefinitionPersistenceTests.java.orig 2016-04-19 20:07:36.947017206 +0100 +++ eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/src/org/eclipse/pde/ui/tests/target/MinimalTargetDefinitionPersistenceTests.java 2016-04-19 20:09:59.166077383 +0100 -@@ -80,7 +80,7 @@ +@@ -76,7 +76,7 @@ */ protected IPath getJdtFeatureLocation() { IPath path = new Path(TargetPlatform.getDefaultLocation()); @@ -13,7 +13,7 @@ diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/eq index f1f38f0..f9111e6 100644 --- rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java +++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/reconciler/dropins/AbstractReconcilerTest.java -@@ -246,7 +246,7 @@ +@@ -217,7 +217,7 @@ if (parent != null) { File[] children = parent.listFiles((FileFilter) pathname -> { String name = pathname.getName(); @@ -52,16 +52,16 @@ diff --git eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties index bc8963d..fbe4da3 100644 --- eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties +++ eclipse.jdt.core/org.eclipse.jdt.compiler.apt.tests/build.properties -@@ -28,3 +28,6 @@ +@@ -25,3 +25,6 @@ src.includes = about.html compilerArg=-proc:none - jars.extra.classpath = lib/java14api.jar + jars.extra.classpath = lib/java10api.jar +source.lib/apttestprocessors.jar = processors/ +jars.compile.order = lib/apttestprocessors.jar,\ + . --- eclipse.platform/ant/org.eclipse.ant.tests.ui/build.properties.orig 2016-03-24 14:25:47.076289150 +0000 +++ eclipse.platform/ant/org.eclipse.ant.tests.ui/build.properties 2016-03-24 14:26:39.528660802 +0000 -@@ -28,6 +28,8 @@ +@@ -25,6 +25,8 @@ Ant Tests/ source.lib/antUITestsSupport.jar = test support/ @@ -73,7 +73,7 @@ index bc8963d..fbe4da3 100644 output.anttestsui.jar = bin/ --- eclipse.jdt.ui/org.eclipse.jdt.ui.tests/build.properties.orig 2016-03-25 15:09:40.557786910 +0000 +++ eclipse.jdt.ui/org.eclipse.jdt.ui.tests/build.properties 2016-03-25 15:12:08.476059326 +0000 -@@ -25,3 +25,5 @@ +@@ -22,3 +22,5 @@ leaks/,\ performance/ javacWarnings..=-raw,-unchecked @@ -188,7 +188,7 @@ index bc8963d..fbe4da3 100644 +SearchResultView.removed_resource= --- eclipse.platform/ant/org.eclipse.ant.tests.core/build.properties.orig 2017-03-03 14:20:53.868573338 +0000 +++ eclipse.platform/ant/org.eclipse.ant.tests.core/build.properties 2017-03-06 14:26:42.382365639 +0000 -@@ -26,6 +26,8 @@ +@@ -23,6 +23,8 @@ source.anttestscore.jar = test plugin/,\ tests/ source.lib/antTestsSupport.jar = test support/ @@ -226,7 +226,7 @@ index bc8963d..fbe4da3 100644 + --- eclipse.pde.build/org.eclipse.pde.build.tests/test.xml.orig 2017-04-28 11:49:47.046123546 +0100 +++ eclipse.pde.build/org.eclipse.pde.build.tests/test.xml 2017-04-28 12:05:11.947521737 +0100 -@@ -159,13 +159,6 @@ +@@ -156,13 +156,6 @@ id="org.eclipse.jdt.source.feature.group" version="" /> ---- eclipse.jdt.debug/org.eclipse.jdt.debug.ui/build.properties.orig 2019-12-19 05:19:24.194321737 +0000 -+++ eclipse.jdt.debug/org.eclipse.jdt.debug.ui/build.properties 2019-12-19 05:20:03.702264652 +0000 -@@ -21,6 +21,9 @@ - - src.includes = about.html,\ - schema/ -+source.snippetsupport.jar=Snippet Support/ - source.. = ui/ - output.. = bin/ -+output.snippetsupport.jar = snippet_bin/ - javacWarnings..=-unavoidableGenericProblems -+javacWarnings.snippersupport.jar=-unavoidableGenericProblems diff --git a/SOURCES/eclipse-hide-droplets-from-install-wizard.patch b/SOURCES/eclipse-hide-droplets-from-install-wizard.patch index 729b2ae..c261fef 100644 --- a/SOURCES/eclipse-hide-droplets-from-install-wizard.patch +++ b/SOURCES/eclipse-hide-droplets-from-install-wizard.patch @@ -1,19 +1,17 @@ -From a23545ef5b4cbb94ff048fda2839ba08c3593d50 Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Thu, 3 May 2018 15:58:49 +0100 -Subject: [PATCH] Bug 534326 - Awkward p2 UI when many droplets are installed - Filter out software site locations where we know that they are p2 droplets in - places we show the list to the user. Change-Id: - I12364223850862783cb7cffd32fb7428fbf6b270 Signed-off-by: Mat Booth - +commit 4bfc5a7c6d8c2aaf954c113d805419472de2bcaf +Author: Mat Booth +Date: Thu May 3 15:58:49 2018 +0100 ---- - .../p2/ui/dialogs/RepositorySelectionGroup.java | 13 +++++++++++++ - .../equinox/p2/ui/RepositoryManipulationPage.java | 15 ++++++++++++++- - 2 files changed, 27 insertions(+), 1 deletion(-) + Bug 534326 - Awkward p2 UI when many droplets are installed + + Filter out software site locations where we know that they are p2 + droplets in places we show the list to the user. + + Change-Id: I12364223850862783cb7cffd32fb7428fbf6b270 + Signed-off-by: Mat Booth diff --git a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositorySelectionGroup.java b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositorySelectionGroup.java -index d07be5d43..c666f8fdc 100644 +index e6eef8c39..fe5970e79 100644 --- a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositorySelectionGroup.java +++ b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/RepositorySelectionGroup.java @@ -303,6 +303,19 @@ public class RepositorySelectionGroup { @@ -37,7 +35,7 @@ index d07be5d43..c666f8fdc 100644 final String[] items; if (hasLocalSites) { diff --git a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RepositoryManipulationPage.java b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RepositoryManipulationPage.java -index 78fb5398e..b8e724b66 100644 +index d796aefd0..c03924f90 100644 --- a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RepositoryManipulationPage.java +++ b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/p2/ui/RepositoryManipulationPage.java @@ -133,9 +133,22 @@ public class RepositoryManipulationPage extends PreferencePage implements IWorkb @@ -45,25 +43,22 @@ index 78fb5398e..b8e724b66 100644 Object[] children = super.fetchChildren(o, monitor); cachedElements = new Hashtable<>(children.length); + String fragments = System.getProperty("p2.fragments"); //$NON-NLS-1$ - for (Object element : children) { - if (element instanceof MetadataRepositoryElement) { -- put((MetadataRepositoryElement) element); + for (int i = 0; i < children.length; i++) { + if (children[i] instanceof MetadataRepositoryElement) { +- put((MetadataRepositoryElement) children[i]); + // Filter out locations that are actually installed p2 droplets + if (fragments != null) { + boolean isDroplet = false; + for (String root : fragments.split(",")) { //$NON-NLS-1$ -+ URI childLoc = ((MetadataRepositoryElement) element).getLocation(); ++ URI childLoc = ((MetadataRepositoryElement) children[i]).getLocation(); + if (childLoc.getPath() != null && childLoc.getPath().startsWith(root)) { + isDroplet = true; + } + } + if (!isDroplet) { -+ put((MetadataRepositoryElement) element); ++ put((MetadataRepositoryElement) children[i]); + } + } } } } --- -2.21.1 - diff --git a/SOURCES/eclipse-ignore-version-when-calculating-home.patch b/SOURCES/eclipse-ignore-version-when-calculating-home.patch index d2b50d2..b5e77b2 100644 --- a/SOURCES/eclipse-ignore-version-when-calculating-home.patch +++ b/SOURCES/eclipse-ignore-version-when-calculating-home.patch @@ -1,26 +1,22 @@ -diff --git a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -index 144571914..7e99bc880 100644 ---- a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -+++ b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -@@ -1330,7 +1330,7 @@ public class Main { +--- rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java.orig 2014-03-24 12:06:59.530918305 +0000 ++++ rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java 2014-03-24 12:07:42.709932098 +0000 +@@ -1351,7 +1351,7 @@ String appVersion = props.getProperty(PRODUCT_SITE_VERSION); if (appVersion == null || appVersion.trim().length() == 0) appVersion = ""; //$NON-NLS-1$ - appName += File.separator + appId + "_" + appVersion + "_" + installDirHash; //$NON-NLS-1$ //$NON-NLS-2$ -+ appName += File.separator + appId + "_" + installDirHash; //$NON-NLS-1$ ++ appName += File.separator + appId + "_" + installDirHash; //$NON-NLS-1$ //$NON-NLS-2$ } catch (IOException e) { - // Do nothing if we get an exception. We will default to a standard location + // Do nothing if we get an exception. We will default to a standard location // in the user's home dir. -diff --git a/rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java b/rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java -index 0c13ace6f..d92d4fc45 100755 ---- a/rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java -+++ b/rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java -@@ -308,7 +308,7 @@ public class EquinoxLocations { +--- rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java.orig 2014-03-24 12:05:52.666896971 +0000 ++++ rt.equinox.framework/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/location/EquinoxLocations.java 2014-03-24 12:06:46.076914704 +0000 +@@ -308,7 +308,7 @@ String appVersion = props.getProperty(PRODUCT_SITE_VERSION); if (appVersion == null || appVersion.trim().length() == 0) appVersion = ""; //$NON-NLS-1$ - appName += File.separator + appId + "_" + appVersion + "_" + installDirHash; //$NON-NLS-1$ //$NON-NLS-2$ -+ appName += File.separator + appId + "_" + installDirHash; //$NON-NLS-1$ ++ appName += File.separator + appId + "_" + installDirHash; //$NON-NLS-1$ //$NON-NLS-2$ } catch (IOException e) { - // Do nothing if we get an exception. We will default to a standard location + // Do nothing if we get an exception. We will default to a standard location // in the user's home dir. diff --git a/SOURCES/eclipse-make-droplets-runnable.patch b/SOURCES/eclipse-make-droplets-runnable.patch index 155d7b8..e1d1abc 100644 --- a/SOURCES/eclipse-make-droplets-runnable.patch +++ b/SOURCES/eclipse-make-droplets-runnable.patch @@ -19,7 +19,7 @@ diff --git rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/or index 342e33e..425a166 100644 --- rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java +++ rt.equinox.p2/bundles/org.eclipse.equinox.p2.extensionlocation/src/org/eclipse/equinox/internal/p2/extensionlocation/ExtensionLocationArtifactRepository.java -@@ -284,6 +284,22 @@ public class ExtensionLocationArtifactRepository extends AbstractRepository references; + + public ClassFileSignatureVisitor() { +- super(Opcodes.ASM7); ++ super(Opcodes.ASM6); + this.references = new ArrayList<>(); + } + +@@ -250,7 +250,7 @@ public class ReferenceExtractor extends ClassVisitor { + * @param mv + */ + public ClassFileMethodVisitor(MethodVisitor mv, String name, int argumentcount) { +- super(Opcodes.ASM7, mv); ++ super(Opcodes.ASM6, mv); + this.argumentcount = argumentcount; + this.linePositionTracker = new LinePositionTracker(); + this.lastLineNumber = -1; +@@ -635,7 +635,7 @@ public class ReferenceExtractor extends ClassVisitor { + class ClassFileFieldVisitor extends FieldVisitor { + + ClassFileFieldVisitor() { +- super(Opcodes.ASM7); ++ super(Opcodes.ASM6); + } + + @Override +@@ -991,7 +991,7 @@ public class ReferenceExtractor extends ClassVisitor { + * {@link ReferenceModifiers} + */ + public ReferenceExtractor(IApiType type, Set collector, int referenceKinds) { +- super(Opcodes.ASM7, new ClassNode()); ++ super(Opcodes.ASM6, new ClassNode()); + fType = type; + this.collector = collector; + fReferenceKinds = referenceKinds; +@@ -1008,7 +1008,7 @@ public class ReferenceExtractor extends ClassVisitor { + * @param tracker + */ + protected ReferenceExtractor(IApiType type, Set collector, int referenceKinds, FieldTracker tracker) { +- super(Opcodes.ASM7, new ClassNode()); ++ super(Opcodes.ASM6, new ClassNode()); + fType = type; + this.collector = collector; + fReferenceKinds = referenceKinds; +diff --git a/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/SignatureDecoder.java b/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/SignatureDecoder.java +index e6e38604eb..490598b7b9 100644 +--- a/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/SignatureDecoder.java ++++ b/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/comparator/SignatureDecoder.java +@@ -32,7 +32,7 @@ final class SignatureDecoder extends SignatureVisitor { + SignatureDescriptor signatureDescriptor; + + public SignatureDecoder(SignatureDescriptor signatureDescriptor) { +- super(Opcodes.ASM7); ++ super(Opcodes.ASM6); + this.signatureDescriptor = signatureDescriptor; + } + +diff --git a/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/TypeStructureBuilder.java b/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/TypeStructureBuilder.java +index 4ff1492e86..7dc03b6aa4 100644 +--- a/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/TypeStructureBuilder.java ++++ b/eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/model/TypeStructureBuilder.java +@@ -57,7 +57,7 @@ public class TypeStructureBuilder extends ClassVisitor { + * unknown + */ + TypeStructureBuilder(ClassVisitor cv, IApiComponent component, IApiTypeRoot file) { +- super(Opcodes.ASM7, cv); ++ super(Opcodes.ASM6, cv); + fComponent = component; + fFile = file; + } +@@ -154,7 +154,7 @@ public class TypeStructureBuilder extends ClassVisitor { + } + } + final ApiMethod method = fType.addMethod(name, desc, signature, laccess, names); +- return new MethodVisitor(Opcodes.ASM7, ++ return new MethodVisitor(Opcodes.ASM6, + super.visitMethod(laccess, name, desc, signature, exceptions)) { + @Override + public AnnotationVisitor visitAnnotation(String sig, boolean visible) { +@@ -190,7 +190,7 @@ public class TypeStructureBuilder extends ClassVisitor { + int traceCount = 0; + + public AnnotationDefaultVisitor(ApiMethod method) { +- super(Opcodes.ASM7); ++ super(Opcodes.ASM6); + this.method = method; + } + +@@ -308,7 +308,7 @@ public class TypeStructureBuilder extends ClassVisitor { + String typeName; + + public EnclosingMethodSetter(ClassVisitor cv, String typeName) { +- super(Opcodes.ASM7, cv); ++ super(Opcodes.ASM6, cv); + this.typeName = typeName.replace('.', '/'); + } + +@@ -341,7 +341,7 @@ public class TypeStructureBuilder extends ClassVisitor { + protected EnclosingMethodSetter setter; + + public TypeNameFinder(MethodVisitor mv, EnclosingMethodSetter enclosingMethodSetter) { +- super(Opcodes.ASM7, mv); ++ super(Opcodes.ASM6, mv); + this.setter = enclosingMethodSetter; + } + +Submodule eclipse.platform.ui contains modified content +diff --git a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests.css.swt/META-INF/MANIFEST.MF b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests.css.swt/META-INF/MANIFEST.MF +index eb08f62a5d..c11656359b 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests.css.swt/META-INF/MANIFEST.MF ++++ b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests.css.swt/META-INF/MANIFEST.MF +@@ -10,8 +10,9 @@ Require-Bundle: org.junit, + org.w3c.css.sac, + org.eclipse.e4.ui.css.swt.theme;bundle-version="0.9.1", + org.eclipse.ui;bundle-version="3.106.0", ++ org.hamcrest.core;bundle-version="1.3.0", + org.hamcrest.library;bundle-version="1.3.0", +- org.mockito;bundle-version="2.13.0", ++ org.mockito.mockito-core, + org.eclipse.equinox.preferences;bundle-version="3.5.200", + org.eclipse.ui.forms, + org.eclipse.ui.views.properties.tabbed +diff --git a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/META-INF/MANIFEST.MF b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/META-INF/MANIFEST.MF +index 19458ab029..986226a097 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/META-INF/MANIFEST.MF ++++ b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/META-INF/MANIFEST.MF +@@ -31,8 +31,9 @@ Require-Bundle: org.eclipse.emf.ecore.xmi;bundle-version="2.4.0", + org.eclipse.core.expressions;bundle-version="3.4.200", + org.eclipse.e4.ui.workbench.addons.swt;bundle-version="0.9.0", + org.eclipse.e4.ui.css.swt;bundle-version="0.11.0", ++ org.hamcrest.core;bundle-version="1.3.0", + org.hamcrest.library;bundle-version="1.3.0", +- org.mockito;bundle-version="2.13.0", ++ org.mockito.mockito-core, + org.eclipse.e4.ui.css.core;bundle-version="0.10.100", + org.eclipse.test.performance;bundle-version="3.13.0" + Bundle-RequiredExecutionEnvironment: JavaSE-1.8 +diff --git a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/ThemeDefinitionChangedHandlerTest.java b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/ThemeDefinitionChangedHandlerTest.java +index 6d98e184d3..7def31d02c 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/ThemeDefinitionChangedHandlerTest.java ++++ b/eclipse.platform.ui/tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/workbench/renderers/swt/ThemeDefinitionChangedHandlerTest.java +@@ -16,7 +16,7 @@ package org.eclipse.e4.ui.workbench.renderers.swt; + + import static org.junit.Assert.assertEquals; + import static org.junit.Assert.assertTrue; +-import static org.mockito.ArgumentMatchers.any; ++import static org.mockito.Matchers.any; + import static org.mockito.Mockito.doReturn; + import static org.mockito.Mockito.mock; + import static org.mockito.Mockito.never; +diff --git a/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/StylingPreferencesHandlerTest.java b/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/StylingPreferencesHandlerTest.java +index 99654e3845..07facbb824 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/StylingPreferencesHandlerTest.java ++++ b/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/StylingPreferencesHandlerTest.java +@@ -13,8 +13,8 @@ + *******************************************************************************/ + package org.eclipse.ui.tests.themes; + +-import static org.mockito.ArgumentMatchers.anyBoolean; +-import static org.mockito.ArgumentMatchers.anyObject; ++import static org.mockito.Matchers.anyBoolean; ++import static org.mockito.Matchers.anyObject; + import static org.mockito.Mockito.doReturn; + import static org.mockito.Mockito.mock; + import static org.mockito.Mockito.spy; +diff --git a/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/WorkbenchThemeChangedHandlerTest.java b/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/WorkbenchThemeChangedHandlerTest.java +index 5c6d765a76..fa59d14187 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/WorkbenchThemeChangedHandlerTest.java ++++ b/eclipse.platform.ui/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/WorkbenchThemeChangedHandlerTest.java +@@ -15,10 +15,10 @@ + package org.eclipse.ui.tests.themes; + + import static org.eclipse.ui.internal.themes.WorkbenchThemeManager.EMPTY_COLOR_VALUE; +-import static org.mockito.ArgumentMatchers.any; +-import static org.mockito.ArgumentMatchers.anyObject; +-import static org.mockito.ArgumentMatchers.eq; +-import static org.mockito.ArgumentMatchers.isNull; ++import static org.mockito.Matchers.any; ++import static org.mockito.Matchers.anyObject; ++import static org.mockito.Matchers.eq; ++import static org.mockito.Matchers.isNull; + import static org.mockito.Mockito.doReturn; + import static org.mockito.Mockito.mock; + import static org.mockito.Mockito.never; +@@ -102,11 +102,11 @@ public class WorkbenchThemeChangedHandlerTest extends TestCase { + verify(colorRegistry, times(1)).put(eq("colorDefinition"), any(RGB.class)); + verify(colorRegistry, times(1)).put(eq("colorDefinition"), eq(EMPTY_COLOR_VALUE)); + +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), + eq(fontRegistry), eq(fontDefinition1), any(IPreferenceStore.class)); + verify(handler, never()).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), + eq(fontRegistry), eq(fontDefinition2), any(IPreferenceStore.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), + eq(colorRegistry), eq(colorDefinition), any(IPreferenceStore.class)); + + verify(stylingEngine, times(1)).style(fontDefinition2); +@@ -165,22 +165,22 @@ public class WorkbenchThemeChangedHandlerTest extends TestCase { + //then + verify(stylingEngine, times(1)).style(fontDefinition1); + verify(fontRegistry, times(1)).put("fontDefinition1", null); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(fontRegistry), eq(fontDefinition1), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(fontRegistry), eq(fontDefinition1), + any(IPreferenceStore.class)); + + verify(stylingEngine, times(1)).style(fontDefinition2); + verify(fontRegistry, never()).put(eq("fontDefinition2"), any(FontData[].class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(fontRegistry), eq(fontDefinition2), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(fontRegistry), eq(fontDefinition2), + any(IPreferenceStore.class)); + + verify(stylingEngine, times(1)).style(colorDefinition1); + verify(colorRegistry, never()).put(eq("colorDefinition1"), any(RGB.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(colorRegistry), eq(colorDefinition1), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(colorRegistry), eq(colorDefinition1), + any(IPreferenceStore.class)); + + verify(stylingEngine, times(1)).style(colorDefinition2); + verify(colorRegistry, times(1)).put("colorDefinition2", null); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(colorRegistry), eq(colorDefinition2), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(colorRegistry), eq(colorDefinition2), + any(IPreferenceStore.class)); + } + +@@ -227,9 +227,9 @@ public class WorkbenchThemeChangedHandlerTest extends TestCase { + verify(colorRegistry, times(1)).put("colorDefinition", null); + assertEquals(1, themeRegistry.getColors().length); + +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(fontRegistry), eq(fontDefinition), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(fontRegistry), eq(fontDefinition), + any(IPreferenceStore.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(colorRegistry), eq(colorDefinition), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(colorRegistry), eq(colorDefinition), + any(IPreferenceStore.class)); + + verify(handler, times(1)).resetThemeRegistries(themeRegistry, fontRegistry, colorRegistry); +@@ -297,13 +297,13 @@ public class WorkbenchThemeChangedHandlerTest extends TestCase { + verify(colorRegistry, times(1)).put(eq("colorDefinition2"), any(RGB.class)); + verify(colorRegistry, times(1)).put(eq("colorDefinition2"), eq(EMPTY_COLOR_VALUE)); + +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(fontRegistry), eq(fontDefinition1), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(fontRegistry), eq(fontDefinition1), + any(IPreferenceStore.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(fontRegistry), eq(fontDefinition2), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(fontRegistry), eq(fontDefinition2), + any(IPreferenceStore.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(colorRegistry), eq(colorDefinition1), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(colorRegistry), eq(colorDefinition1), + any(IPreferenceStore.class)); +- verify(handler, times(1)).populateDefinition(isNull(), isNull(), eq(colorRegistry), eq(colorDefinition2), ++ verify(handler, times(1)).populateDefinition(any(ITheme.class), any(org.eclipse.ui.themes.ITheme.class), eq(colorRegistry), eq(colorDefinition2), + any(IPreferenceStore.class)); + + verify(handler, times(1)).resetThemeRegistries(themeRegistry, fontRegistry, colorRegistry); +diff --git a/eclipse.platform.ui/tests/org.eclipse.ui.tests/META-INF/MANIFEST.MF b/eclipse.platform.ui/tests/org.eclipse.ui.tests/META-INF/MANIFEST.MF +index 45c025610f..484f3a0092 100644 +--- a/eclipse.platform.ui/tests/org.eclipse.ui.tests/META-INF/MANIFEST.MF ++++ b/eclipse.platform.ui/tests/org.eclipse.ui.tests/META-INF/MANIFEST.MF +@@ -44,7 +44,7 @@ Require-Bundle: org.eclipse.core.resources, + org.eclipse.osgi.services;bundle-version="3.3.100", + org.hamcrest.core;bundle-version="1.3.0", + org.hamcrest.library;bundle-version="1.3.0", +- org.mockito;bundle-version="2.13.0" ++ org.mockito.mockito-core + Import-Package: javax.annotation + Eclipse-AutoStart: true + Export-Package: org.eclipse.ui.tests.api, +diff --git a/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml b/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml +index 5514138f..ac5c0ee4 100644 +--- a/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml ++++ b/eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml +@@ -23,7 +23,7 @@ + + + +- ++ + + + +diff --git a/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml b/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml +index d4728693..297e1031 100644 +--- a/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml ++++ b/eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml +@@ -24,7 +24,7 @@ + + + +- ++ + + + props = new Hashtable<>(); +- Dictionary props = new Hashtable(); - props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_NAME, "S16"); - props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, "/Servlet16/*"); - registrations.add(getBundleContext().registerService(Servlet.class, servlet, props)); - -- Map> map = new HashMap<>(); +- Map> map = new HashMap>(); - - map.put("file", Arrays.asList(getClass().getResource("blue.png"))); - @@ -109,8 +110,6 @@ - Assert.assertEquals("200", result.get("responseCode").get(0)); - Assert.assertEquals("blue.png|image/png|292", result.get("responseBody").get(0)); - } -- -- @Test + + @Test public void test_PathEncodings_Bug540970() throws Exception { - Servlet servlet = new HttpServlet() { - private static final long serialVersionUID = 1L; diff --git a/SOURCES/eclipse-pde-tp-support-droplets.patch b/SOURCES/eclipse-pde-tp-support-droplets.patch index 59ae65d..dd23623 100644 --- a/SOURCES/eclipse-pde-tp-support-droplets.patch +++ b/SOURCES/eclipse-pde-tp-support-droplets.patch @@ -1,4 +1,4 @@ -From 7843458db4b359cbee040c17ddda21d5fa6ddd35 Mon Sep 17 00:00:00 2001 +From 72e58be8c9c5fbc6f6527318b4381a58cebfc120 Mon Sep 17 00:00:00 2001 From: Roland Grunberg Date: Thu, 7 Apr 2016 10:23:49 -0400 Subject: [PATCH] Support reading BundleInfo from p2 Droplets enabled @@ -6,26 +6,28 @@ Subject: [PATCH] Support reading BundleInfo from p2 Droplets enabled - Additionally support reading source bundles from p2 Droplets location --- - .../org.eclipse.pde.core/META-INF/MANIFEST.MF | 1 + - .../eclipse/pde/internal/core/P2Utils.java | 50 +++++++++++++++++-- - 2 files changed, 46 insertions(+), 5 deletions(-) + ui/org.eclipse.pde.core/META-INF/MANIFEST.MF | 3 +- + .../src/org/eclipse/pde/internal/core/P2Utils.java | 48 +++++++++++++++++++--- + 2 files changed, 45 insertions(+), 6 deletions(-) -diff --git a/eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF b/eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF -index f045abd5b..864665785 100644 ---- a/eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF -+++ b/eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF -@@ -102,5 +102,6 @@ Require-Bundle: +diff --git eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF +index 7c20994..ab702e3 100644 +--- eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF ++++ eclipse.pde.ui/ui/org.eclipse.pde.core/META-INF/MANIFEST.MF +@@ -104,6 +104,7 @@ Require-Bundle: org.eclipse.core.filesystem;bundle-version="[1.0.0,2.0.0)" Eclipse-LazyStart: true Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -+Import-Package: org.eclipse.equinox.internal.simpleconfigurator.utils +-Import-Package: com.ibm.icu.util ++Import-Package: com.ibm.icu.util, ++ org.eclipse.equinox.internal.simpleconfigurator.utils Bundle-ActivationPolicy: lazy Automatic-Module-Name: org.eclipse.pde.core -diff --git a/eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java b/eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java -index 696d2318f..7ab4596d5 100644 ---- a/eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java -+++ b/eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java -@@ -17,8 +17,9 @@ package org.eclipse.pde.internal.core; +diff --git eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java +index fbd4b81..55cd40e 100644 +--- eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java ++++ eclipse.pde.ui/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/P2Utils.java +@@ -17,8 +17,9 @@ import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; @@ -37,7 +39,7 @@ index 696d2318f..7ab4596d5 100644 import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; -@@ -31,7 +32,9 @@ import org.eclipse.core.runtime.IStatus; +@@ -31,7 +32,9 @@ import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Path; import org.eclipse.core.runtime.Status; @@ -47,7 +49,7 @@ index 696d2318f..7ab4596d5 100644 import org.eclipse.equinox.p2.core.IProvisioningAgent; import org.eclipse.equinox.p2.core.IProvisioningAgentProvider; import org.eclipse.equinox.p2.engine.IEngine; -@@ -60,6 +63,7 @@ import org.eclipse.pde.core.plugin.IPluginModelBase; +@@ -60,6 +63,7 @@ import org.eclipse.pde.core.plugin.TargetPlatform; import org.eclipse.pde.internal.build.BundleHelper; import org.eclipse.pde.internal.core.plugin.PluginBase; @@ -55,7 +57,7 @@ index 696d2318f..7ab4596d5 100644 import org.osgi.framework.Constants; /** -@@ -139,7 +143,16 @@ public class P2Utils { +@@ -139,7 +143,16 @@ try { URL bundlesTxt = new URL(configurationArea.getProtocol(), configurationArea.getHost(), new File(configurationArea.getFile(), SimpleConfiguratorManipulator.BUNDLES_INFO_PATH).getAbsolutePath()); File home = basePath.toFile(); @@ -73,7 +75,7 @@ index 696d2318f..7ab4596d5 100644 if (bundles == null || bundles.length == 0) { return null; } -@@ -168,11 +181,38 @@ public class P2Utils { +@@ -171,11 +184,38 @@ try { File home = basePath.toFile(); URL srcBundlesTxt = new URL(configurationArea.getProtocol(), configurationArea.getHost(), configurationArea.getFile().concat(SimpleConfiguratorManipulator.SOURCE_INFO_PATH)); @@ -111,9 +113,8 @@ index 696d2318f..7ab4596d5 100644 } - return srcBundles; + return allSrcBundles.toArray(new BundleInfo[0]); - } catch (IOException e) { + } catch (MalformedURLException e) { PDECore.log(e); return null; -- -2.21.1 - +2.7.4 diff --git a/SOURCES/eclipse-secondary-arches.patch b/SOURCES/eclipse-secondary-arches.patch index 931eb5d..caa42a8 100644 --- a/SOURCES/eclipse-secondary-arches.patch +++ b/SOURCES/eclipse-secondary-arches.patch @@ -112,15 +112,15 @@ index 7e1f520..734dd10 100644 +requires.7.filter = (&(osgi.os=linux)(osgi.ws=gtk)(osgi.arch=s390x)(!(org.eclipse.swt.buildtime=true))) --- a/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/build.sh 2017-04-19 13:31:15.000000000 +0100 +++ b/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/build.sh 2017-04-23 16:58:34.022207885 +0100 -@@ -100,7 +100,7 @@ +@@ -109,7 +109,7 @@ "s390x") defaultOSArch="s390x" defaultJava=DEFAULT_JAVA_EXEC - OUTPUT_DIR="$EXEC_DIR/contributed/$defaultWS/$defaultOS/$defaultOSArch" + OUTPUT_DIR="$EXEC_DIR/bin/$defaultWS/$defaultOS/$defaultOSArch" ;; - "aarch64") - defaultOSArch="aarch64" + arm*) + defaultOSArch="arm" --- a/rt.equinox.framework/pom.xml 2017-04-26 22:19:15.548461372 +0100 +++ b/rt.equinox.framework/pom.xml 2017-04-26 22:20:41.348571492 +0100 @@ -77,6 +77,18 @@ diff --git a/SOURCES/eclipse-support-symlink-bundles.patch b/SOURCES/eclipse-support-symlink-bundles.patch index 26de5cf..17f2e56 100644 --- a/SOURCES/eclipse-support-symlink-bundles.patch +++ b/SOURCES/eclipse-support-symlink-bundles.patch @@ -24,7 +24,7 @@ index d88d0a6..07fe087 100644 + org.eclipse.osgi.util;version="1.1.0", org.osgi.framework;version="1.3.0", org.osgi.framework.namespace;version="1.0.0", - org.osgi.framework.startlevel;version="1.0.0", + org.osgi.framework.wiring;version="1.2.0", diff --git rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java index ab69b88..d6bf121 100644 --- rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/org/eclipse/equinox/internal/simpleconfigurator/utils/SimpleConfiguratorUtils.java diff --git a/SOURCES/eclipse-swt-avoid-javascript-at-build.patch b/SOURCES/eclipse-swt-avoid-javascript-at-build.patch index 8de5935..8864089 100644 --- a/SOURCES/eclipse-swt-avoid-javascript-at-build.patch +++ b/SOURCES/eclipse-swt-avoid-javascript-at-build.patch @@ -1,47 +1,27 @@ -From dd7d5dd0a820b3efd1a7955a7b80c881a40ddafc Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Sat, 21 Mar 2020 15:29:00 +0000 -Subject: [PATCH] Avoid the need to have javascript interpreter in the build - root - ---- - .../bundles/binaries-parent/pom.xml | 17 ------ - .../bundles/org.eclipse.swt/buildSWT.xml | 53 ++++--------------- - 2 files changed, 11 insertions(+), 59 deletions(-) - -diff --git a/eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml b/eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml -index 4d209cfdc..eab439ae5 100644 ---- a/eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml -+++ b/eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml -@@ -75,23 +75,6 @@ +--- eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml.orig 2019-05-01 16:18:20.026476746 +0100 ++++ eclipse.platform.swt.binaries/bundles/binaries-parent/pom.xml 2019-05-01 16:18:30.068453716 +0100 +@@ -75,18 +75,6 @@ - - - org.mozilla -- rhino-runtime -- 1.7.12 -- -- -- org.apache.ant -- ant -- 1.10.7 +- rhino +- 1.7.10 - - - org.apache.ant - ant-apache-bsf -- 1.10.7 +- 1.10.6 - - -diff --git a/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml b/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml -index 9d4bb1b6f..6c1cdf690 100644 ---- a/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml -+++ b/eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml -@@ -374,27 +374,8 @@ +--- eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml.orig 2019-05-01 15:19:21.784965731 +0100 ++++ eclipse.platform.swt/bundles/org.eclipse.swt/buildSWT.xml 2019-05-01 16:40:48.623849151 +0100 +@@ -399,27 +399,8 @@ @@ -70,7 +50,7 @@ index 9d4bb1b6f..6c1cdf690 100644 -@@ -523,11 +504,7 @@ +@@ -548,11 +529,7 @@ @@ -83,7 +63,7 @@ index 9d4bb1b6f..6c1cdf690 100644 -@@ -661,23 +638,15 @@ +@@ -686,23 +663,15 @@ @@ -116,6 +96,3 @@ index 9d4bb1b6f..6c1cdf690 100644 --- -2.21.1 - diff --git a/SOURCES/explicit-hamcrest.patch b/SOURCES/explicit-hamcrest.patch index d0574be..a3b3bb3 100644 --- a/SOURCES/explicit-hamcrest.patch +++ b/SOURCES/explicit-hamcrest.patch @@ -22,38 +22,8 @@ @@ -9,6 +9,7 @@ Require-Bundle: org.eclipse.pde.ui;bundle-version="3.10.0", org.eclipse.pde.ui.templates;bundle-version="3.6.0", - org.junit;bundle-version="4.13.0", + org.junit;bundle-version="4.12.0", + org.hamcrest.core;bundle-version="1.3.0", org.eclipse.core.runtime;bundle-version="3.13.0", org.eclipse.core.resources;bundle-version="3.12.0", org.eclipse.ui.ide;bundle-version="3.13.0", ---- eclipse.platform.text/org.eclipse.text.tests/META-INF/MANIFEST.MF.orig 2019-09-21 16:37:52.645515694 +0100 -+++ eclipse.platform.text/org.eclipse.text.tests/META-INF/MANIFEST.MF 2019-09-21 16:38:25.034443980 +0100 -@@ -13,6 +13,7 @@ - org.eclipse.core.commands;bundle-version="[3.5.0,4.0.0)", - org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)", - org.eclipse.text;bundle-version="[3.6.3,4.0.0)", -+ org.hamcrest.core;bundle-version="1.3.0", - org.junit;bundle-version="4.12.0" - Bundle-RequiredExecutionEnvironment: JavaSE-1.8 - Eclipse-BundleShape: dir ---- eclipse.pde.ui/ui/org.eclipse.pde.junit.runtime.tests/META-INF/MANIFEST.MF.orig 2019-09-21 17:06:17.944749329 +0100 -+++ eclipse.pde.ui/ui/org.eclipse.pde.junit.runtime.tests/META-INF/MANIFEST.MF 2019-09-21 17:06:43.846692344 +0100 -@@ -9,6 +9,7 @@ - Bundle-ActivationPolicy: lazy - Eclipse-BundleShape: dir - Require-Bundle: org.junit, -+ org.hamcrest.core;bundle-version="1.3.0", - org.hamcrest.library;bundle-version="1.3.0", - org.eclipse.core.runtime;bundle-version="3.15.400", - org.eclipse.pde.launching;bundle-version="3.7.700", ---- eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/META-INF/MANIFEST.MF.orig 2019-09-23 09:46:23.507897561 +0100 -+++ eclipse.pde.ui/ui/org.eclipse.pde.ui.tests/META-INF/MANIFEST.MF 2019-09-23 09:46:45.658839342 +0100 -@@ -7,6 +7,7 @@ - Bundle-Activator: org.eclipse.pde.ui.tests.PDETestsPlugin - Bundle-Vendor: Eclipse.org - Require-Bundle: org.junit, -+ org.hamcrest.core, - org.eclipse.pde.ui, - org.eclipse.ui, - org.eclipse.core.resources, diff --git a/SOURCES/fix-ant-execution.patch b/SOURCES/fix-ant-execution.patch new file mode 100644 index 0000000..5ba0ebb --- /dev/null +++ b/SOURCES/fix-ant-execution.patch @@ -0,0 +1,26 @@ +diff --git a/eclipse.platform/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/AntSecurityManager.java b/eclipse.platform/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/AntSecurityManager.java +index b6c0d1e68..a35e683d7 100644 +--- a/eclipse.platform/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/AntSecurityManager.java ++++ b/eclipse.platform/ant/org.eclipse.ant.launching/remote/org/eclipse/ant/internal/launching/remote/AntSecurityManager.java +@@ -19,12 +19,6 @@ import java.net.SocketPermission; + import java.security.Permission; + import java.util.PropertyPermission; + +-import org.eclipse.ant.core.AntCorePlugin; +-import org.eclipse.ant.core.AntSecurityException; +-import org.eclipse.core.runtime.IStatus; +-import org.eclipse.core.runtime.Platform; +-import org.eclipse.core.runtime.Status; +- + /** + * A security manager that always throws an AntSecurityException if the calling thread attempts to cause the Java Virtual Machine to + * exit/halt or if the restricted thread attempts to set a System property. Otherwise this manager just delegates to the pre-existing manager passed +@@ -453,8 +447,6 @@ public class AntSecurityManager extends SecurityManager { + return super.getInCheck(); + } + catch (NoSuchMethodException | SecurityException e) { +- Platform.getLog(AntCorePlugin.getPlugin().getBundle()).log(new Status(IStatus.WARNING, "org.eclipse.ant.launching", //$NON-NLS-1$ +- RemoteAntMessages.getString("AntSecurityManager.getInCheck"))); //$NON-NLS-1$ + return false; + } + } diff --git a/SOURCES/force-clean-after-p2-operations.patch b/SOURCES/force-clean-after-p2-operations.patch deleted file mode 100644 index c1e0d3c..0000000 --- a/SOURCES/force-clean-after-p2-operations.patch +++ /dev/null @@ -1,80 +0,0 @@ -From d964680827a248e8a312c000c4c2443f96c8c459 Mon Sep 17 00:00:00 2001 -From: Mat Booth -Date: Fri, 27 Sep 2019 14:52:54 +0100 -Subject: [PATCH] Force a clean on the restart after p2 operations - ---- - .../META-INF/MANIFEST.MF | 2 +- - .../bundles/org.eclipse.equinox.launcher/pom.xml | 2 +- - .../src/org/eclipse/equinox/launcher/Main.java | 13 +++++++++++++ - .../internal/p2/ui/ProvisioningOperationRunner.java | 6 ++++++ - 4 files changed, 21 insertions(+), 2 deletions(-) - -diff --git a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF -index 497e5d6fa..a118a0e4c 100644 ---- a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF -+++ b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/META-INF/MANIFEST.MF -@@ -2,7 +2,7 @@ Manifest-Version: 1.0 - Bundle-ManifestVersion: 2 - Bundle-Name: %pluginName - Bundle-SymbolicName: org.eclipse.equinox.launcher;singleton:=true --Bundle-Version: 1.5.700.qualifier -+Bundle-Version: 1.5.701.qualifier - Main-Class: org.eclipse.equinox.launcher.Main - Bundle-ClassPath: . - Bundle-Vendor: %providerName -diff --git a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/pom.xml b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/pom.xml -index 43849b5b8..c5d2cdfea 100644 ---- a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/pom.xml -+++ b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/pom.xml -@@ -19,6 +19,6 @@ - - org.eclipse.equinox - org.eclipse.equinox.launcher -- 1.5.700-SNAPSHOT -+ 1.5.701-SNAPSHOT - eclipse-plugin - -diff --git a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -index d013ff7c2..65f4cfd8a 100644 ---- a/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -+++ b/rt.equinox.framework/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java -@@ -560,6 +560,18 @@ - setupVMProperties(); - processConfiguration(); - -+ File oca = new File(getConfigurationLocation().toURI()); -+ File ocaFile = new File(oca, "clean_on_restart"); -+ if (ocaFile.exists()) { -+ System.err.println("Clean triggered."); //$NON-NLS-1$ -+ ocaFile.delete(); -+ commands = Arrays.copyOf(args, args.length + 1); -+ commands[commands.length-1] = CLEAN; -+ passThruArgs = Arrays.copyOf(passThruArgs, passThruArgs.length + 1); -+ passThruArgs[passThruArgs.length-1] = CLEAN; -+ setupVMProperties(); -+ } -+ - if (protectBase && (System.getProperty(PROP_SHARED_CONFIG_AREA) == null)) { - System.err.println("This application is configured to run in a cascaded mode only."); //$NON-NLS-1$ - System.setProperty(PROP_EXITCODE, Integer.toString(14)); -diff --git a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvisioningOperationRunner.java b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvisioningOperationRunner.java -index a70b640ba..8a002ebc2 100644 ---- a/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvisioningOperationRunner.java -+++ b/rt.equinox.p2/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/ProvisioningOperationRunner.java -@@ -72,6 +72,12 @@ public class ProvisioningOperationRunner { - * @param restartPolicy - */ - void requestRestart(final int restartPolicy) { -+ String oca = System.getProperty("osgi.configuration.area"); -+ try { -+ java.io.File ocaCleanFile = new java.io.File(new java.net.URL(oca).toURI()); -+ new java.io.File(ocaCleanFile, "clean_on_restart").createNewFile(); -+ } catch (Exception e) { /* Eh, we tried... */ } -+ - // Global override of restart (used in test cases). - if (suppressRestart) - return; --- -2.20.1 - diff --git a/SOURCES/toolchains.xml b/SOURCES/toolchains.xml deleted file mode 100644 index a044b1a..0000000 --- a/SOURCES/toolchains.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - jdk - - CDC-1.0/Foundation-1.0 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - CDC-1.1/Foundation-1.1 - - - /usr/lib/jvm/java-1.8.0 - - - - - - jdk - - OSGi/Minimum-1.0 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - OSGi/Minimum-1.1 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - OSGi/Minimum-1.2 - - - /usr/lib/jvm/java-1.8.0 - - - - - - jdk - - J2SE-1.4 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - J2SE-1.5 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - JavaSE-1.6 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - JavaSE-1.7 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - JavaSE-1.8 - - - /usr/lib/jvm/java-1.8.0 - - - - jdk - - JavaSE-11 - - - /usr/lib/jvm/java-11 - - - - - - - - diff --git a/SPECS/eclipse.spec b/SPECS/eclipse.spec index b721779..49527ae 100644 --- a/SPECS/eclipse.spec +++ b/SPECS/eclipse.spec @@ -3,17 +3,17 @@ # this is a way to bootstrap Eclipse on secondary archs. %bcond_with bootstrap -# Set this to avoid building contributor tools +# Set this to avoid building contributor tools and tests %bcond_without contrib_tools Epoch: 1 -%global eb_commit b056b40d26d052b788b790f27ead774ff804ab55 -%global eclipse_rel %{version} -%global eclipse_tag R-%{eclipse_rel}-202006040540 +%global eb_commit c985e357223668b4bc1fb76ea6b9e0c12829b7e8 +%global eclipse_rel %{version}RC2 +%global eclipse_tag S-%{eclipse_rel}-201906051800 -%global _jetty_version 9.4.30 -%global _lucene_version 8.4.1 +%global _jetty_version 9.4.19 +%global _lucene_version 8.0.0 %global _batik_version 1.11 %ifarch %{ix86} @@ -39,17 +39,10 @@ Epoch: 1 %global use_wayland 0 %endif -# Glassfish EE APIs that moved to jakarta namespace -%if 0%{?fedora} -%global _jakarta_annotations jakarta.annotation-api -%else -%global _jakarta_annotations javax.annotation-api -%endif - Summary: An open, extensible IDE Name: eclipse -Version: 4.16 -Release: 7%{?dist} +Version: 4.12 +Release: 6%{?dist} License: EPL-2.0 URL: http://www.eclipse.org/ @@ -60,9 +53,6 @@ Source0: https://download.eclipse.org/eclipse/downloads/drops4/%{eclipse_tag}/ec # %%{eb_commit} | xz > org.eclipse.linuxtools.eclipse-build-%%{eb_commit}.tar.xz Source1: http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/snapshot/org.eclipse.linuxtools.eclipse-build-%{eb_commit}.tar.xz -# Toolchain configurations for all EEs needed by Eclipse bundles -Source2: toolchains.xml - # Eclipse should not include source for dependencies that are not supplied by this package # and should not include source for bundles that are not relevant to our platform Patch0: eclipse-no-source-for-dependencies.patch @@ -81,6 +71,8 @@ Patch4: eclipse-secondary-arches.patch Patch5: eclipse-debug-symbols.patch +#Patch6: eclipse-test-support.patch + # https://bugs.eclipse.org/bugs/show_bug.cgi?id=408138 Patch12: eclipse-fix-dropins.patch @@ -92,6 +84,7 @@ Patch12: eclipse-fix-dropins.patch # javax.el -> javax.el-api # javax.servlet -> javax.servlet-api # org.apache.jasper.glassfish -> org.glassfish.web.javax.servlet.jsp +# javax.annotation -> javax.annotation-api # org.w3c.dom.smil -> removed Patch13: eclipse-feature-plugins-to-category-ius.patch @@ -101,6 +94,7 @@ Patch14: eclipse-support-symlink-bundles.patch Patch15: eclipse-fix-tests.patch # Droplet fixes +Patch16: eclipse-adjust-droplets.patch Patch17: eclipse-pde-tp-support-droplets.patch # Disable uses by default @@ -125,20 +119,20 @@ Patch24: eclipse-swt-avoid-javascript-at-build.patch # Avoid optional dep used only for tests Patch25: eclipse-patch-out-fileupload-dep.patch -# Force a clean on the restart after p2 operations -Patch26: force-clean-after-p2-operations.patch +# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=548211 +Patch26: eclipse-ebz548211.patch +Patch27: eclipse-ebz548211-2.patch + +# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=542708 +Patch28: eclipse-ebz542708.patch -# SCL-specific patches -Patch100: 0001-Avoid-limitation-with-older-shade-plug-in-versions-w.patch -Patch101: 0002-Allow-bootstrapping-against-OSGi-Core-R6.patch -Patch102: 0004-Add-parent-pom-for-old-tycho-pomless.patch +# Fix regression in ant support +Patch29: fix-ant-execution.patch -# Upstream no longer supports non-64bit arches -ExclusiveArch: x86_64 +# Use ASM 6 instead of 7 +Patch30: eclipse-mockito.patch -# Require both JDKs until Eclipse can fully move onto Java 11 -BuildRequires: java-11-openjdk-devel -BuildRequires: java-1.8.0-openjdk-devel +ExclusiveArch: x86_64 BuildRequires: maven-local BuildRequires: tycho @@ -168,16 +162,19 @@ BuildRequires: pkgconfig(libsecret-1) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(webkit2gtk-4.0) -BuildRequires: icu4j >= 1:65.1 +BuildRequires: icu4j >= 1:64.2 BuildRequires: ant >= 1.10.5 +BuildRequires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf +BuildRequires: ant-commons-net ant-javamail ant-jdepend ant-junit ant-swing ant-jsch ant-testutil ant-apache-xalan2 ant-jmf ant-xz BuildRequires: jsch >= 0:0.1.46-2 +BuildRequires: apache-commons-el >= 1.0-22 BuildRequires: apache-commons-logging BuildRequires: apache-commons-codec BuildRequires: apache-commons-jxpath BuildRequires: osgi(org.apache.felix.gogo.shell) >= 1.1.0 BuildRequires: osgi(org.apache.felix.gogo.command) >= 1.0.2 BuildRequires: osgi(org.apache.felix.gogo.runtime) >= 1.1.0 -BuildRequires: felix-scr >= 2.1.16-4 +BuildRequires: osgi(org.apache.felix.scr) >= 2.1.16 BuildRequires: osgi(org.eclipse.jetty.util) >= %{_jetty_version} BuildRequires: osgi(org.eclipse.jetty.server) >= %{_jetty_version} BuildRequires: osgi(org.eclipse.jetty.http) >= %{_jetty_version} @@ -194,7 +191,7 @@ BuildRequires: junit5 >= 5.4.0 BuildRequires: apiguardian BuildRequires: hamcrest BuildRequires: sat4j -BuildRequires: objectweb-asm >= 7.0 +BuildRequires: objectweb-asm >= 6.1.1 BuildRequires: sac BuildRequires: batik-css >= %{_batik_version} BuildRequires: batik-util >= %{_batik_version} @@ -202,8 +199,8 @@ BuildRequires: google-gson BuildRequires: xmlgraphics-commons >= 2.3 BuildRequires: xml-commons-apis BuildRequires: atinject -BuildRequires: eclipse-ecf-core >= 3.14.8 -BuildRequires: eclipse-emf-core >= 1:2.22.0 +BuildRequires: eclipse-ecf-core >= 3.14.5 +BuildRequires: eclipse-emf-core >= 1:2.18.0 BuildRequires: eclipse-license2 BuildRequires: glassfish-annotation-api BuildRequires: glassfish-el-api >= 3.0.1 @@ -221,9 +218,10 @@ BuildRequires: osgi(osgi.annotation) # For building docs and apitooling BuildRequires: eclipse-pde %if %{with contrib_tools} -# For contributor tools +# For contributor tools and tests BuildRequires: eclipse-egit BuildRequires: eclipse-emf-runtime +BuildRequires: mockito >= 2.23.9 %endif %endif @@ -234,6 +232,8 @@ everything in between. %package swt Summary: SWT Library for GTK+ +Requires: java-headless >= 1:1.8.0 +Requires: javapackages-tools Requires: gtk3 Requires: webkitgtk4 @@ -242,6 +242,8 @@ SWT Library for GTK+. %package equinox-osgi Summary: Eclipse OSGi - Equinox +Requires: java-headless >= 1:1.8.0 +Requires: javapackages-tools Provides: osgi(system.bundle) = %{epoch}:%{version} %description equinox-osgi @@ -249,19 +251,21 @@ Eclipse OSGi - Equinox %package platform Summary: Eclipse platform common files -Requires: java-11-openjdk-devel -Requires: javapackages-tools - +Recommends: eclipse-abrt +Recommends: eclipse-usage Requires: ant >= 1.10.5 +Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf +Requires: ant-commons-net ant-javamail ant-jdepend ant-junit ant-swing ant-jsch ant-testutil ant-apache-xalan2 ant-jmf ant-xz Requires: jsch >= 0.1.46-2 +Requires: apache-commons-el >= 1.0-23 Requires: apache-commons-logging Requires: apache-commons-codec Requires: apache-commons-jxpath Requires: osgi(org.apache.felix.gogo.shell) >= 1.1.0 Requires: osgi(org.apache.felix.gogo.command) >= 1.0.2 Requires: osgi(org.apache.felix.gogo.runtime) >= 1.1.0 -Requires: felix-scr >= 2.1.16-4 +Requires: osgi(org.apache.felix.scr) >= 2.1.16 Requires: osgi(org.eclipse.jetty.util) >= %{_jetty_version} Requires: osgi(org.eclipse.jetty.server) >= %{_jetty_version} Requires: osgi(org.eclipse.jetty.http) >= %{_jetty_version} @@ -273,28 +277,34 @@ Requires: lucene-core >= %{_lucene_version} Requires: lucene-analysis >= %{_lucene_version} Requires: lucene-queryparser >= %{_lucene_version} Requires: lucene-analyzers-smartcn >= %{_lucene_version} +Requires: sat4j +Requires: sac Requires: batik-css >= %{_batik_version} Requires: batik-util >= %{_batik_version} Requires: xmlgraphics-commons >= 2.3 Requires: xml-commons-apis Requires: atinject -Requires: eclipse-ecf-core >= 3.14.8 -Requires: eclipse-emf-core >= 1:2.22.0 +Requires: eclipse-ecf-core >= 3.14.5 +Requires: eclipse-emf-core >= 1:2.18.0 Requires: glassfish-annotation-api Requires: glassfish-el-api >= 3.0.1 Requires: glassfish-el >= 3.0.1 Requires: glassfish-jsp-api >= 2.2.1-4 Requires: glassfish-jsp >= 2.2.5 Requires: glassfish-servlet-api >= 3.1.0 -Requires: icu4j >= 1:65.1 +Requires: icu4j >= 1:64.2 Requires: %{name}-swt = %{epoch}:%{version}-%{release} Requires: %{name}-equinox-osgi = %{epoch}:%{version}-%{release} Requires: httpcomponents-core Requires: httpcomponents-client +Requires: osgi(org.tukaani.xz) -# Obsoletes added in F31 -Obsoletes: eclipse-epp-logging <= 2.0.8-4 -Obsoletes: eclipse-abrt <= 0.0.3-10 +# Provides/obsoletes added in F26 +# This is the best place to add this because adding it to the nls RPMs causes every +# single language pack to be installed, which is not desireable -- it needs to be +# obsoleted by exactly one thing. +Provides: eclipse-nls = %{version}-%{release} +Obsoletes: eclipse-nls < %{version}-%{release} %description platform The Eclipse Platform is the base of all IDE plugins. This does not include the @@ -306,7 +316,6 @@ BuildArch: noarch Provides: %{name} = %{epoch}:%{version}-%{release} Requires: %{name}-platform = %{epoch}:%{version}-%{release} -Requires: java-11-openjdk-src Requires: junit >= 4.12 Requires: junit5 >= 5.4.0 Requires: osgi(org.hamcrest.core) @@ -323,7 +332,7 @@ Summary: Eclipse Plugin Development Environment Requires: %{name}-platform = %{epoch}:%{version}-%{release} Requires: %{name}-jdt = %{epoch}:%{version}-%{release} -Requires: objectweb-asm >= 7.0 +Requires: objectweb-asm >= 6.1.1 %description pde Eclipse Plugin Development Environment. This package is required for @@ -342,17 +351,25 @@ install from existing P2 repositories or as a framework to build branded installer UIs. %if %{without bootstrap} && %{with contrib_tools} - %package contributor-tools Summary: Tools for Eclipse Contributors -# No longer shipping tests -Obsoletes: %{name}-tests < 1:4.14-2 Requires: %{name}-platform = %{epoch}:%{version}-%{release} +Requires: easymock +Requires: hamcrest +Requires: mockito >= 2.23.9 %description contributor-tools This package contains tools specifically for Eclipse contributors. It includes SWT tools, E4 tools, Rel-Eng tools and Eclipse Test frameworks. + +%package tests +Summary: Eclipse Tests + +Requires: %{name}-contributor-tools = %{epoch}:%{version}-%{release} + +%description tests +Eclipse Tests. %endif %prep @@ -365,7 +382,7 @@ tar --strip-components=1 -xf %{SOURCE0} tar --strip-components=1 -xf %{SOURCE1} # Delete pre-built binary artifacts except some test data that cannot be generated -find . ! -path "*/JCL/*" ! -name "rtstubs*.jar" ! -name "java14api.jar" ! -name "j9stubs.jar" ! -name "annotations.jar" \ +find . ! -path "*/JCL/*" ! -name "rtstubs*.jar" ! -name "java10api.jar" ! -name "j9stubs.jar" \ -type f -name *.jar -delete find . -type f -name *.class -delete find . -type f -name *.so -delete @@ -377,15 +394,17 @@ rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/ %patch0 %patch1 -%patch2 -p1 +%patch2 %patch3 %patch4 -p1 %patch5 +#%patch6 %patch12 %patch13 -p1 %patch14 %patch15 -%patch17 -p1 +%patch16 +%patch17 %patch18 %patch19 %patch20 @@ -395,20 +414,19 @@ rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/ %endif %patch22 %patch23 -p1 -%patch24 -p1 +%patch24 %patch25 %patch26 -p1 - -# SCL-specific patches -%patch100 -p1 -%patch101 -p1 -%patch102 -p1 +%patch27 -p1 +%patch28 -p1 +%patch29 -p1 +%patch30 -p1 # Optional (unused) multipart support (see patch 25) rm rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/multipart/MultipartSupport{Impl,FactoryImpl,Part}.java -# No strict bin includes -sed -i -e '/jgit.dirtyWorkingTree>/afalsefalse' eclipse-platform-parent/pom.xml +# Remove python-based test +rm eclipse.platform.swt/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/accessibility/Bug543949_ComponentExtentsTest.py # Remove jgit deps because building from source tarball, not a git repo %pom_remove_dep :tycho-buildtimestamp-jgit eclipse-platform-parent @@ -434,6 +452,9 @@ sed -i -e '/jgit.dirtyWorkingTree>/afalse %pom_disable_module features/org.eclipse.equinox.sdk rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.console.jaas.fragment rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.console.ssh rt.equinox.bundles +%pom_disable_module bundles/org.eclipse.equinox.console.ssh.tests rt.equinox.bundles +%pom_disable_module bundles/org.eclipse.equinox.console.tests rt.equinox.bundles +%pom_disable_module bundles/org.eclipse.equinox.ip rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.transforms.xslt rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.transforms.hook rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.weaving.caching.j9 rt.equinox.bundles @@ -444,26 +465,22 @@ sed -i -e '/jgit.dirtyWorkingTree>/afalse %pom_disable_module features/org.eclipse.equinox.p2.sdk rt.equinox.p2 %pom_disable_module features/org.eclipse.equinox.server.p2 rt.equinox.bundles %pom_disable_module features/org.eclipse.equinox.serverside.sdk rt.equinox.bundles +%pom_disable_module bundles/org.eclipse.equinox.p2.tests.reconciler.product rt.equinox.p2 %pom_disable_module bundles/org.eclipse.equinox.p2.artifact.optimizers rt.equinox.p2 +%pom_disable_module bundles/org.eclipse.equinox.p2.tests.optimizers rt.equinox.p2 %pom_disable_module bundles/org.eclipse.equinox.p2.artifact.processors rt.equinox.p2 -%pom_disable_module bundles/org.eclipse.equinox.p2.artifact.checksums.bouncycastle rt.equinox.p2 # Don't need annotations for obsolete JDKs %pom_disable_module org.eclipse.jdt.annotation_v1 eclipse.jdt.core -%pom_xpath_remove "plugin[@version='1.1.500.qualifier']" eclipse.jdt/org.eclipse.jdt-feature/feature.xml - -# javax.annotation -> jakarta.annotation-api -sed -i -e 's/javax.annotation/%{_jakarta_annotations}/' eclipse-platform-parent/pom.xml \ - eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml \ - eclipse.platform.common/bundles/org.eclipse.jdt.doc.isv/pom.xml \ - eclipse.platform.common/bundles/org.eclipse.pde.doc.user/pom.xml \ - eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/pom.xml - -# Fix requirement on junit 4 -sed -i -e 's/4.13.0,5.0.0/4.12.0,5.0.0/' eclipse.jdt.ui/org.eclipse.jdt.junit.core/src/org/eclipse/jdt/internal/junit/buildpath/BuildPathSupport.java +%pom_xpath_remove "plugin[@version='1.1.400.qualifier']" eclipse.jdt/org.eclipse.jdt-feature/feature.xml +sed -i -e '/org\.eclipse\.jdt\.annotation;bundle-version="\[1\.1\.0,2\.0\.0)"/d' \ + eclipse.jdt.core/org.eclipse.jdt.core.tests.{model,builder,compiler}/META-INF/MANIFEST.MF \ + eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF \ + eclipse.jdt.ui/org.eclipse.jdt.ui.tests/META-INF/MANIFEST.MF +sed -i -e 's/javax.annotation/javax.annotation-api/' eclipse-platform-parent/pom.xml \ + eclipse.jdt.core/org.eclipse.jdt.core.tests.compiler/META-INF/MANIFEST.MF # Disable examples -%pom_disable_module infocenter-web eclipse.platform.ua %pom_disable_module examples rt.equinox.p2 %pom_disable_module examples eclipse.platform.ui %pom_disable_module org.eclipse.debug.examples.core eclipse.platform.debug @@ -476,35 +493,20 @@ sed -i -e 's/4.13.0,5.0.0/4.12.0,5.0.0/' eclipse.jdt.ui/org.eclipse.jdt.junit.co %pom_disable_module examples/org.eclipse.compare.examples eclipse.platform.team %pom_disable_module examples/org.eclipse.compare.examples.xml eclipse.platform.team %pom_disable_module examples/org.eclipse.team.examples.filesystem eclipse.platform.team -%pom_disable_module org.eclipse.jface.text.examples eclipse.platform.text -%pom_disable_module org.eclipse.ui.examples.javaeditor eclipse.platform.text %pom_disable_module org.eclipse.ui.genericeditor.examples eclipse.platform.text %pom_disable_module org.eclipse.ui.intro.quicklinks.examples eclipse.platform.ua %pom_disable_module org.eclipse.ui.intro.solstice.examples eclipse.platform.ua - -# Disable tests -for pom in eclipse.jdt.core{,.binaries} eclipse.jdt.debug eclipse.jdt.ui eclipse.pde.build eclipse.pde.ui{,/apitools} \ - eclipse.platform eclipse.platform.debug eclipse.platform.releng eclipse.platform.resources eclipse.platform.runtime \ - eclipse.platform.swt eclipse.platform.team eclipse.platform.text eclipse.platform.ui eclipse.platform.ua \ - rt.equinox.bundles rt.equinox.framework rt.equinox.p2 ; do - sed -i -e '/.*tests.*<\/module>/d' $pom/pom.xml -done -%pom_disable_module bundles/org.eclipse.equinox.frameworkadmin.test rt.equinox.p2 -%pom_disable_module eclipse-junit-tests eclipse.platform.releng.tychoeclipsebuilder -%pom_disable_module ./tests/org.eclipse.e4.tools.test eclipse.platform.ui.tools - -# Disable test framework if we are not shipping tests -%pom_disable_module features/org.eclipse.test-feature eclipse.platform.releng -%pom_disable_module bundles/org.eclipse.test eclipse.platform.releng -%pom_disable_module bundles/org.eclipse.test.performance eclipse.platform.releng -%pom_disable_module bundles/org.eclipse.test.performance.win32 eclipse.platform.releng -%pom_disable_module bundles/org.eclipse.ant.optional.junit eclipse.platform.releng +# Except for this one example, which is used by tests +%pom_xpath_inject "pom:modules" "examples/org.eclipse.jface.examples.databinding" eclipse.platform.ui # Disable servletbridge stuff %pom_disable_module bundles/org.eclipse.equinox.http.servletbridge rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.servletbridge rt.equinox.bundles %pom_disable_module bundles/org.eclipse.equinox.servletbridge.template rt.equinox.bundles +# Missing dep on reddeer +%pom_disable_module ui/org.eclipse.pde.ui.tests.smartimport eclipse.pde.ui + # Don't need enforcer on RPM builds %pom_remove_plugin :maven-enforcer-plugin eclipse-platform-parent @@ -521,6 +523,7 @@ done # we are not currently building) TYCHO_ENV="linuxgtk%{eclipse_arch}" %pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse-platform-parent +%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests %pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse.platform.ui/bundles/org.eclipse.e4.ui.swt.gtk for b in `ls eclipse.platform.swt.binaries/bundles | grep -P -e 'org.eclipse.swt\.(?!gtk\.linux.%{eclipse_arch}$)'` ; do module=$(grep ">bundles/$b<" eclipse.platform.swt.binaries/pom.xml || :) @@ -543,13 +546,14 @@ for b in `(cd rt.equinox.bundles/bundles && ls -d *{macosx,win32,linux}*) | grep %pom_xpath_remove -f "plugin[@id='$b']" rt.equinox.p2/features/org.eclipse.equinox.p2.core.feature/feature.xml fi done -for b in `ls eclipse.platform.team/bundles/ | grep -P -e 'org.eclipse.core.net\.(?!linux.%{eclipse_arch}$)'` ; do - %pom_disable_module bundles/$b eclipse.platform.team +for b in `ls eclipse.platform.team/bundles/org.eclipse.core.net/fragments/ | grep -P -e 'org.eclipse.core.net\.(?!linux.%{eclipse_arch}$)'` ; do + %pom_disable_module bundles/org.eclipse.core.net/fragments/$b eclipse.platform.team done for b in `ls eclipse.platform.resources/bundles/ | grep -P -e 'org.eclipse.core.filesystem\.(?!linux\.%{eclipse_arch}$)'` ; do module=$(grep ">bundles/$b<" eclipse.platform.resources/pom.xml || :) if [ -n "$module" ] ; then %pom_disable_module bundles/$b eclipse.platform.resources + %pom_xpath_remove -f "plugin[@id='$b']" eclipse.platform.resources/tests/org.eclipse.core.tests.filesystem.feature/feature.xml fi done %pom_disable_module org.eclipse.jdt.launching.macosx eclipse.jdt.debug @@ -558,7 +562,6 @@ done %pom_disable_module org.eclipse.e4.ui.workbench.renderers.swt.cocoa eclipse.platform.ui/bundles %pom_disable_module org.eclipse.ui.cocoa eclipse.platform.ui/bundles %pom_disable_module org.eclipse.ui.win32 eclipse.platform.ui/bundles -%pom_disable_module org.eclipse.e4.ui.swt.win32 eclipse.platform.ui/bundles %pom_disable_module bundles/org.eclipse.core.resources.win32.x86_64 eclipse.platform.resources for f in eclipse.jdt/org.eclipse.jdt-feature/feature.xml \ eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml \ @@ -574,6 +577,10 @@ for f in eclipse.jdt/org.eclipse.jdt-feature/feature.xml \ done done +# We don't need SWT fragments since we only care for current arch +%pom_disable_module tests/org.eclipse.swt.tests.fragments.feature eclipse.platform.swt +%pom_xpath_remove "pom:dependency-resolution" eclipse.platform.swt/tests/org.eclipse.swt.tests{,.gtk} + %if %{with bootstrap} || %{without contrib_tools} # Disable contributor tools that have external dependencies during bootstrap %pom_disable_module eclipse.platform.ui.tools @@ -583,6 +590,21 @@ done %pom_disable_module bundles/org.eclipse.swt.tools eclipse.platform.swt %pom_disable_module features/org.eclipse.releng.tools eclipse.platform.releng %pom_disable_module bundles/org.eclipse.releng.tools eclipse.platform.releng +# Disable tests for bootstrapping +%pom_disable_module features/org.eclipse.test-feature eclipse.platform.releng +%pom_disable_module bundles/org.eclipse.test eclipse.platform.releng +%pom_disable_module bundles/org.eclipse.test.performance eclipse.platform.releng +%pom_disable_module bundles/org.eclipse.test.performance.win32 eclipse.platform.releng +%pom_disable_module bundles/org.eclipse.ant.optional.junit eclipse.platform.releng +for pom in eclipse.jdt.core{,.binaries} eclipse.jdt.debug eclipse.jdt.ui eclipse.pde.build eclipse.pde.ui \ + eclipse.platform eclipse.platform.debug eclipse.platform.releng eclipse.platform.resources eclipse.platform.runtime \ + eclipse.platform.swt eclipse.platform.team eclipse.platform.text eclipse.platform.ui eclipse.platform.ua \ + rt.equinox.bundles rt.equinox.framework rt.equinox.p2 ; do + sed -i -e '/.*tests.*<\/module>/d' $pom/pom.xml +done +%pom_disable_module bundles/org.eclipse.equinox.frameworkadmin.test rt.equinox.p2 +%pom_disable_module eclipse-junit-tests eclipse.platform.releng.tychoeclipsebuilder +%pom_disable_module examples/org.eclipse.jface.examples.databinding eclipse.platform.ui %endif # Include some extra features with the product that some other projects may need at @@ -596,6 +618,12 @@ sed -i -e '/org.eclipse.ui.themes/i' \ eclipse.platform.releng/features/org.eclipse.platform-feature/pom.xml +# Prevent dep cycle +%pom_xpath_remove "plugin[@id='org.eclipse.core.tests.harness']" eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml + +# Include maven descriptors to allow our test execution setup to work +%pom_xpath_set "pom:plugin[pom:artifactId = 'tycho-packaging-plugin']/pom:configuration/pom:archive/pom:addMavenDescriptor" "true" eclipse-platform-parent + # Don't set perms on files for platforms that aren't linux for f in rt.equinox.framework/features/org.eclipse.equinox.executable.feature/build.properties; do grep '^root\.linux\.gtk\.%{eclipse_arch}[.=]' $f > tmp @@ -632,13 +660,6 @@ sed -i -e '/org.apache.felix.service.command/s/;status=provisional//' rt.equinox # Pre-compiling JSPs does not currently work %pom_remove_plugin org.eclipse.jetty:jetty-jspc-maven-plugin eclipse.platform.ua/org.eclipse.help.webapp -# Make maven output less noisy due to lack of intenet connection -sed -i -e '/baselineMode/s/warn/disable/' eclipse-platform-parent/pom.xml - -# Remove release parameter not needed when using BREE libs -sed -i -e '/maven.compiler.release/d' \ - eclipse.jdt.debug/org.eclipse.jdt.debug/pom.xml eclipse.jdt.debug/org.eclipse.jdt.launching/pom.xml rt.equinox.p2/bundles/org.eclipse.equinox.p2.artifact.repository/pom.xml - # Use system osgi.annotation lib ln -s $(build-classpath osgi-annotation) rt.equinox.framework/bundles/org.eclipse.osgi/osgi/ ln -s $(build-classpath osgi-annotation) rt.equinox.framework/bundles/org.eclipse.osgi.services/lib/ @@ -649,7 +670,11 @@ ln -s $(build-classpath osgi-annotation) rt.equinox.bundles/bundles/org.eclipse. # The order of these mvn_package calls is important %mvn_package "::pom::" __noinstall -%mvn_package ":org.eclipse.pde.tools.versioning" contributor-tools +%mvn_package ":*tests*" tests +%mvn_package ":org.eclipse.equinox.frameworkadmin.test" tests +%mvn_package ":org.eclipse.jface.examples.databinding" tests +%mvn_package ":org.eclipse.pde.tools.versioning" tests +%mvn_package "org.eclipse.test:org.eclipse.test" contributor-tools %mvn_package "::jar:sources{,-feature}:" sdk %mvn_package ":org.eclipse.jdt.doc.isv" sdk %mvn_package ":org.eclipse.platform.doc.isv" sdk @@ -661,10 +686,11 @@ ln -s $(build-classpath osgi-annotation) rt.equinox.bundles/bundles/org.eclipse. %mvn_package ":org.eclipse.e4{,.core}.tools*" contributor-tools %mvn_package ":org.eclipse.releng.tools" contributor-tools %mvn_package ":org.eclipse.swt.tools*" contributor-tools +%mvn_package "org.eclipse.test{,.feature}:" contributor-tools +%mvn_package ":org.eclipse.ant.optional.junit" contributor-tools %mvn_package "org.eclipse.cvs{,.feature}:" cvs %mvn_package "org.eclipse.team:org.eclipse.team.cvs*" cvs %mvn_package "org.eclipse.pde{,.ui,.feature}:" pde -%mvn_package ":org.eclipse.pde.api.tools*" pde %mvn_package "org.eclipse.ui:org.eclipse.ui.trace" pde %mvn_package "org.eclipse.sdk{,.feature}:" sdk %mvn_package ":" __noinstall @@ -678,29 +704,22 @@ export M_ARCH="$LDFLAGS" #This is the lowest value where the build succeeds. 512m is not enough. export MAVEN_OPTS="-Xmx1024m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}" -export JAVA_HOME=%{_jvmdir}/java-11 - -# TODO: Fix bug in the tycho installation -xmvn -o install:install-file -Dtycho.mode=maven -Dfile=%{_javadir}/tycho/tycho-lib-detector.jar -DpomFile=%{_mavenpomdir}/tycho/tycho-lib-detector.pom +export JAVA_HOME=%{_jvmdir}/java # Pre-build agent jar needed for AdvancedSourceLookupSupport -sed -i -e '/createSourcesJar/d' -e 's/8\.0\.1/7.0/' eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml -sed -i -e 's/V15/V11/' -e 's/ASM8/ASM7/' eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/src/main/java/org/eclipse/jdt/launching/internal/weaving/ClassfileTransformer.java \ - eclipse.pde.ui/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/util/Util.java +sed -i -e '/createSourcesJar/d' eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml (cd eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent && xmvn -e -o -B clean verify) mv eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/target/javaagent-shaded.jar \ eclipse.jdt.debug/org.eclipse.jdt.launching/lib # Qualifier generated from last modification time of source tarball QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M) -%mvn_build -j -f -- -e -DforceContextQualifier=$QUALIFIER -DaggregatorBuild=true -Dbuild.compiler="extJavac" \ +%mvn_build -j -f -- -e -DforceContextQualifier=$QUALIFIER \ %if %{with bootstrap} - -Pbree-libs,!api-generation,!build-docs \ -%else - -Pbree-libs \ + -P !api-generation,!build-docs \ %endif - -Declipse.javadoc=%{_jvmdir}/java-11/bin/javadoc -Dnative=gtk.linux.%{eclipse_arch} \ - -Dtycho.local.keepTarget --global-toolchains %{SOURCE2} \ + -Declipse.javadoc=/usr/bin/javadoc -Dnative=gtk.linux.%{eclipse_arch} \ + -Dtycho.local.keepTarget \ -Dfedora.p2.repos=$(pwd)/.m2/p2/repo-sdk/plugins -DbuildType=X # Location that the product is materialised @@ -737,11 +756,16 @@ popd sed -i "s|-Xms40m|-Xms512m|g" eclipse.ini sed -i "s|-Xmx512m|-Xmx1024m|g" eclipse.ini sed -i '1i-protect\nroot' eclipse.ini -sed -i '/-vmargs/i-vm\n%{_jvmdir}/java-11/bin/java' eclipse.ini # Temporary fix until https://bugs.eclipse.org/294877 is resolved cat >> eclipse.ini < +-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate +-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding +-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile +-XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=%{_datadir}/eclipse/dropins -Dp2.fragments=%{_eclipsedir}/droplets,%{_datadir}/eclipse/droplets -Declipse.p2.skipMovedInstallDetection=true @@ -856,6 +880,21 @@ pushd %{buildroot}/%{_eclipsedir}/ ln -s $(abs2rel %{_jnidir}/swt.jar %{_eclipsedir}) popd +%if %{without bootstrap} && %{with contrib_tools} +# Tests framework +unzip eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/target/eclipse-junit-tests-bundle.zip \ + -d $RPM_BUILD_ROOT/%{_datadir}/ -x eclipse-testing/runtests.bat eclipse-testing/runtestsmac.sh +cp utils/splitter.xsl $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing +rm $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/eclipse-junit-tests-*.zip + +# These properties are not correct and nested properties won't get resolved +sed -i '/org.eclipse.equinox.p2.reconciler.test/ d' $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/equinoxp2tests.properties + +# Package testbundle-to-eclipse-test +cp -r testbundle-to-eclipse-test $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/testbundle +mv $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/testbundle/eclipse-runTestBundles $RPM_BUILD_ROOT/%{_bindir}/eclipse-runTestBundles +%endif + #fix so permissions find $RPM_BUILD_ROOT/%{_eclipsedir} -name *.so -exec chmod a+x {} \; @@ -898,9 +937,6 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/com.jcraft.jsch_* %{_eclipsedir}/plugins/com.sun.el.javax.el_* %{_eclipsedir}/plugins/javax.* -%if 0%{?fedora} -%{_eclipsedir}/plugins/jakarta.* -%endif %{_eclipsedir}/plugins/org.apache.* %{_eclipsedir}/plugins/org.eclipse.ant.core_* %{_eclipsedir}/plugins/org.eclipse.compare_* @@ -936,7 +972,6 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.e4.ui.css.swt.theme_* %{_eclipsedir}/plugins/org.eclipse.e4.ui.di_* %{_eclipsedir}/plugins/org.eclipse.e4.ui.dialogs_* -%{_eclipsedir}/plugins/org.eclipse.e4.ui.ide_* %{_eclipsedir}/plugins/org.eclipse.e4.ui.model.workbench_* %{_eclipsedir}/plugins/org.eclipse.e4.ui.services_* %{_eclipsedir}/plugins/org.eclipse.e4.ui.swt.gtk_* @@ -994,6 +1029,7 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.equinox.security* %{_eclipsedir}/plugins/org.eclipse.equinox.simpleconfigurator_* %{_eclipsedir}/plugins/org.eclipse.equinox.simpleconfigurator.manipulator_* +%{_eclipsedir}/plugins/org.eclipse.equinox.util_* %{_eclipsedir}/plugins/org.eclipse.help_* %{_eclipsedir}/plugins/org.eclipse.help.base_* %{_eclipsedir}/plugins/org.eclipse.help.ui_* @@ -1003,7 +1039,6 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.jface_* %{_eclipsedir}/plugins/org.eclipse.jface.databinding_* %{_eclipsedir}/plugins/org.eclipse.jface.text_* -%{_eclipsedir}/plugins/org.eclipse.jface.notifications_* %{_eclipsedir}/plugins/org.eclipse.jsch.core_* %{_eclipsedir}/plugins/org.eclipse.jsch.ui_* %{_eclipsedir}/plugins/org.eclipse.ltk.core.refactoring_* @@ -1016,7 +1051,6 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.team.genericeditor.diff.extension_* %{_eclipsedir}/plugins/org.eclipse.team.ui_* %{_eclipsedir}/plugins/org.eclipse.text_* -%{_eclipsedir}/plugins/org.eclipse.text.quicksearch_* %{_eclipsedir}/plugins/org.eclipse.ui_* %{_eclipsedir}/plugins/org.eclipse.ui.browser_* %{_eclipsedir}/plugins/org.eclipse.ui.cheatsheets_* @@ -1043,11 +1077,13 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.update.configurator_* %{_eclipsedir}/plugins/org.eclipse.urischeme_* %{_eclipsedir}/plugins/org.glassfish.web.javax.servlet.jsp_* +%{_eclipsedir}/plugins/org.kxml2_* %{_eclipsedir}/plugins/org.sat4j.core_* %{_eclipsedir}/plugins/org.sat4j.pb_* %{_eclipsedir}/plugins/org.tukaani.xz_* %{_eclipsedir}/plugins/org.w3c.css.sac_* %{_eclipsedir}/plugins/org.w3c.dom.svg_* +%{_eclipsedir}/plugins/org.xmlpull_* %doc %{_eclipsedir}/readme %{_eclipsedir}/artifacts.xml %{_eclipsedir}/p2 @@ -1063,8 +1099,11 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %files p2-discovery -f .mfiles-p2-discovery %if %{without bootstrap} && %{with contrib_tools} - %files contributor-tools -f .mfiles-contributor-tools + +%files tests -f .mfiles-tests +%{_bindir}/eclipse-runTestBundles +%{_datadir}/eclipse-testing %endif %files equinox-osgi -f .mfiles-equinox-osgi @@ -1074,86 +1113,6 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} %{_eclipsedir}/plugins/org.eclipse.osgi.util_* %changelog -* Fri Oct 23 2020 Alexander Kurtakov 1:4.16-8 -- Add java-11-openjdk-devel - without it /usr/lib/jvm/java-11 is not created. - -* Thu Oct 22 2020 Alexander Kurtakov 1:4.16-7 -- Add additonal Java 11 dependencies to ensure all parts are installed. - -* Tue Jul 21 2020 Mat Booth - 1:4.16-6 -- Require Java 11 explicitly -- Drop hotspot exclusions from the JDK 6 era - -* Fri Jul 10 2020 Jiri Vanek - 1:4.16-5 -- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 - -* Mon Jun 29 2020 Mat Booth - 1:4.16-4 -- Update linux-build snapshot and fix adding junit classpath containers to java - projects - -* Tue Jun 23 2020 Mat Booth - 1:4.16-3 -- Make a bit more portable and fix bootstrap mode - -* Fri Jun 19 2020 Mat Booth - 1:4.16-2 -- Non-bootstrap build - -* Thu Jun 18 2020 Mat Booth - 1:4.16-1 -- Update to latest upstream release - -* Thu Apr 02 2020 Mat Booth - 1:4.15-5 -- Make the requirement on felix-scr more strict - -* Thu Apr 02 2020 Mat Booth - 1:4.15-4 -- Allow library detector to build on Java 11 - -* Sun Mar 29 2020 Mat Booth - 1:4.15-3 -- Don't build and ship the test framework. We are not shipping any actual tests - anyway and this allows to drop the dependency on mockito and friends. - -* Mon Mar 23 2020 Mat Booth - 1:4.15-2 -- Set compiler release to Java 8 on certain bundles - -* Sat Mar 21 2020 Mat Booth - 1:4.15-1 -- Update to latest upstream release - -* Tue Jan 28 2020 Mat Booth - 1:4.14-5 -- Backport patch to fix build against GCC 10 - -* Thu Jan 23 2020 Mat Booth - 1:4.14-4 -- Remove BR on bouncycastle - -* Thu Jan 23 2020 Mat Booth - 1:4.14-3 -- Remove references to kxml/xpp3 - -* Thu Dec 19 2019 Mat Booth - 1:4.14-2 -- Full build -- Drop tests sub-package - -* Thu Dec 19 2019 Mat Booth - 1:4.14-1 -- Update to latest upstream release - -* Thu Dec 19 2019 Mat Booth - 1:4.13-7 -- Bump requirements on EMF/ECF - -* Wed Dec 18 2019 Mat Booth - 1:4.13-6 -- Remove unnecessary dep on apache-commons-el -- Enable bootstrap mode - -* Wed Nov 20 2019 Mat Booth - 1:4.13-5 -- Obsolete retired packages - -* Mon Sep 23 2019 Mat Booth - 1:4.13-4 -- Add patch for ebz#550606 - -* Mon Sep 23 2019 Mat Booth - 1:4.13-3 -- Fix explicit hamcrest reqs - -* Mon Sep 16 2019 Mat Booth - 1:4.13-2 -- Fix PDE installation - -* Mon Sep 09 2019 Mat Booth - 1:4.13-1 -- Update to latest upstream release - * Wed Jul 24 2019 Mat Booth - 1:4.12-6 - Reenable normal debuginfo generation for the launcher binary on Fedora @@ -1441,3 +1400,4 @@ echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro%{?dist} - Update to Oxygen I-build - Don't build unsupported GTK2 backend for SWT - Move installation to a multilib agnostic location /usr/lib +