- from http://cvs.fedoraproject.org/viewcvs/rpms/eclipse/devel/eclipse-launcher-set...
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 1 Dec 2007 18:48:47 +0000 (18:48 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    eclipse-launcher-set-install-dir-and-shared-config.patch -> 1.1

eclipse-launcher-set-install-dir-and-shared-config.patch [new file with mode: 0644]

diff --git a/eclipse-launcher-set-install-dir-and-shared-config.patch b/eclipse-launcher-set-install-dir-and-shared-config.patch
new file mode 100644 (file)
index 0000000..cd8b78d
--- /dev/null
@@ -0,0 +1,60 @@
+Index: library/eclipse.c
+===================================================================
+RCS file: /cvsroot/eclipse/org.eclipse.equinox.executable/library/eclipse.c,v
+retrieving revision 1.20
+diff -u -r1.20 eclipse.c
+--- library/eclipse.c  8 Feb 2007 16:57:15 -0000       1.20
++++ library/eclipse.c  1 Mar 2007 03:44:19 -0000
+@@ -330,8 +330,9 @@
+ /* Define the required VM arguments (all platforms). */
+ static _TCHAR*  cp = NULL;
+-static _TCHAR*  cpValue = NULL;                                       
+-static _TCHAR** reqVMarg[] = { &cp, &cpValue, NULL }; /* required VM args */
++static _TCHAR*  cpValue = NULL;
++static _TCHAR* sharedConfigurationDir = _T_ECLIPSE("-Dosgi.sharedConfiguration.area=/usr/lib/eclipse/configuration");                                 
++static _TCHAR** reqVMarg[] = { &sharedConfigurationDir, &cp, &cpValue, NULL };        /* required VM args */
+ static _TCHAR** userVMarg  = NULL;                                    /* user specific args for the Java VM  */
+ static _TCHAR** eeVMarg = NULL;                                                       /* vm args specified in ee file */
+ static int nEEargs = 0;
+@@ -915,20 +916,12 @@
+  */
+ _TCHAR* getProgramDir( )
+ {
+-      _TCHAR*  ch;
+       _TCHAR*  programDir;
++      _TCHAR* temp = _T_ECLIPSE("/usr/share/eclipse/");
+-    programDir = malloc( (_tcslen( program ) + 1) * sizeof(_TCHAR) );
+-    _tcscpy( programDir, program );
+-    ch = _tcsrchr( programDir, dirSeparator );
+-      if (ch != NULL)
+-    {
+-      *(ch+1) = _T_ECLIPSE('\0');
+-              return programDir;
+-    }
+-
+-    free( programDir );
+-    return NULL;
++      programDir = malloc( (_tcslen( temp + 1 )) * sizeof(_TCHAR) );
++      _tcscpy( programDir, temp );
++      return programDir;
+ }
+ static _TCHAR* findStartupJar(){
+Index: library/gtk/make_linux.mak
+===================================================================
+RCS file: /cvsroot/eclipse/org.eclipse.equinox.executable/library/gtk/make_linux.mak,v
+retrieving revision 1.10
+diff -u -r1.10 make_linux.mak
+--- library/gtk/make_linux.mak 7 Feb 2007 18:13:48 -0000       1.10
++++ library/gtk/make_linux.mak 1 Mar 2007 03:44:19 -0000
+@@ -43,7 +43,7 @@
+ DLL = $(PROGRAM_LIBRARY)
+ LIBS = `pkg-config --libs-only-L gtk+-2.0` -lgtk-x11-2.0 -lgdk_pixbuf-2.0 -lgobject-2.0 -lgdk-x11-2.0 -lpthread -ldl
+ LFLAGS = -shared -fpic -Wl,--export-dynamic 
+-CFLAGS = -O -s -Wall\
++CFLAGS = -O -s -Wall -g \
+       -fpic \
+       -DLINUX \
+       -DMOZILLA_FIX \
This page took 0.023743 seconds and 4 git commands to generate.