File eclipse-riscv64.patch of Package eclipse.32874

Index: eclipse-platform-sources-I20200305-0155/eclipse.platform.swt.binaries/pom.xml
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/eclipse.platform.swt.binaries/pom.xml
+++ eclipse-platform-sources-I20200305-0155/eclipse.platform.swt.binaries/pom.xml
@@ -55,6 +55,7 @@
   <modules>
     <module>bundles/org.eclipse.swt.cocoa.macosx.x86_64</module>
     <module>bundles/org.eclipse.swt.gtk.linux.aarch64</module>
+    <module>bundles/org.eclipse.swt.gtk.linux.riscv64</module>
     <module>bundles/org.eclipse.swt.gtk.linux.ppc64</module>
     <module>bundles/org.eclipse.swt.gtk.linux.ppc64le</module>
     <module>bundles/org.eclipse.swt.gtk.linux.s390x</module>
Index: eclipse-platform-sources-I20200305-0155/eclipse.platform.swt/bundles/org.eclipse.swt/META-INF/p2.inf
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/eclipse.platform.swt/bundles/org.eclipse.swt/META-INF/p2.inf
+++ eclipse-platform-sources-I20200305-0155/eclipse.platform.swt/bundles/org.eclipse.swt/META-INF/p2.inf
@@ -39,3 +39,8 @@ requires.8.namespace = org.eclipse.equin
 requires.8.name = org.eclipse.swt.gtk.linux.ppc64
 requires.8.range = [$version$,$version$]
 requires.8.filter = (&(osgi.os=linux)(osgi.ws=gtk)(osgi.arch=ppc64)(!(org.eclipse.swt.buildtime=true)))
+
+requires.9.namespace = org.eclipse.equinox.p2.iu
+requires.9.name = org.eclipse.swt.gtk.linux.riscv64
+requires.9.range = [$version$,$version$]
+requires.9.filter = (&(osgi.os=linux)(osgi.ws=gtk)(osgi.arch=riscv64)(!(org.eclipse.swt.buildtime=true)))
Index: eclipse-platform-sources-I20200305-0155/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml
+++ eclipse-platform-sources-I20200305-0155/eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml
@@ -403,6 +403,16 @@
          fragment="true"/>
 
    <plugin
+         id="org.eclipse.equinox.launcher.gtk.linux.riscv64"
+         os="linux"
+         ws="gtk"
+         arch="riscv64"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
+         fragment="true"/>
+
+   <plugin
          id="org.eclipse.equinox.launcher.gtk.linux.s390x"
          os="linux"
          ws="gtk"
@@ -543,6 +553,17 @@
          download-size="0"
          install-size="0"
          version="0.0.0"
+         fragment="true"
+         unpack="false"/>
+
+   <plugin
+         id="org.eclipse.swt.gtk.linux.riscv64"
+         os="linux"
+         ws="gtk"
+         arch="riscv64"
+         download-size="0"
+         install-size="0"
+         version="0.0.0"
          fragment="true"
          unpack="false"/>
 
Index: eclipse-platform-sources-I20200305-0155/eclipse.platform.ui/features/org.eclipse.e4.rcp/pom.xml
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/eclipse.platform.ui/features/org.eclipse.e4.rcp/pom.xml
+++ eclipse-platform-sources-I20200305-0155/eclipse.platform.ui/features/org.eclipse.e4.rcp/pom.xml
@@ -44,6 +44,7 @@
                 <plugin id="org.eclipse.equinox.launcher.win32.win32.x86_64"/>
                 <plugin id="org.eclipse.equinox.launcher.gtk.linux.arm" />
                 <plugin id="org.eclipse.equinox.launcher.gtk.linux.aarch64" />
+                <plugin id="org.eclipse.equinox.launcher.gtk.linux.riscv64" />
                 <plugin id="org.eclipse.equinox.launcher.gtk.linux.s390x" />
                 <plugin id="org.eclipse.equinox.launcher.gtk.linux.ppc64" />
                 <plugin id="org.eclipse.equinox.launcher.gtk.linux.x86" />
Index: eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/build.properties
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/build.properties
+++ eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/build.properties
@@ -39,5 +39,8 @@ root.linux.gtk.x86_64.permissions.755=li
 root.linux.gtk.aarch64=bin/gtk/linux/aarch64,gtk_root
 root.linux.gtk.aarch64.permissions.755=launcher
 
+root.linux.gtk.riscv64=bin/gtk/linux/riscv64,gtk_root
+root.linux.gtk.riscv64.permissions.755=launcher
+
 root.linux.gtk.s390x=bin/gtk/linux/s390x,gtk_root
 root.linux.gtk.s390x.permissions.755=launcher
Index: eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/build.sh
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/build.sh
+++ eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/library/gtk/build.sh
@@ -112,6 +112,11 @@ case $defaultOS in
 				defaultJava=DEFAULT_JAVA_EXEC
 				OUTPUT_DIR="$EXEC_DIR/bin/$defaultWS/$defaultOS/$defaultOSArch"
 				;;
+			"riscv64")
+				defaultOSArch="riscv64"
+				defaultJava=DEFAULT_JAVA_EXEC
+				OUTPUT_DIR="$EXEC_DIR/bin/$defaultWS/$defaultOS/$defaultOSArch"
+				;;
 			*)
 				echo "*** Unknown MODEL <${MODEL}>"
 				;;
Index: eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/pom.xml
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/pom.xml
+++ eclipse-platform-sources-I20200305-0155/rt.equinox.framework/features/org.eclipse.equinox.executable.feature/pom.xml
@@ -124,6 +124,7 @@
                       <fileset dir="${rt.equinox.binaries.loc}/org.eclipse.equinox.executable/bin/">
                         <include name="cocoa/macosx/x86_64/**/*"/>
                         <include name="gtk/linux/aarch64/**/*"/>
+                        <include name="gtk/linux/riscv64/**/*"/>
                         <include name="gtk/linux/ppc64/**/*"/>
                         <include name="gtk/linux/ppc64le/**/*"/>
                         <include name="gtk/linux/s390x/**/*"/>
Index: eclipse-platform-sources-I20200305-0155/rt.equinox.framework/pom.xml
===================================================================
--- eclipse-platform-sources-I20200305-0155.orig/rt.equinox.framework/pom.xml
+++ eclipse-platform-sources-I20200305-0155/rt.equinox.framework/pom.xml
@@ -78,6 +78,18 @@
       </modules>
     </profile>
     <profile>
+      <id>build-native-launchers-gtk.linux.riscv64</id>
+      <activation>
+	<property>
+	  <name>native</name>
+	  <value>gtk.linux.riscv64</value>
+        </property>
+      </activation>
+      <modules>
+	<module>bundles/org.eclipse.equinox.launcher.gtk.linux.riscv64</module>
+      </modules>
+    </profile>
+    <profile>
       <id>build-native-launchers-gtk.linux.s390x</id>
       <activation>
 	<property>
openSUSE Build Service is sponsored by