diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-19 18:59:50 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2006-11-19 18:59:50 +0000 |
commit | a1acfda43ac1f48e6d163128a4da07bbf52a6f0e (patch) | |
tree | 8c5719129729bf0c8fdcd9773d09e5072bd1aa07 /dev-java/swt/files | |
parent | Of course it is not a security bug (diff) | |
download | gentoo-2-a1acfda43ac1f48e6d163128a4da07bbf52a6f0e.tar.gz gentoo-2-a1acfda43ac1f48e6d163128a4da07bbf52a6f0e.tar.bz2 gentoo-2-a1acfda43ac1f48e6d163128a4da07bbf52a6f0e.zip |
Added patches to fix compiling with the seamonkey use flag. Thanks to Federico Fissore <federico@fsfe.org>.
(Portage version: 2.1.2_rc2)
Diffstat (limited to 'dev-java/swt/files')
-rw-r--r-- | dev-java/swt/files/swt-3.2.1-firefox.patch | 152 | ||||
-rw-r--r-- | dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch | 102 |
2 files changed, 254 insertions, 0 deletions
diff --git a/dev-java/swt/files/swt-3.2.1-firefox.patch b/dev-java/swt/files/swt-3.2.1-firefox.patch new file mode 100644 index 000000000000..ee536bf7d6bb --- /dev/null +++ b/dev-java/swt/files/swt-3.2.1-firefox.patch @@ -0,0 +1,152 @@ +diff -u -r1.33.2.1 make_linux.mak +--- make_linux.mak 26 Jul 2006 16:33:23 -0000 1.33.2.1 ++++ make_linux.mak 29 Sep 2006 13:21:51 -0000 +@@ -202,7 +202,7 @@ + # + # Mozilla lib + # +-make_mozilla:$(MOZILLA_LIB) $(PROFILE14_LIB) $(PROFILE17_LIB) $(PROFILE18_LIB) ++make_mozilla:$(MOZILLA_LIB) + + $(MOZILLA_LIB): $(MOZILLA_OBJECTS) + $(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${GECKO_LIBS} +@@ -220,22 +220,22 @@ + $(CXX) $(MOZILLACFLAGS) ${GECKO_INCLUDES} -c xpcom_stats.cpp + + $(PROFILE14_OBJECTS): xpcom_profile.cpp +- $(CXX) -o $(PROFILE14_OBJECTS) $(MOZILLACFLAGS) ${PROFILE14_INCLUDES} -c xpcom_profile.cpp ++ $(CXX) -o $(PROFILE14_OBJECTS) $(MOZILLACFLAGS) ${PROFILE14_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp + + $(PROFILE17_OBJECTS): xpcom_profile.cpp +- $(CXX) -o $(PROFILE17_OBJECTS) $(MOZILLACFLAGS) ${PROFILE17_INCLUDES} -c xpcom_profile.cpp ++ $(CXX) -o $(PROFILE17_OBJECTS) $(MOZILLACFLAGS) ${PROFILE17_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp + + $(PROFILE18_OBJECTS): xpcom_profile.cpp +- $(CXX) -o $(PROFILE18_OBJECTS) $(MOZILLACFLAGS) ${PROFILE18_INCLUDES} -c xpcom_profile.cpp ++ $(CXX) -o $(PROFILE18_OBJECTS) $(MOZILLACFLAGS) ${PROFILE18_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp + + $(PROFILE14_LIB): $(PROFILE14_OBJECTS) +- $(CXX) -o $(PROFILE14_LIB) $(PROFILE14_OBJECTS) $(MOZILLALIBS) ${PROFILE14_LIBS} ++ $(CXX) -o $(PROFILE14_LIB) $(PROFILE14_OBJECTS) $(MOZILLALIBS) ${PROFILE14_LIBS} ${GECKO_LIBS} + + $(PROFILE17_LIB): $(PROFILE17_OBJECTS) +- $(CXX) -o $(PROFILE17_LIB) $(PROFILE17_OBJECTS) $(MOZILLALIBS) ${PROFILE17_LIBS} ++ $(CXX) -o $(PROFILE17_LIB) $(PROFILE17_OBJECTS) $(MOZILLALIBS) ${PROFILE17_LIBS} ${GECKO_LIBS} + + $(PROFILE18_LIB): $(PROFILE18_OBJECTS) +- $(CXX) -o $(PROFILE18_LIB) $(PROFILE18_OBJECTS) $(MOZILLALIBS) ${PROFILE18_LIBS} ++ $(CXX) -o $(PROFILE18_LIB) $(PROFILE18_OBJECTS) $(MOZILLALIBS) ${PROFILE18_LIBS} ${GECKO_LIBS} + + # + # GLX lib +@@ -264,4 +264,4 @@ + # Clean + # + clean: +- rm -f *.o *.so ++ rm -f *.o *.so +\ No newline at end of file +diff -u -r1.15.2.1 xpcom_stats.cpp +--- xpcom_stats.cpp 26 Jul 2006 16:33:23 -0000 1.15.2.1 ++++ xpcom_stats.cpp 29 Sep 2006 13:21:49 -0000 +@@ -31,15 +31,14 @@ + + #ifdef NATIVE_STATS + +-int XPCOM_nativeFunctionCount = 132; +-int XPCOM_nativeFunctionCallCount[132]; ++int XPCOM_nativeFunctionCount = 131; ++int XPCOM_nativeFunctionCallCount[131]; + char * XPCOM_nativeFunctionNames[] = { + "Call", + "NS_1GetComponentManager", + "NS_1GetServiceManager", +- "NS_1InitEmbedding", ++ "NS_1InitXPCOM3_FUNC", + "NS_1NewLocalFile", +- "NS_1TermEmbedding", + "PR_1Free", + "PR_1Malloc", + "VtblCall__II", +diff -u -r1.1.2.1 xpcom_profile.h +--- xpcom_profile.h 26 Jul 2006 16:33:23 -0000 1.1.2.1 ++++ xpcom_profile.h 29 Sep 2006 13:21:48 -0000 +@@ -32,7 +32,7 @@ + #define NDEBUG + + #include "nsCOMPtr.h" +-#include "nsProfileDirServiceProvider.h" ++#include "profdirserviceprovider/nsProfileDirServiceProvider.h" + #include "xpcom_stats.h" + + #endif /* INC_xpcom_profile_H */ +diff -u -r1.6.2.1 xpcom.h +--- xpcom.h 26 Jul 2006 16:33:23 -0000 1.6.2.1 ++++ xpcom.h 29 Sep 2006 13:21:48 -0000 +@@ -32,7 +32,6 @@ + #define NDEBUG + + #include "nsXPCOM.h" +-#include "nsEmbedAPI.h" + #include "nsEmbedString.h" + #include "nsIInputStream.h" + #include "nsISupportsUtils.h" +diff -u -r1.29.2.1 xpcom.cpp +--- xpcom.cpp 26 Jul 2006 16:33:23 -0000 1.29.2.1 ++++ xpcom.cpp 29 Sep 2006 13:21:48 -0000 +@@ -85,14 +85,16 @@ + } + #endif + +-#ifndef NO_NS_1InitEmbedding +-JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1InitEmbedding) +- (JNIEnv *env, jclass that, jint arg0, jint arg1) ++#ifndef NO_NS_1InitXPCOM3 ++JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1InitXPCOM3) ++ (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) + { + jint rc = 0; +- XPCOM_NATIVE_ENTER(env, that, NS_1InitEmbedding_FUNC); +- rc = (jint)NS_InitEmbedding((nsILocalFile *)arg0, (nsIDirectoryServiceProvider *)arg1); +- XPCOM_NATIVE_EXIT(env, that, NS_1InitEmbedding_FUNC); ++ XPCOM_NATIVE_ENTER(env, that, NS_1GetComponentRegistrar_FUNC); ++ rc = (jint)NS_InitXPCOM3((nsIServiceManager **)arg0, (nsIFile *)arg1, ++ (nsIDirectoryServiceProvider *)arg2, (nsStaticModuleInfo *)arg3, ++ (PRUint32) arg4); ++ XPCOM_NATIVE_EXIT(env, that, NS_1GetComponentRegistrar_FUNC); + return rc; + } + #endif +@@ -113,18 +115,6 @@ + } + #endif + +-#ifndef NO_NS_1TermEmbedding +-JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1TermEmbedding) +- (JNIEnv *env, jclass that) +-{ +- jint rc = 0; +- XPCOM_NATIVE_ENTER(env, that, NS_1TermEmbedding_FUNC); +- rc = (jint)NS_TermEmbedding(); +- XPCOM_NATIVE_EXIT(env, that, NS_1TermEmbedding_FUNC); +- return rc; +-} +-#endif +- + #ifndef NO_PR_1Free + JNIEXPORT void JNICALL XPCOM_NATIVE(PR_1Free) + (JNIEnv *env, jclass that, jint arg0) +diff -u -r1.14.2.1 xpcom_stats.h +--- xpcom_stats.h 26 Jul 2006 16:33:23 -0000 1.14.2.1 ++++ xpcom_stats.h 29 Sep 2006 13:21:49 -0000 +@@ -41,9 +41,8 @@ + Call_FUNC, + NS_1GetComponentManager_FUNC, + NS_1GetServiceManager_FUNC, +- NS_1InitEmbedding_FUNC, ++ NS_1InitXPCOM3_FUNC, + NS_1NewLocalFile_FUNC, +- NS_1TermEmbedding_FUNC, + PR_1Free_FUNC, + PR_1Malloc_FUNC, + VtblCall__II_FUNC, diff --git a/dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch b/dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch new file mode 100644 index 000000000000..991f5f3a2c04 --- /dev/null +++ b/dev-java/swt/files/swt-3.2.1-libswt-xpcomgcc4.patch @@ -0,0 +1,102 @@ +diff -urN ../tmp-orig/swt-gtk-3.1/xpcom.cpp ./xpcom.cpp +--- ../tmp-orig/swt-gtk-3.1/xpcom.cpp 2005-02-03 01:06:52.000000000 +0000 ++++ ./xpcom.cpp 2005-09-10 08:22:37.000000000 +0000 +@@ -141,7 +141,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, PR_1Malloc_FUNC); +- rc = (jint)PR_Malloc(arg0); ++ rc = (long)PR_Malloc(arg0); + XPCOM_NATIVE_EXIT(env, that, PR_1Malloc_FUNC); + return rc; + } +@@ -1868,7 +1868,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1get_FUNC); +- rc = (jint)((nsEmbedCString *)arg0)->get(); ++ rc = (long)((nsEmbedCString *)arg0)->get(); + XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1get_FUNC); + return rc; + } +@@ -1880,7 +1880,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___FUNC); +- rc = (jint)new nsEmbedCString(); ++ rc = (long)new nsEmbedCString(); + XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___FUNC); + return rc; + } +@@ -1894,7 +1894,7 @@ + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___3BI_FUNC); + if (arg0) if ((lparg0 = env->GetByteArrayElements(arg0, NULL)) == NULL) goto fail; +- rc = (jint)new nsEmbedCString((const char *)lparg0, arg1); ++ rc = (long)new nsEmbedCString((const char *)lparg0, arg1); + fail: + if (arg0 && lparg0) env->ReleaseByteArrayElements(arg0, lparg0, 0); + XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___3BI_FUNC); +@@ -1908,7 +1908,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1Length_FUNC); +- rc = (jint)((nsEmbedString *)arg0)->Length(); ++ rc = (long)((nsEmbedString *)arg0)->Length(); + XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1Length_FUNC); + return rc; + } +@@ -1930,7 +1930,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1get_FUNC); +- rc = (jint)((nsEmbedString *)arg0)->get(); ++ rc = (long)((nsEmbedString *)arg0)->get(); + XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1get_FUNC); + return rc; + } +@@ -1942,7 +1942,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___FUNC); +- rc = (jint)new nsEmbedString(); ++ rc = (long)new nsEmbedString(); + XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___FUNC); + return rc; + } +@@ -1956,7 +1956,7 @@ + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___3C_FUNC); + if (arg0) if ((lparg0 = env->GetCharArrayElements(arg0, NULL)) == NULL) goto fail; +- rc = (jint)new nsEmbedString(lparg0); ++ rc = (long)new nsEmbedString(lparg0); + fail: + if (arg0 && lparg0) env->ReleaseCharArrayElements(arg0, lparg0, 0); + XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___3C_FUNC); +@@ -1970,7 +1970,7 @@ + { + jboolean rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsID_1Equals_FUNC); +- rc = (jboolean)((nsID *)arg0)->Equals(*(nsID *)arg1); ++ rc = (long)((nsID *)arg0)->Equals(*(nsID *)arg1); + XPCOM_NATIVE_EXIT(env, that, nsID_1Equals_FUNC); + return rc; + } +@@ -1984,7 +1984,7 @@ + jboolean rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsID_1Parse_FUNC); + if (arg1) if ((lparg1 = env->GetStringUTFChars(arg1, NULL)) == NULL) goto fail; +- rc = (jboolean)((nsID *)arg0)->Parse((const char *)lparg1); ++ rc = (long)((nsID *)arg0)->Parse((const char *)lparg1); + fail: + if (arg1 && lparg1) env->ReleaseStringUTFChars(arg1, lparg1); + XPCOM_NATIVE_EXIT(env, that, nsID_1Parse_FUNC); +@@ -2008,7 +2008,7 @@ + { + jint rc = 0; + XPCOM_NATIVE_ENTER(env, that, nsID_1new_FUNC); +- rc = (jint)new nsID(); ++ rc = (long)new nsID(); + XPCOM_NATIVE_EXIT(env, that, nsID_1new_FUNC); + return rc; + } |