summaryrefslogtreecommitdiff
path: root/java/eclipse-devel/files/patch-another-extra-patches
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/eclipse-devel/files/patch-another-extra-patches182
-rw-r--r--java/eclipse-devel/files/patch-another-extra-patches2119
2 files changed, 301 insertions, 0 deletions
diff --git a/java/eclipse-devel/files/patch-another-extra-patches b/java/eclipse-devel/files/patch-another-extra-patches
new file mode 100644
index 000000000000..1dfd472483e5
--- /dev/null
+++ b/java/eclipse-devel/files/patch-another-extra-patches
@@ -0,0 +1,182 @@
+--- plugins/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java.orig 2007-06-26 04:57:18.000000000 +0900
++++ plugins/org.eclipse.core.runtime/src/org/eclipse/core/runtime/Platform.java 2007-09-13 09:48:55.000000000 +0900
+@@ -193,6 +193,17 @@
+ public static final String OS_WIN32 = "win32";//$NON-NLS-1$
+
+ /**
++ * Constant string (value "freebsd") indicating the platform is running on a
++ * FreeBSD-based operating system.
++ * <p>
++ * Note this constant has been moved from the deprecated
++ * org.eclipse.core.boot.BootLoader class and its value has not changed.
++ * </p>
++ * @since 3.0
++ */
++ public static final String OS_FREEBSD = "freebsd";//$NON-NLS-1$
++
++ /**
+ * Constant string (value "linux") indicating the platform is running on a
+ * Linux-based operating system.
+ * <p>
+
+--- plugins/org.eclipse.equinox.launcher/src/org/eclipse/equinox/internal/launcher/Constants.java.orig 2007-06-26 04:57:18.000000000 +0900
++++ plugins/org.eclipse.equinox.launcher/src/org/eclipse/equinox/internal/launcher/Constants.java 2007-09-13 09:37:01.000000000 +0900
+@@ -18,6 +18,7 @@
+ public static final String INTERNAL_ARCH_I386 = "i386"; //$NON-NLS-1$
+ public static final String INTERNAL_AMD64 = "amd64"; //$NON-NLS-1$
+ public static final String INTERNAL_OS_SUNOS = "SunOS"; //$NON-NLS-1$
++ public static final String INTERNAL_OS_FREEBSD = "FreeBSD"; //$NON-NLS-1$
+ public static final String INTERNAL_OS_LINUX = "Linux"; //$NON-NLS-1$
+ public static final String INTERNAL_OS_MACOSX = "Mac OS"; //$NON-NLS-1$
+ public static final String INTERNAL_OS_AIX = "AIX"; //$NON-NLS-1$
+@@ -34,6 +35,12 @@
+ public static final String OS_WIN32 = "win32";//$NON-NLS-1$
+
+ /**
++ * Constant string (value "freebsd") indicating the platform is running on a
++ * Linux-based operating system.
++ */
++ public static final String OS_FREEBSD = "freebsd";//$NON-NLS-1$
++
++ /**
+ * Constant string (value "linux") indicating the platform is running on a
+ * Linux-based operating system.
+ */
+
+--- plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/BrandingIron.java.orig 2007-06-26 04:57:16.000000000 +0900
++++ plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/BrandingIron.java 2007-09-13 01:54:23.000000000 +0900
+@@ -72,6 +72,8 @@
+ brandWindows();
+ if ("linux".equals(os)) //$NON-NLS-1$
+ brandLinux();
++ if ("freebsd".equals(os)) //$NON-NLS-1$
++ brandFreeBSD();
+ if ("solaris".equals(os)) //$NON-NLS-1$
+ brandSolaris();
+ if ("macosx".equals(os)) //$NON-NLS-1$
+@@ -90,6 +92,12 @@
+ renameLauncher();
+ }
+
++ private void brandFreeBSD() throws Exception {
++ renameLauncher();
++ if (brandIcons)
++ copy(new File(icons[0]), new File(root, "icon.xpm"));
++ }
++
+ private void brandLinux() throws Exception {
+ renameLauncher();
+ if (brandIcons)
+
+--- plugins/org.eclipse.pde.build/templates/packager/packaging.properties.orig 2007-06-26 04:57:16.000000000 +0900
++++ plugins/org.eclipse.pde.build/templates/packager/packaging.properties 2007-09-13 01:51:19.000000000 +0900
+@@ -18,6 +18,8 @@
+
+ root.win32.win32.x86=eclipse.exe, eclipsec.exe
+ root.linux.motif.x86=eclipse,libcairo-swt.so,libXm.so.2,about_files/,about.html,icon.xpm
++root.freebsd.gtk.x86=eclipse,libcairo-swt.so,about_files/,about.html,icon.xpm
++root.freebsd.amd64.x86_64=eclipse,libcairo-swt.so,about_files/,about.html,icon.xpm
+ root.linux.gtk.x86=eclipse,libcairo-swt.so,about_files/,about.html,icon.xpm
+ root.linux.gtk.x86_64=eclipse,libcairo-swt.so,about_files/,about.html,icon.xpm
+ root.linux.gtk.ppc=eclipse
+
+--- plugins/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/rcp/IntroTemplate.java.orig 2007-06-26 04:57:02.000000000 +0900
++++ plugins/org.eclipse.pde.ui.templates/src/org/eclipse/pde/internal/ui/templates/rcp/IntroTemplate.java 2007-09-13 01:40:37.000000000 +0900
+@@ -169,7 +169,7 @@
+ IPluginElement implementationElement = factory
+ .createElement(presentationElement);
+ implementationElement.setName("implementation"); //$NON-NLS-1$
+- implementationElement.setAttribute("os", "win32,linux,macosx"); //$NON-NLS-1$ //$NON-NLS-2$
++ implementationElement.setAttribute("os", "win32,linux,freebsd,macosx"); //$NON-NLS-1$ //$NON-NLS-2$
+ if (getTargetVersion() == 3.0)
+ implementationElement.setAttribute("style", "content/shared.css"); //$NON-NLS-1$//$NON-NLS-2$
+
+
+--- plugins/org.eclipse.core.runtime.compatibility/src-boot/org/eclipse/core/boot/BootLoader.java.orig 2007-06-26 04:57:25.000000000 +0900
++++ plugins/org.eclipse.core.runtime.compatibility/src-boot/org/eclipse/core/boot/BootLoader.java 2007-09-13 01:38:36.000000000 +0900
+@@ -72,6 +72,13 @@
+ public static final String OS_LINUX = "linux";//$NON-NLS-1$
+
+ /**
++ * Constant string (value "freebsd") indicating the platform is running on a
++ * Linux-based operating system.
++ * @deprecated Replaced by {@link Platform#OS_FREEBSD}.
++ */
++ public static final String OS_FREEBSD = "freebsd";//$NON-NLS-1$
++
++ /**
+ * Constant string (value "aix") indicating the platform is running on an
+ * AIX-based operating system.
+ * @deprecated Replaced by {@link Platform#OS_AIX}.
+
+--- plugins/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/util/TextProcessor.java.orig 2007-06-26 04:57:18.000000000 +0900
++++ plugins/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/util/TextProcessor.java 2007-09-13 01:10:07.000000000 +0900
+@@ -82,8 +82,8 @@
+ isBidi = true;
+
+ String osName = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
+- if (osName.startsWith("windows") || osName.startsWith("linux")) { //$NON-NLS-1$ //$NON-NLS-2$
+-
++ if (osName.startsWith("windows") || osName.startsWith("linux")
++ || osName.startsWith("freebsd")) { //$NON-NLS-1$ //$NON-NLS-2$
+ // Only consider platforms that can support control characters
+ isSupportedPlatform = true;
+ }
+
+--- plugins/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/osgi/service/environment/Constants.java.orig 2007-06-26 04:57:02.000000000 +0900
++++ plugins/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/osgi/service/environment/Constants.java 2007-09-13 01:03:14.000000000 +0900
+@@ -29,6 +29,12 @@
+ public static final String OS_LINUX = "linux";//$NON-NLS-1$
+
+ /**
++ * Constant string (value "freebsd") indicating the platform is running on a
++ * FreeBSD-based operating system.
++ */
++ public static final String OS_FREEBSD = "freebsd";//$NON-NLS-1$
++
++ /**
+ * Constant string (value "aix") indicating the platform is running on an
+ * AIX-based operating system.
+ */
+
+
+--- features/org.eclipse.rcp/build.properties.orig 2007-06-26 04:57:18.000000000 +0900
++++ features/org.eclipse.rcp/build.properties 2007-09-13 00:43:31.000000000 +0900
+@@ -23,6 +23,10 @@
+
+ root.solaris.gtk.sparc=../../features/org.eclipse.equinox.executable/bin/gtk/solaris/sparc
+
++root.freebsd.gtk.x86=../../features/org.eclipse.platform/about_files/freebsd.gtk.x86,../../features/org.eclipse.equinox.executable/bin/gtk/freebsd/x86
++root.freebsd.gtk.x86.permissions.755=*.so*
++root.freebsd.gtk.amd64=../../features/org.eclipse.platform/about_files/freebsd.gtk.amd64,../../features/org.eclipse.equinox.executable/bin/gtk/freebsd/amd64
++root.freebsd.gtk.amd64.permissions.755=*.so*
+ root.linux.gtk.x86=../../features/org.eclipse.platform/about_files/linux.gtk.x86,../../features/org.eclipse.equinox.executable/bin/gtk/linux/x86
+ root.linux.gtk.x86.permissions.755=*.so*
+ root.linux.gtk.s390=../../features/org.eclipse.platform/about_files/linux.gtk.s390,../../features/org.eclipse.equinox.executable/contributed/gtk/linux/s390
+
+--- features/org.eclipse.platform/build.properties.orig 2007-06-26 04:57:18.000000000 +0900
++++ features/org.eclipse.platform/build.properties 2007-09-13 00:35:59.000000000 +0900
+@@ -32,7 +32,10 @@
+ root.solaris.motif.sparc=../../features/org.eclipse.equinox.executable/bin/gtk/solaris/sparc,motif
+ root.solaris.gtk.x86=../../launchertmp,gtk
+
+-
++root.freebsd.gtk.x86=about_files/freebsd.gtk.x86,../../features/org.eclipse.equinox.executable/bin/gtk/freebsd/x86,gtk
++root.freebsd.gtk.x86.permissions.755=*.so*
++root.freebsd.gtk.amd64=about_files/freebsd.gtk.amd64,../../features/org.eclipse.equinox.executable/bin/gtk/freebsd/amd64,gtk
++root.freebsd.gtk.amd64.permissions.755=*.so*
+ root.linux.gtk.x86=about_files/linux.gtk.x86,../../features/org.eclipse.equinox.executable/bin/gtk/linux/x86,gtk
+ root.linux.gtk.x86.permissions.755=*.so*
+ root.linux.gtk.s390=about_files/linux.gtk.s390,../../features/org.eclipse.equinox.executable/contributed/gtk/linux/s390,gtk
+
+--- features/org.eclipse.sdk/build.properties.orig 2007-06-26 04:57:03.000000000 +0900
++++ features/org.eclipse.sdk/build.properties 2007-09-13 00:32:31.000000000 +0900
+@@ -32,6 +32,8 @@
+ root.aix.motif.ppc=motif
+ root.hpux.motif.PA_RISC=motif
+ root.solaris.gtk.sparc=gtk
++root.freebsd.gtk.x86=gtk
++root.freebsd.gtk.amd64=gtk
+ root.linux.gtk.x86=gtk
+ root.linux.gtk.x86_64=gtk
+ root.linux.gtk.ppc=gtk
diff --git a/java/eclipse-devel/files/patch-another-extra-patches2 b/java/eclipse-devel/files/patch-another-extra-patches2
new file mode 100644
index 000000000000..9d2ded65ca21
--- /dev/null
+++ b/java/eclipse-devel/files/patch-another-extra-patches2
@@ -0,0 +1,119 @@
+--- plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/ProductFile.java.orig 2007-06-26 04:57:03.000000000 +0900
++++ plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/ProductFile.java 2007-09-13 13:38:20.000000000 +0900
+@@ -214,6 +214,9 @@
+ key = VM_ARGS_WIN;
+ } else if( os.equals(Platform.OS_LINUX)) {
+ key = VM_ARGS_LINUX;
++ } else if( os.equals(Platform.OS_FREEBSD)) {
++ // You do not like this?
++ key = VM_ARGS_LINUX;
+ } else if( os.equals(Platform.OS_MACOSX)) {
+ key = VM_ARGS_MAC;
+ } else if(os.equals(Platform.OS_SOLARIS)) {
+@@ -237,6 +240,8 @@
+ key = PROGRAM_ARGS_WIN;
+ } else if( os.equals(Platform.OS_LINUX)) {
+ key = PROGRAM_ARGS_LINUX;
++ } else if( os.equals(Platform.OS_FREEBSD)) {
++ key = PROGRAM_ARGS_LINUX;
+ } else if( os.equals(Platform.OS_MACOSX)) {
+ key = PROGRAM_ARGS_MAC;
+ } else if(os.equals(Platform.OS_SOLARIS)) {
+@@ -494,7 +499,7 @@
+ }
+
+ private void processLinux(Attributes attributes) {
+- if (!osMatch(Platform.OS_LINUX))
++ if (!osMatch(Platform.OS_LINUX) && !osMatch(Platform.OS_FREEBSD) )
+ return;
+ result.add(attributes.getValue("icon")); //$NON-NLS-1$
+ }
+
+
+--- plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/Utils.java.orig 2007-06-26 04:57:09.000000000 +0900
++++ plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/Utils.java 2007-09-13 15:40:52.000000000 +0900
+@@ -419,12 +419,18 @@
+
+ private static void generateLinkInstruction(AntScript script, String dir, String files) {
+ String[] links = Utils.getArrayFromString(files, ","); //$NON-NLS-1$
+- List arguments = new ArrayList(2);
++ List arguments = new ArrayList(2);
++ String os_running = "FreeBSD";
++
++ String os = System.getProperty("os.name"); //$NON-NLS-1$
++ if (os != null && os.toLowerCase().indexOf("lin") >= 0) os_running = "Linux"; //$NON-NLS-1$
++ if (os != null && os.toLowerCase().indexOf("free") >= 0) os_running = "FreeBSD"; //$NON-NLS-1$
++
+ for (int i = 0; i < links.length; i += 2) {
+ arguments.add("-sf"); //$NON-NLS-1$
+ arguments.add(links[i]);
+ arguments.add(links[i + 1]);
+- script.printExecTask("ln", dir, arguments, "Linux"); //$NON-NLS-1$ //$NON-NLS-2$
++ script.printExecTask("ln", dir, arguments, os_running); //$NON-NLS-1$ //$NON-NLS-2$
+ arguments.clear();
+ }
+ }
+
+
+--- plugins/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/JNLPGenerator.java.orig 2007-06-26 04:57:06.000000000 +0900
++++ plugins/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/JNLPGenerator.java 2007-09-13 13:45:14.000000000 +0900
+@@ -307,6 +307,8 @@
+ return "Mac"; //$NON-NLS-1$
+ if ("linux".equalsIgnoreCase(os)) //$NON-NLS-1$
+ return "Linux"; //$NON-NLS-1$
++ if ("freebsd".equalsIgnoreCase(os)) //$NON-NLS-1$
++ return "FreeBSD"; //$NON-NLS-1$
+ if ("solaris".equalsIgnoreCase(os)) //$NON-NLS-1$
+ return "Solaris"; //$NON-NLS-1$
+ if ("hpux".equalsIgnoreCase(os)) //$NON-NLS-1$
+
+
+--- plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/WebBrowserUtil.java.orig 2007-06-26 04:57:14.000000000 +0900
++++ plugins/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/WebBrowserUtil.java 2007-09-13 13:48:02.000000000 +0900
+@@ -70,6 +70,18 @@
+ }
+
+ /**
++ * Returns true if we're running on freebsd.
++ *
++ * @return boolean
++ */
++ public static boolean isFreeBSD() {
++ String os = System.getProperty("os.name"); //$NON-NLS-1$
++ if (os != null && os.toLowerCase().indexOf("free") >= 0) //$NON-NLS-1$
++ return true;
++ return false;
++ }
++
++ /**
+ * Open a dialog window.
+ *
+ * @param message
+@@ -293,4 +305,4 @@
+ }
+ return encodedId;
+ }
+-}
+\ No newline at end of file
++}
+
+
+--- plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java.orig 2007-06-26 04:57:21.000000000 +0900
++++ plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/builder/ModelBuildScriptGenerator.java 2007-09-13 15:40:33.000000000 +0900
+@@ -561,10 +561,15 @@
+ private void generateLinkInstruction(String dir, String files) {
+ String[] links = Utils.getArrayFromString(files, ","); //$NON-NLS-1$
+ List arguments = new ArrayList(2);
++ String os_running = "FreeBSD";
++ String os = System.getProperty("os.name"); //$NON-NLS-1$
++ if (os != null && os.toLowerCase().indexOf("lin") >= 0) os_running = "Linux"; //$NON-NLS-1$
++ if (os != null && os.toLowerCase().indexOf("free") >= 0) os_running = "FreeBSD"; //$NON-NLS-1$
++
+ for (int i = 0; i < links.length; i += 2) {
+ arguments.add(links[i]);
+ arguments.add(links[i + 1]);
+- script.printExecTask("ln -s", dir, arguments, "Linux"); //$NON-NLS-1$ //$NON-NLS-2$
++ script.printExecTask("ln", dir, arguments, os_running); //$NON-NLS-1$ //$NON-NLS-2$
+ arguments.clear();
+ }
+ }