From 6e92fc1401990ce069cf150f06d6d24efdb2878d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sat, 1 Dec 2007 18:48:47 +0000 Subject: [PATCH] - from http://cvs.fedoraproject.org/viewcvs/rpms/eclipse/devel/eclipse-launcher-set-install-dir-and-shared-config.patch Changed files: eclipse-launcher-set-install-dir-and-shared-config.patch -> 1.1 --- ...er-set-install-dir-and-shared-config.patch | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 eclipse-launcher-set-install-dir-and-shared-config.patch 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 index 0000000..cd8b78d --- /dev/null +++ b/eclipse-launcher-set-install-dir-and-shared-config.patch @@ -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 \ -- 2.43.0