diff --git a/eclipse-cdt-config-ini.patch b/eclipse-cdt-config-ini.patch index 2d541ed..4bb57f9 100644 --- a/eclipse-cdt-config-ini.patch +++ b/eclipse-cdt-config-ini.patch @@ -1,28 +1,27 @@ ---- debug/org.eclipse.cdt.debug.application.product/debug.product.orig 2018-12-11 12:11:30.000000000 +0000 -+++ debug/org.eclipse.cdt.debug.application.product/debug.product 2019-01-07 13:50:03.610741483 +0000 -@@ -176,16 +176,14 @@ - +diff --git a/debug/org.eclipse.cdt.debug.application.product/debug.product b/debug/org.eclipse.cdt.debug.application.product/debug.product +index 71ffdc66..094df401 100644 +--- a/debug/org.eclipse.cdt.debug.application.product/debug.product ++++ b/debug/org.eclipse.cdt.debug.application.product/debug.product +@@ -175,15 +175,14 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U -- + - -- ++ + - -+ -+ + - + -- + - -+ -@@ -197,7 +195,7 @@ +@@ -195,7 +194,7 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -31,7 +30,7 @@ -@@ -205,10 +203,7 @@ +@@ -203,10 +202,7 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -42,7 +41,7 @@ -@@ -240,12 +235,9 @@ +@@ -239,12 +235,9 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -55,7 +54,7 @@ -@@ -270,7 +262,6 @@ +@@ -271,7 +264,6 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -63,7 +62,7 @@ -@@ -299,9 +290,7 @@ +@@ -298,9 +290,7 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -73,7 +72,7 @@ -@@ -320,7 +309,6 @@ +@@ -319,7 +309,6 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -81,7 +80,7 @@ -@@ -348,9 +336,7 @@ +@@ -346,9 +335,7 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -91,7 +90,7 @@ -@@ -359,7 +345,6 @@ +@@ -357,7 +344,6 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U @@ -99,7 +98,7 @@ -@@ -374,14 +359,13 @@ +@@ -372,14 +358,13 @@ Java and all Java-based trademarks are trademarks of Oracle Corporation in the U diff --git a/eclipse-cdt.spec b/eclipse-cdt.spec index 238ddd8..2da948a 100644 --- a/eclipse-cdt.spec +++ b/eclipse-cdt.spec @@ -2,7 +2,7 @@ %global _build_id_links alldebug -%bcond_with bootstrap +%bcond_without bootstrap # Change following to 0 to default to no remote support when building # for the first time in a buildroot -- this is needed to build: @@ -36,14 +36,16 @@ Epoch: 2 # Glassfish EE APIs that moved to jakarta namespace %if 0%{?fedora} >= 33 %global _jakarta_annotations jakarta.annotation-api +%global _jakarta_jaxb jakarta.xml.bind-api %else %global _jakarta_annotations javax.annotation-api +%global _jakarta_jaxb jaxb-api %endif Summary: Eclipse C/C++ Development Tools (CDT) plugin Name: eclipse-cdt Version: 9.11.1 -Release: 6%{?dist} +Release: 7%{?dist} License: EPL-2.0 and CPL URL: https://www.eclipse.org/cdt @@ -193,7 +195,7 @@ mkdir man cp %{SOURCE4} man %patch1 -p0 -%patch2 -p0 +%patch2 -p1 %patch3 -p1 # Fix tycho target environment @@ -380,18 +382,18 @@ sed -i -e 's/>javax.annotation%{_jakarta_annotations} jakarta +sed -i -e 's/com.sun.xml.bind/com.sun.xml.bind.jaxb-impl/' \ + tools.templates/org.eclipse.tools.templates.freemarker/META-INF/MANIFEST.MF \ + debug/org.eclipse.cdt.debug.application.product/debug.product +sed -i -e 's/javax.xml.bind/%{_jakarta_jaxb}/' \ + tools.templates/org.eclipse.tools.templates.freemarker/build.properties \ + debug/org.eclipse.cdt.debug.application.product/debug.product + # Relax the version constraint of the gson dep sed -i -e '/com.google.gson/s/;\(bundle-\)\?version=".*"//' \ jtag/org.eclipse.cdt.debug.dap.gdbjtag/META-INF/MANIFEST.MF build/org.eclipse.cdt.managedbuilder.core/META-INF/MANIFEST.MF -# Fix jaxb deps -sed -i -e 's/com.sun.xml.bind/com.sun.xml.bind.jaxb-impl/' tools.templates/org.eclipse.tools.templates.freemarker/META-INF/MANIFEST.MF -%if 0%{?fedora} >= 33 -sed -i -e 's/javax.xml.bind/jakarta.xml.bind-api/' tools.templates/org.eclipse.tools.templates.freemarker/build.properties -%else -sed -i -e 's/javax.xml.bind/jaxb-api/' tools.templates/org.eclipse.tools.templates.freemarker/build.properties -%endif - %mvn_package "::pom::" __noinstall %mvn_package "::jar:sources{,-feature}:" sdk %mvn_package :*.sdk sdk @@ -425,6 +427,9 @@ QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +%Y%m%d%H%M) %install %mvn_install +# Avoid unnecessary dep on java-headless 11 due to Java 11 specific fragment +sed -i 's/>111.8 - 2:9.11.1-7 +- Fix unnecessary Java 11 dep from this package due to Java 11 specific bundle + fragment + * Tue Aug 11 2020 Mat Booth - 2:9.11.1-6 - Fix build against updated jaxb packages - Force build against Java 11