View | Details | Raw Unified | Return to bug 105581 | Differences between
and this patch

Collapse All | Expand All

(-)eclipse/Makefile (-20 / +37 lines)
Lines 2-13 Link Here
2
# Date created:				March 7, 2003
2
# Date created:				March 7, 2003
3
# Whom:					various members of freebsd-java
3
# Whom:					various members of freebsd-java
4
#
4
#
5
# $FreeBSD: ports/java/eclipse/Makefile,v 1.50 2006/11/04 02:06:49 kan Exp $
5
# $FreeBSD$
6
#
6
#
7
7
8
PORTNAME=	eclipse
8
PORTNAME=	eclipse
9
PORTVERSION=	3.2.1
9
PORTVERSION=	3.2.1
10
#PORTREVISION=	0
10
PORTREVISION=	1
11
CATEGORIES=	java devel
11
CATEGORIES=	java devel
12
MASTER_SITES=	${MASTER_SITE_ECLIPSE}
12
MASTER_SITES=	${MASTER_SITE_ECLIPSE}
13
MASTER_SITE_SUBDIR=	R-${PORTVERSION}-200609210945
13
MASTER_SITE_SUBDIR=	R-${PORTVERSION}-200609210945
Lines 27-32 Link Here
27
USE_ZIP=	yes
27
USE_ZIP=	yes
28
USE_GCC=	3.4+
28
USE_GCC=	3.4+
29
29
30
.if !defined(WITHOUT_MOZILLA)
31
USE_GECKO=	xulrunner firefox mozilla seamonkey
32
.endif
33
30
USE_JAVA=	yes
34
USE_JAVA=	yes
31
JAVA_VERSION=	1.5+
35
JAVA_VERSION=	1.5+
32
JAVA_OS=	native
36
JAVA_OS=	native
Lines 39-73 Link Here
39
43
40
ECLIPSE_WS=	gtk
44
ECLIPSE_WS=	gtk
41
45
42
.if !defined(WITHOUT_MOZILLA)
46
.if defined(WITHOUT_GNOMEVFS)
43
MAKE_MOZILLA=	make_mozilla
47
MAKE_GNOME=
44
.if defined(WITH_MOZILLA) && ${WITH_MOZILLA} != "mozilla"
48
USE_GNOME=	gtk20 pkgconfig desktopfileutils
45
BROWSER=	${WITH_MOZILLA}
46
BUILD_DEPENDS+=	${BROWSER}:${PORTSDIR}/www/${BROWSER}
47
.else
49
.else
48
BUILD_DEPENDS+=	mozilla:${PORTSDIR}/www/mozilla
50
MAKE_GNOME=	make_gnome
49
BROWSER=	mozilla
51
USE_GNOME=	gtk20 gnomevfs2 libgnome libgnomeui pkgconfig desktopfileutils
50
.endif
52
.endif
53
54
55
.include <bsd.port.pre.mk>
56
57
.if !defined(WITHOUT_MOZILLA)
58
MAKE_MOZILLA=	make_mozilla
59
BROWSER=	${GECKO}
51
.else
60
.else
52
BROWSER=
61
BROWSER=
53
MAKE_MOZILLA=
62
MAKE_MOZILLA=
54
.endif
63
.endif
64
55
.if defined(WITHOUT_CAIRO)
65
.if defined(WITHOUT_CAIRO)
56
MAKE_CAIRO=
66
MAKE_CAIRO=
57
.else
67
.else
58
LIB_DEPENDS=	cairo.2:${PORTSDIR}/graphics/cairo
68
LIB_DEPENDS=    cairo.2:${PORTSDIR}/graphics/cairo
59
MAKE_CAIRO=	make_cairo
69
MAKE_CAIRO=     make_cairo
60
.endif
70
.endif
61
71
62
.if defined(WITHOUT_GNOMEVFS)
63
MAKE_GNOME=
64
USE_GNOME=	gtk20 pkgconfig desktopfileutils
65
.else
66
MAKE_GNOME=	make_gnome
67
USE_GNOME=	gtk20 gnomevfs2 libgnome libgnomeui pkgconfig desktopfileutils
68
.endif
69
70
.include <bsd.port.pre.mk>
71
72
72
.if (${ARCH} == "amd64")
73
.if (${ARCH} == "amd64")
73
ECLIPSE_ARCH=	amd64
74
ECLIPSE_ARCH=	amd64
Lines 91-102 Link Here
91
92
92
SWTCAIRO=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library
93
SWTCAIRO=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/cairo/library
93
SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library
94
SWTGTK=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library
95
SWTMOZ=${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT Mozilla
94
96
95
# Manually patch some files with spaces in the path
97
# Manually patch some files with spaces in the path
96
post-patch:
98
post-patch:
97
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" ${FILESDIR}/post-patch-plugins-swt-gtk-build.sh
99
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/build.sh" ${FILESDIR}/post-patch-plugins-swt-gtk-build.sh
98
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" ${FILESDIR}/post-patch-plugins-swt-gtk-make_freebsd.mak
100
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/make_freebsd.mak" ${FILESDIR}/post-patch-plugins-swt-gtk-make_freebsd.mak
99
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" ${FILESDIR}/post-patch-plugins-swt-gtk-os_custom.h
101
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTGTK}/os_custom.h" ${FILESDIR}/post-patch-plugins-swt-gtk-os_custom.h
102
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/gtk/org/eclipse/swt/browser/Browser.java" ${FILESDIR}/post-patch-plugins-swt-mozilla-Browser.java
103
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/org/eclipse/swt/internal/mozilla/XPCOM.java" ${FILESDIR}/post-patch-plugins-swt-mozilla-XPCOM.java
104
	@${PATCH} ${PATCH_DIST_ARGS} "${WRKSRC}/plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties" ${FILESDIR}/post-patch-plugins-swt-mozilla-XPCOM.properties
105
	@${PATCH} ${PATCH_DIST_ARGS} "${WRKSRC}/plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties" ${FILESDIR}/post-patch-plugins-swt-mozilla-XPCOM_PROFILE.properties
106
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/library/xpcom.cpp" ${FILESDIR}/post-patch-plugins-swt-mozilla-xpcom.cpp
107
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/library/xpcom.h" ${FILESDIR}/post-patch-plugins-swt-mozilla-xpcom.h
108
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/library/xpcom_profile.h" ${FILESDIR}/post-patch-plugins-swt-mozilla-xpcom_profile.h
109
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/library/xpcom_stats.cpp" ${FILESDIR}/post-patch-plugins-swt-mozilla-xpcom_stats.cpp
110
	@${PATCH} ${PATCH_DIST_ARGS} "${SWTMOZ}/common/library/xpcom_stats.h" ${FILESDIR}/post-patch-plugins-swt-mozilla-xpcom_stats.h
111
	@${REINPLACE_CMD} -e 's|%%GECKO%%|${GECKO}|g' \
112
		"${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh" \
113
		"${WRKSRC}/plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak"
100
114
101
do-build:
115
do-build:
102
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
116
	@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
Lines 109-114 Link Here
109
	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
123
	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
110
	  -e "s+%%PREFIX%%+${PREFIX}+g" \
124
	  -e "s+%%PREFIX%%+${PREFIX}+g" \
111
	  -e "s+%%X11BASE%%+${X11BASE}+g" \
125
	  -e "s+%%X11BASE%%+${X11BASE}+g" \
126
	  -e "s+%%LOCALBASE%%+${LOCALBASE}+g" \
112
	  -e "s+%%BROWSER%%+${BROWSER}+g" \
127
	  -e "s+%%BROWSER%%+${BROWSER}+g" \
113
	  -e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \
128
	  -e "s,%%JAVA_VERSION%%,${JAVA_VERSION},g" \
114
	  -e "s+%%JAVA_OS%%+${JAVA_OS}+g" \
129
	  -e "s+%%JAVA_OS%%+${JAVA_OS}+g" \
Lines 118-123 Link Here
118
	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
133
	  -e "s+%%ECLIPSE_HOME%%+${PORTDESTDIR}+g" \
119
	  -e "s+%%PREFIX%%+${PREFIX}+g" \
134
	  -e "s+%%PREFIX%%+${PREFIX}+g" \
120
	${FILESDIR}/eclipse.desktop > ${WRKSRC}/eclipse.desktop.tmp
135
	${FILESDIR}/eclipse.desktop > ${WRKSRC}/eclipse.desktop.tmp
136
	${MKDIR} ${PREFIX}/share/applications/ || ${TRUE}
121
	${INSTALL_DATA} ${WRKSRC}/eclipse.desktop.tmp ${PREFIX}/share/applications/eclipse.desktop
137
	${INSTALL_DATA} ${WRKSRC}/eclipse.desktop.tmp ${PREFIX}/share/applications/eclipse.desktop
122
	${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse
138
	${INSTALL_PROGRAM} ${WRKSRC}/launchertmp/eclipse ${PREFIX}/eclipse/eclipse
123
	@-update-desktop-database
139
	@-update-desktop-database
Lines 127-130 Link Here
127
	  | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
143
	  | ${SED} -ne 's,^,@dirrm ,p' >> ${TMPPLIST}
128
	@echo '@unexec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
144
	@echo '@unexec ${PREFIX}/bin/update-desktop-database > /dev/null || /usr/bin/true' >> ${TMPPLIST}
129
145
146
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
130
.include <bsd.port.post.mk>
147
.include <bsd.port.post.mk>
(-)eclipse/distinfo (-1 lines)
Lines 1-4 Link Here
1
MD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 0fe89e9c7cf07a56c4fe8e2d7f5a394b
1
MD5 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 0fe89e9c7cf07a56c4fe8e2d7f5a394b
2
SHA256 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 2d6a0628333d068b6ab678c42f925d71df1c003035543830a30e3ee80fb855c7
2
SHA256 (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 2d6a0628333d068b6ab678c42f925d71df1c003035543830a30e3ee80fb855c7
3
SIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 82433420
3
SIZE (eclipse/eclipse-sourceBuild-srcIncluded-3.2.1.zip) = 82433420
4
(-)eclipse/files/eclipse.in (-3 / +4 lines)
Lines 4-17 Link Here
4
#
4
#
5
# See: http://www.eclipse.org
5
# See: http://www.eclipse.org
6
#
6
#
7
# $FreeBSD: ports/java/eclipse/files/eclipse.in,v 1.8 2006/11/04 02:06:49 kan Exp $
7
# $FreeBSD$
8
#
8
#
9
9
10
DEFAULT_JAVA_HOME=%%PREFIX%%
10
DEFAULT_JAVA_HOME=%%PREFIX%%
11
ECLIPSE_HOME=%%ECLIPSE_HOME%%
11
ECLIPSE_HOME=%%ECLIPSE_HOME%%
12
DEFAULT_JAVA_CMD=java
12
DEFAULT_JAVA_CMD=java
13
MOZILLA_FIVE_HOME=%%LOCALBASE%%/include/%%BROWSER%%
13
MOZILLA_FIVE_HOME=%%LOCALBASE%%/lib/%%BROWSER%%
14
export MOZILLA_FIVE_HOME
14
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME
15
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
15
16
16
#-----------------------------------------------------------------------------
17
#-----------------------------------------------------------------------------
17
# Determine configuration settings
18
# Determine configuration settings
(-)eclipse/files/patch-plugins-swt-amd64-build.xml (+45 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt.gtk.freebsd.amd64/build.xml.orig	Mon Dec 11 01:10:05 2006
2
+++ plugins/org.eclipse.swt.gtk.freebsd.amd64/build.xml	Mon Dec 11 01:20:33 2006
3
@@ -39,18 +39,17 @@
4
 
5
 	<target name="properties" if="eclipse.running">
6
 		<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
7
-		<!--compile the jar in org.eclipse.swt.tools-->
8
 	</target>
9
 
10
 	<target name="build.update.jar" depends="init">
11
-		<delete dir="${temp.folder}"/>
12
+		<!-- <delete dir="${temp.folder}"/>
13
 		<mkdir dir="${temp.folder}"/>
14
 		<antcall target="build.jars"/>
15
 		<antcall target="gather.bin.parts">
16
 			<param name="destination.temp.folder" value="${temp.folder}/"/>
17
 		</antcall>
18
 		<zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/>
19
-		<delete dir="${temp.folder}"/>
20
+		<delete dir="${temp.folder}"/> -->
21
 	</target>
22
 
23
 	<target name="@dot" depends="init" unless="@dot" description="Create jar: @dot.">
24
@@ -222,8 +221,11 @@
25
 	</target>
26
 
27
 	<target name="build.cfiles" depends="build.jars">
28
+		<!-- compile the jar in org.eclipse.swt.tools -->
29
+		<ant antfile="build.xml" dir="${toolsplugindir}" inheritAll="false" target="build.jars" />		
30
+
31
 		<!-- generate the C code from the (64 bit) SWT PI java classes -->
32
-		<!-- assumes the swt.jar has already been built  -->
33
+		<!-- assumes the swttools.jar has already been built  -->
34
 		<java classname="org.eclipse.swt.tools.internal.JNIGeneratorApp" classpath="${toolsplugindir}/bin:${toolsplugindir}/swttools.jar:${basedir}/swt.jar"><arg value="org.eclipse.swt.internal.gtk.OS"/><arg value="${basedir}/src/Eclipse SWT PI/gtk/library/"/><arg value="${build.result.folder}/swt.jar"/></java>
35
 		<java classname="org.eclipse.swt.tools.internal.JNIGeneratorApp" classpath="${toolsplugindir}/bin:${toolsplugindir}/swttools.jar:${basedir}/swt.jar"><arg value="org.eclipse.swt.internal.accessibility.gtk.ATK"/><arg value="${basedir}/src/Eclipse SWT PI/gtk/library/"/><arg value="${build.result.folder}/swt.jar"/></java>
36
 		<java classname="org.eclipse.swt.tools.internal.JNIGeneratorApp" classpath="${toolsplugindir}/bin:${toolsplugindir}/swttools.jar:${basedir}/swt.jar"><arg value="org.eclipse.swt.internal.cairo.Cairo"/><arg value="${basedir}/src/Eclipse SWT PI/cairo/library/"/><arg value="${build.result.folder}/swt.jar"/></java>
37
@@ -325,6 +327,8 @@
38
 		<delete file="${plugin.destination}/${full.name}.jar"/>
39
 		<delete file="${plugin.destination}/${full.name}.zip"/>
40
 		<delete dir="${temp.folder}"/>
41
+		<!-- delete swttools.jar so that it will be compiled in the build.jars target -->
42
+		<ant antfile="build.xml" dir="${toolsplugindir}" inheritAll="false" target="clean" />
43
 	</target>
44
 
45
 	<target name="refresh" depends="init" if="eclipse.running">
(-)eclipse/files/post-patch-plugins-swt-gtk-build.sh (-3 / +3 lines)
Lines 68-76 Link Here
68
-		echo "    *** Mozilla embedding support will not be compiled."
68
-		echo "    *** Mozilla embedding support will not be compiled."
69
+if [ ${MAKE_MOZILLA} != "" ]; then
69
+if [ ${MAKE_MOZILLA} != "" ]; then
70
+	if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
70
+	if [ -z "${GECKO_INCLUDES}" -a -z "${GECKO_LIBS}" ]; then
71
+		if [ x`pkg-config --exists mozilla-xpcom && echo YES` = "xYES" ]; then
71
+		if [ x`pkg-config --exists %%GECKO%%-xpcom && echo YES` = "xYES" ]; then
72
+			GECKO_INCLUDES=`pkg-config --cflags mozilla-xpcom`
72
+			GECKO_INCLUDES=`pkg-config --cflags %%GECKO%%-xpcom`
73
+			GECKO_LIBS=`pkg-config --libs mozilla-xpcom`
73
+			GECKO_LIBS=`pkg-config --libs %%GECKO%%-xpcom`
74
+			export GECKO_INCLUDES
74
+			export GECKO_INCLUDES
75
+			export GECKO_LIBS
75
+			export GECKO_LIBS
76
+			MAKE_MOZILLA=make_mozilla
76
+			MAKE_MOZILLA=make_mozilla
(-)eclipse/files/post-patch-plugins-swt-gtk-make_freebsd.mak (-5 / +43 lines)
Lines 1-5 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig	Mon Oct  9 16:06:20 2006
1
--- plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak.orig	Thu Dec 14 18:01:12 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak	Mon Oct  9 16:27:59 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_freebsd.mak	Thu Dec 14 18:03:00 2006
3
@@ -48,7 +48,7 @@
3
@@ -48,7 +48,7 @@
4
 
4
 
5
 # Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0)
5
 # Do not use pkg-config to get libs because it includes unnecessary dependencies (i.e. pangoxft-1.0)
Lines 22-30 Link Here
22
 	-I. \
22
 	-I. \
23
 	-I$(JAVA_HOME)/include \
23
 	-I$(JAVA_HOME)/include \
24
 	-I$(JAVA_HOME)/include/freebsd \
24
 	-I$(JAVA_HOME)/include/freebsd \
25
+	-I$(LOCALBASE)/include/mozilla \
25
+	-I$(LOCALBASE)/include/%%GECKO%% \
26
+	-I$(LOCALBASE)/include/mozilla/profdirserviceprovider \
26
+	-I$(LOCALBASE)/include/%%GECKO%%/profdirserviceprovider \
27
+	-I$(LOCALBASE)/include/mozilla/string \
27
+	-I$(LOCALBASE)/include/%%GECKO%%/string \
28
+	-I$(LOCALBASE)/include/nspr \
28
+	-I$(LOCALBASE)/include/nspr \
29
 	${SWT_PTR_CFLAGS}
29
 	${SWT_PTR_CFLAGS}
30
 MOZILLALIBS = -shared -s -Wl,--version-script=mozilla_exports -Bsymbolic
30
 MOZILLALIBS = -shared -s -Wl,--version-script=mozilla_exports -Bsymbolic
Lines 48-50 Link Here
48
 
48
 
49
 #
49
 #
50
 # SWT libs
50
 # SWT libs
51
@@ -202,7 +207,7 @@
52
 #
53
 # Mozilla lib
54
 #
55
-make_mozilla:$(MOZILLA_LIB) $(PROFILE14_LIB) $(PROFILE17_LIB) $(PROFILE18_LIB)
56
+make_mozilla:$(MOZILLA_LIB)
57
 
58
 $(MOZILLA_LIB): $(MOZILLA_OBJECTS)
59
 	$(CXX) -o $(MOZILLA_LIB) $(MOZILLA_OBJECTS) $(MOZILLALIBS) ${GECKO_LIBS}
60
@@ -220,22 +225,22 @@
61
 	$(CXX) $(MOZILLACFLAGS) ${GECKO_INCLUDES} -c xpcom_stats.cpp	
62
 
63
 $(PROFILE14_OBJECTS): xpcom_profile.cpp
64
-	$(CXX) -o $(PROFILE14_OBJECTS) $(MOZILLACFLAGS) ${PROFILE14_INCLUDES} -c xpcom_profile.cpp	
65
+	$(CXX) -o $(PROFILE14_OBJECTS) $(MOZILLACFLAGS) ${PROFILE14_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp	
66
 
67
 $(PROFILE17_OBJECTS): xpcom_profile.cpp
68
-	$(CXX) -o $(PROFILE17_OBJECTS) $(MOZILLACFLAGS) ${PROFILE17_INCLUDES} -c xpcom_profile.cpp	
69
+	$(CXX) -o $(PROFILE17_OBJECTS) $(MOZILLACFLAGS) ${PROFILE17_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp	
70
 
71
 $(PROFILE18_OBJECTS): xpcom_profile.cpp
72
-	$(CXX) -o $(PROFILE18_OBJECTS) $(MOZILLACFLAGS) ${PROFILE18_INCLUDES} -c xpcom_profile.cpp	
73
+	$(CXX) -o $(PROFILE18_OBJECTS) $(MOZILLACFLAGS) ${PROFILE18_INCLUDES} ${GECKO_INCLUDES} -c xpcom_profile.cpp	
74
 
75
 $(PROFILE14_LIB): $(PROFILE14_OBJECTS)
76
-	$(CXX) -o $(PROFILE14_LIB) $(PROFILE14_OBJECTS) $(MOZILLALIBS) ${PROFILE14_LIBS}
77
+	$(CXX) -o $(PROFILE14_LIB) $(PROFILE14_OBJECTS) $(MOZILLALIBS) ${PROFILE14_LIBS} ${GECKO_LIBS}
78
 
79
 $(PROFILE17_LIB): $(PROFILE17_OBJECTS)
80
-	$(CXX) -o $(PROFILE17_LIB) $(PROFILE17_OBJECTS) $(MOZILLALIBS) ${PROFILE17_LIBS}
81
+	$(CXX) -o $(PROFILE17_LIB) $(PROFILE17_OBJECTS) $(MOZILLALIBS) ${PROFILE17_LIBS} ${GECKO_LIBS}
82
 
83
 $(PROFILE18_LIB): $(PROFILE18_OBJECTS)
84
-	$(CXX) -o $(PROFILE18_LIB) $(PROFILE18_OBJECTS) $(MOZILLALIBS) ${PROFILE18_LIBS}
85
+	$(CXX) -o $(PROFILE18_LIB) $(PROFILE18_OBJECTS) $(MOZILLALIBS) ${PROFILE18_LIBS} ${GECKO_LIBS}
86
 
87
 #
88
 # GLX lib
(-)eclipse/files/post-patch-plugins-swt-mozilla-Browser.java (+186 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java.orig	Wed Nov 29 14:32:45 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/Browser.java	Wed Nov 29 14:42:01 2006
3
@@ -10,15 +10,75 @@
4
  *******************************************************************************/
5
 package org.eclipse.swt.browser;
6
 
7
-import java.io.*;
8
-import java.util.*;
9
-import org.eclipse.swt.*;
10
-import org.eclipse.swt.widgets.*;
11
-import org.eclipse.swt.graphics.*;
12
-import org.eclipse.swt.internal.*;
13
-import org.eclipse.swt.internal.gtk.*;
14
-import org.eclipse.swt.internal.mozilla.*;
15
-import org.eclipse.swt.layout.*;
16
+import java.io.File;
17
+import java.io.UnsupportedEncodingException;
18
+import java.util.Locale;
19
+import java.util.StringTokenizer;
20
+
21
+import org.eclipse.swt.SWT;
22
+import org.eclipse.swt.SWTError;
23
+import org.eclipse.swt.SWTException;
24
+import org.eclipse.swt.graphics.Point;
25
+import org.eclipse.swt.graphics.Rectangle;
26
+import org.eclipse.swt.internal.Callback;
27
+import org.eclipse.swt.internal.Converter;
28
+import org.eclipse.swt.internal.Library;
29
+import org.eclipse.swt.internal.gtk.GdkEvent;
30
+import org.eclipse.swt.internal.gtk.LONG;
31
+import org.eclipse.swt.internal.gtk.OS;
32
+import org.eclipse.swt.internal.mozilla.XPCOM;
33
+import org.eclipse.swt.internal.mozilla.XPCOMObject;
34
+import org.eclipse.swt.internal.mozilla.nsEmbedString;
35
+import org.eclipse.swt.internal.mozilla.nsIAppShell;
36
+import org.eclipse.swt.internal.mozilla.nsIBaseWindow;
37
+import org.eclipse.swt.internal.mozilla.nsICategoryManager;
38
+import org.eclipse.swt.internal.mozilla.nsIComponentManager;
39
+import org.eclipse.swt.internal.mozilla.nsIComponentRegistrar;
40
+import org.eclipse.swt.internal.mozilla.nsIContextMenuListener;
41
+import org.eclipse.swt.internal.mozilla.nsICookie;
42
+import org.eclipse.swt.internal.mozilla.nsICookieManager;
43
+import org.eclipse.swt.internal.mozilla.nsID;
44
+import org.eclipse.swt.internal.mozilla.nsIDOMEvent;
45
+import org.eclipse.swt.internal.mozilla.nsIDOMMouseEvent;
46
+import org.eclipse.swt.internal.mozilla.nsIDOMWindow;
47
+import org.eclipse.swt.internal.mozilla.nsIDirectoryService;
48
+import org.eclipse.swt.internal.mozilla.nsIDocShell;
49
+import org.eclipse.swt.internal.mozilla.nsIEmbeddingSiteWindow;
50
+import org.eclipse.swt.internal.mozilla.nsIFile;
51
+import org.eclipse.swt.internal.mozilla.nsIIOService;
52
+import org.eclipse.swt.internal.mozilla.nsIInterfaceRequestor;
53
+import org.eclipse.swt.internal.mozilla.nsILocalFile;
54
+import org.eclipse.swt.internal.mozilla.nsIPrefBranch;
55
+import org.eclipse.swt.internal.mozilla.nsIPrefLocalizedString;
56
+import org.eclipse.swt.internal.mozilla.nsIPrefService;
57
+import org.eclipse.swt.internal.mozilla.nsIProperties;
58
+import org.eclipse.swt.internal.mozilla.nsIRequest;
59
+import org.eclipse.swt.internal.mozilla.nsIServiceManager;
60
+import org.eclipse.swt.internal.mozilla.nsISimpleEnumerator;
61
+import org.eclipse.swt.internal.mozilla.nsISupports;
62
+import org.eclipse.swt.internal.mozilla.nsISupportsWeakReference;
63
+import org.eclipse.swt.internal.mozilla.nsITooltipListener;
64
+import org.eclipse.swt.internal.mozilla.nsIURI;
65
+import org.eclipse.swt.internal.mozilla.nsIURIContentListener;
66
+import org.eclipse.swt.internal.mozilla.nsIWeakReference;
67
+import org.eclipse.swt.internal.mozilla.nsIWebBrowser;
68
+import org.eclipse.swt.internal.mozilla.nsIWebBrowserChrome;
69
+import org.eclipse.swt.internal.mozilla.nsIWebBrowserChromeFocus;
70
+import org.eclipse.swt.internal.mozilla.nsIWebBrowserFocus;
71
+import org.eclipse.swt.internal.mozilla.nsIWebBrowserStream;
72
+import org.eclipse.swt.internal.mozilla.nsIWebNavigation;
73
+import org.eclipse.swt.internal.mozilla.nsIWebProgress;
74
+import org.eclipse.swt.internal.mozilla.nsIWebProgressListener;
75
+import org.eclipse.swt.internal.mozilla.nsIWindowWatcher;
76
+import org.eclipse.swt.layout.FillLayout;
77
+import org.eclipse.swt.widgets.Composite;
78
+import org.eclipse.swt.widgets.Display;
79
+import org.eclipse.swt.widgets.Event;
80
+import org.eclipse.swt.widgets.Label;
81
+import org.eclipse.swt.widgets.Listener;
82
+import org.eclipse.swt.widgets.Menu;
83
+import org.eclipse.swt.widgets.Shell;
84
+import org.eclipse.swt.widgets.Widget;
85
 
86
 /**
87
  * Instances of this class implement the browser user interface
88
@@ -175,40 +235,9 @@
89
 		 * - mozilla17profile/mozilla17profile-gcc should succeed for mozilla 1.7.x and firefox
90
 		 * - mozilla18profile/mozilla18profile-gcc should succeed for mozilla 1.8.x (seamonkey)
91
 		 */
92
-		try {
93
-			Library.loadLibrary ("swt-mozilla14-profile"); //$NON-NLS-1$
94
-			usingProfile = true;
95
-		} catch (UnsatisfiedLinkError e1) {
96
-			try {
97
-				Library.loadLibrary ("swt-mozilla17-profile"); //$NON-NLS-1$
98
-				usingProfile = true;
99
-			} catch (UnsatisfiedLinkError e2) {
100
-				try {
101
-					Library.loadLibrary ("swt-mozilla14-profile-gcc3"); //$NON-NLS-1$
102
-					usingProfile = true;
103
-				} catch (UnsatisfiedLinkError e3) {
104
-					try {
105
-						Library.loadLibrary ("swt-mozilla17-profile-gcc3"); //$NON-NLS-1$
106
-						usingProfile = true;
107
-					} catch (UnsatisfiedLinkError e4) {
108
-						try {
109
-							Library.loadLibrary ("swt-mozilla18-profile"); //$NON-NLS-1$
110
-							usingProfile = true;
111
-						} catch (UnsatisfiedLinkError e5) {
112
-							try {
113
-								Library.loadLibrary ("swt-mozilla18-profile-gcc3"); //$NON-NLS-1$
114
-								usingProfile = true;
115
-							} catch (UnsatisfiedLinkError e6) {
116
-								/* 
117
-								* fail silently, the Browser will still work without profile support
118
-								* but will abort any attempts to navigate to HTTPS pages
119
-								*/
120
-							}
121
-						}
122
-					}
123
-				}
124
-			}
125
-		}
126
+		//Library.loadLibrary("swt-mozilla17-profile");
127
+		// We build the profile stuff without the need for a separate DSO
128
+		usingProfile = true;
129
 
130
 		int /*long*/[] retVal = new int /*long*/[1];
131
 		nsEmbedString pathString = new nsEmbedString(mozillaPath);
132
@@ -218,11 +247,11 @@
133
 		if (retVal[0] == 0) error(XPCOM.NS_ERROR_NULL_POINTER);
134
 		
135
 		nsILocalFile localFile = new nsILocalFile(retVal[0]);
136
-		rc = XPCOM.NS_InitEmbedding(localFile.getAddress(), 0);
137
+		rc = XPCOM.NS_InitXPCOM3(0, localFile.getAddress(), 0, 0, 0);
138
 		localFile.Release();
139
 		if (rc != XPCOM.NS_OK) {
140
 			dispose();
141
-			SWT.error(SWT.ERROR_NO_HANDLES, null, " [NS_InitEmbedding "+mozillaPath+" error "+rc+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
142
+			SWT.error(SWT.ERROR_NO_HANDLES, null, " [NS_InitXPCOM3 "+mozillaPath+" error "+rc+"]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
143
 		}
144
 
145
 		rc = XPCOM.NS_GetComponentManager(result);
146
@@ -283,7 +312,7 @@
147
 			rc = properties.Get(buffer, nsIFile.NS_IFILE_IID, result);
148
 			if (rc != XPCOM.NS_OK) error(rc);
149
 			if (result[0] == 0) error(XPCOM.NS_NOINTERFACE);
150
-			properties.Release();
151
+			// properties.Release() is now after the Set below
152
 
153
 			nsIFile profileDir = new nsIFile(result[0]);
154
 			result[0] = 0;
155
@@ -305,24 +334,15 @@
156
 			pathString.dispose(); //
157
 
158
 			profileDir = new nsIFile(result[0]);
159
-			result[0] = 0;
160
-
161
-			rc = XPCOM_PROFILE.NS_NewProfileDirServiceProvider(true, result);
162
+			
163
+			// Set the profile dir property so that it's initialized for
164
+			// things like password manager and https
165
+			buffer = Converter.wcsToMbcs(null, XPCOM.NS_APP_USER_PROFILE_50_DIR, true);
166
+			rc = properties.Set(buffer, profileDir.getAddress());
167
 			if (rc != XPCOM.NS_OK) error(rc);
168
-			if (result[0] == 0) error(XPCOM.NS_NOINTERFACE);
169
-
170
-			final int /*long*/ dirServiceProvider = result[0];
171
+			properties.Release();
172
+						
173
 			result[0] = 0;
174
-			rc = XPCOM_PROFILE.ProfileDirServiceProvider_Register(dirServiceProvider);
175
-			if (rc != XPCOM.NS_OK) error(rc);
176
-			rc = XPCOM_PROFILE.ProfileDirServiceProvider_SetProfileDir(dirServiceProvider, profileDir.getAddress());
177
-			if (rc != XPCOM.NS_OK) error(rc);
178
-
179
-			getDisplay().addListener(SWT.Dispose, new Listener() {
180
-				public void handleEvent(Event e) {
181
-					XPCOM_PROFILE.ProfileDirServiceProvider_Shutdown(dirServiceProvider);
182
-				}
183
-			});
184
 		}
185
 
186
 		/*
(-)eclipse/files/post-patch-plugins-swt-mozilla-XPCOM.java (+21 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java.orig	Wed Nov 29 14:11:42 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/internal/mozilla/XPCOM.java	Wed Nov 29 14:14:30 2006
3
@@ -89,6 +89,7 @@
4
 	public static final int NS_ERROR_HTMLPARSER_UNRESOLVEDDTD = 0x804e03f3;
5
 	public static final int NS_ERROR_FILE_NOT_FOUND = 0x80520012;
6
 	public static final String NS_APP_APPLICATION_REGISTRY_DIR = "AppRegD"; //$NON-NLS-1$
7
+	public static final String NS_APP_USER_PROFILE_50_DIR = "ProfD"; //$NON-NLS-1$
8
 
9
 public static final native void memmove(nsID dest, int /*long*/ src, int nbytes);
10
 public static final native void memmove(int /*long*/ dest, nsID src, int nbytes);
11
@@ -103,9 +104,8 @@
12
 public static final native void memmove(byte[] dest, char[] src, int nbytes);
13
 public static final native int NS_GetComponentManager(int /*long*/[] result);
14
 public static final native int NS_GetServiceManager(int /*long*/[] result);
15
-public static final native int NS_InitEmbedding(int /*long*/ aMozBinDirectory, int /*long*/ aAppFileLocProvider);
16
+public static final native int NS_InitXPCOM3(int /*long*/ result, int /*long*/ binDirectory, int /*long*/ appFileLocationProvider, int /*long*/ staticComponents, int componentCount);
17
 public static final native int NS_NewLocalFile(int /*long*/ path, boolean followLinks, int /*long*/[] result);
18
-public static final native int NS_TermEmbedding();
19
 public static final native int strlen_PRUnichar(int /*long*/ s);
20
 public static final native int /*long*/ nsEmbedCString_new();
21
 public static final native int /*long*/ nsEmbedCString_new(byte[] aString, int length);
(-)eclipse/files/post-patch-plugins-swt-mozilla-XPCOM.properties (+25 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties.orig	Wed Nov 29 14:17:21 2006
2
+++ plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM.properties	Wed Nov 29 14:18:14 2006
3
@@ -24,16 +24,17 @@
4
 XPCOM_NS_GetServiceManager=
5
 XPCOM_NS_GetServiceManager_0=cast=(nsIServiceManager**)
6
 
7
-XPCOM_NS_InitEmbedding=
8
-XPCOM_NS_InitEmbedding_0=cast=(nsILocalFile *)
9
-XPCOM_NS_InitEmbedding_1=cast=(nsIDirectoryServiceProvider *)
10
+XPCOM_NS_InitXPCOM3=
11
+XPCOM_NS_InitXPCOM3_0=cast=(nsIServiceManager**)
12
+XPCOM_NS_InitXPCOM3_1=cast=(nsIFile *)
13
+XPCOM_NS_InitXPCOM3_2=cast=(nsIDirectoryServiceProvider *)
14
+XPCOM_NS_InitXPCOM3_3=cast=(const nsStaticModuleInfo *)
15
+XPCOM_NS_InitXPCOM3_4=cast=(PRUint32)
16
 
17
 XPCOM_NS_NewLocalFile=
18
 XPCOM_NS_NewLocalFile_0=cast=(nsAString *),flags=struct
19
 XPCOM_NS_NewLocalFile_1=
20
 XPCOM_NS_NewLocalFile_2=cast=(nsILocalFile**)
21
-
22
-XPCOM_NS_TermEmbedding=
23
 
24
 XPCOM_PR_Free=
25
 XPCOM_PR_Free_0=cast=(void *)
(-)eclipse/files/post-patch-plugins-swt-mozilla-XPCOM_PROFILE.properties (+25 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties.orig	Mon Dec 11 02:02:04 2006
2
+++ plugins/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.mozilla.XPCOM_PROFILE.properties	Mon Dec 11 02:03:34 2006
3
@@ -24,16 +24,17 @@
4
 XPCOM_NS_GetServiceManager=
5
 XPCOM_NS_GetServiceManager_0=
6
 
7
-XPCOM_NS_InitEmbedding=
8
-XPCOM_NS_InitEmbedding_0=
9
-XPCOM_NS_InitEmbedding_1=
10
+XPCOM_NS_InitXPCOM3=
11
+XPCOM_NS_InitXPCOM3_0=cast=(nsIServiceManager**)
12
+XPCOM_NS_InitXPCOM3_1=cast=(nsIFile *)
13
+XPCOM_NS_InitXPCOM3_2=cast=(nsIDirectoryServiceProvider *)
14
+XPCOM_NS_InitXPCOM3_3=cast=(const nsStaticModuleInfo *)
15
+XPCOM_NS_InitXPCOM3_4=cast=(PRUint32)
16
 
17
 XPCOM_NS_NewLocalFile=
18
 XPCOM_NS_NewLocalFile_0=
19
 XPCOM_NS_NewLocalFile_1=
20
 XPCOM_NS_NewLocalFile_2=
21
-
22
-XPCOM_NS_TermEmbedding=
23
 
24
 XPCOM_PR_Free=
25
 XPCOM_PR_Free_0=
(-)eclipse/files/post-patch-plugins-swt-mozilla-xpcom.cpp (+143 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp.orig	Thu Sep 21 10:57:23 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.cpp	Wed Nov 29 19:46:27 2006
3
@@ -85,14 +85,16 @@
4
 }
5
 #endif
6
 
7
-#ifndef NO_NS_1InitEmbedding
8
-JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1InitEmbedding)
9
-	(JNIEnv *env, jclass that, jint arg0, jint arg1)
10
+#ifndef NO_NS_1InitXPCOM3
11
+JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1InitXPCOM3)
12
+	(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
13
 {
14
 	jint rc = 0;
15
-	XPCOM_NATIVE_ENTER(env, that, NS_1InitEmbedding_FUNC);
16
-	rc = (jint)NS_InitEmbedding((nsILocalFile *)arg0, (nsIDirectoryServiceProvider *)arg1);
17
-	XPCOM_NATIVE_EXIT(env, that, NS_1InitEmbedding_FUNC);
18
+	XPCOM_NATIVE_ENTER(env, that, NS_1GetComponentRegistrar_FUNC);
19
+	rc = (jint)NS_InitXPCOM3((nsIServiceManager **)arg0, (nsIFile *)arg1,
20
+		(nsIDirectoryServiceProvider *)arg2, (nsStaticModuleInfo *)arg3,
21
+		(PRUint32) arg4);
22
+	XPCOM_NATIVE_EXIT(env, that, NS_1GetComponentRegistrar_FUNC);
23
 	return rc;
24
 }
25
 #endif
26
@@ -113,18 +115,6 @@
27
 }
28
 #endif
29
 
30
-#ifndef NO_NS_1TermEmbedding
31
-JNIEXPORT jint JNICALL XPCOM_NATIVE(NS_1TermEmbedding)
32
-	(JNIEnv *env, jclass that)
33
-{
34
-	jint rc = 0;
35
-	XPCOM_NATIVE_ENTER(env, that, NS_1TermEmbedding_FUNC);
36
-	rc = (jint)NS_TermEmbedding();
37
-	XPCOM_NATIVE_EXIT(env, that, NS_1TermEmbedding_FUNC);
38
-	return rc;
39
-}
40
-#endif
41
-
42
 #ifndef NO_PR_1Free
43
 JNIEXPORT void JNICALL XPCOM_NATIVE(PR_1Free)
44
 	(JNIEnv *env, jclass that, jint arg0)
45
@@ -141,7 +131,7 @@
46
 {
47
 	jint rc = 0;
48
 	XPCOM_NATIVE_ENTER(env, that, PR_1Malloc_FUNC);
49
-	rc = (jint)PR_Malloc(arg0);
50
+	rc = (long)PR_Malloc(arg0);
51
 	XPCOM_NATIVE_EXIT(env, that, PR_1Malloc_FUNC);
52
 	return rc;
53
 }
54
@@ -2091,7 +2081,7 @@
55
 {
56
 	jint rc = 0;
57
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1get_FUNC);
58
-	rc = (jint)((nsEmbedCString *)arg0)->get();
59
+	rc = (long)((nsEmbedCString *)arg0)->get();
60
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1get_FUNC);
61
 	return rc;
62
 }
63
@@ -2103,7 +2093,7 @@
64
 {
65
 	jint rc = 0;
66
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___FUNC);
67
-	rc = (jint)new nsEmbedCString();
68
+	rc = (long)new nsEmbedCString();
69
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___FUNC);
70
 	return rc;
71
 }
72
@@ -2117,7 +2107,7 @@
73
 	jint rc = 0;
74
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedCString_1new___3BI_FUNC);
75
 	if (arg0) if ((lparg0 = env->GetByteArrayElements(arg0, NULL)) == NULL) goto fail;
76
-	rc = (jint)new nsEmbedCString((const char *)lparg0, arg1);
77
+	rc = (long)new nsEmbedCString((const char *)lparg0, arg1);
78
 fail:
79
 	if (arg0 && lparg0) env->ReleaseByteArrayElements(arg0, lparg0, 0);
80
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedCString_1new___3BI_FUNC);
81
@@ -2131,7 +2121,7 @@
82
 {
83
 	jint rc = 0;
84
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1Length_FUNC);
85
-	rc = (jint)((nsEmbedString *)arg0)->Length();
86
+	rc = (long)((nsEmbedString *)arg0)->Length();
87
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1Length_FUNC);
88
 	return rc;
89
 }
90
@@ -2153,7 +2143,7 @@
91
 {
92
 	jint rc = 0;
93
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1get_FUNC);
94
-	rc = (jint)((nsEmbedString *)arg0)->get();
95
+	rc = (long)((nsEmbedString *)arg0)->get();
96
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1get_FUNC);
97
 	return rc;
98
 }
99
@@ -2165,7 +2155,7 @@
100
 {
101
 	jint rc = 0;
102
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___FUNC);
103
-	rc = (jint)new nsEmbedString();
104
+	rc = (long)new nsEmbedString();
105
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___FUNC);
106
 	return rc;
107
 }
108
@@ -2179,7 +2169,7 @@
109
 	jint rc = 0;
110
 	XPCOM_NATIVE_ENTER(env, that, nsEmbedString_1new___3C_FUNC);
111
 	if (arg0) if ((lparg0 = env->GetCharArrayElements(arg0, NULL)) == NULL) goto fail;
112
-	rc = (jint)new nsEmbedString(lparg0);
113
+	rc = (long)new nsEmbedString(lparg0);
114
 fail:
115
 	if (arg0 && lparg0) env->ReleaseCharArrayElements(arg0, lparg0, 0);
116
 	XPCOM_NATIVE_EXIT(env, that, nsEmbedString_1new___3C_FUNC);
117
@@ -2193,7 +2183,7 @@
118
 {
119
 	jboolean rc = 0;
120
 	XPCOM_NATIVE_ENTER(env, that, nsID_1Equals_FUNC);
121
-	rc = (jboolean)((nsID *)arg0)->Equals(*(nsID *)arg1);
122
+	rc = (long)((nsID *)arg0)->Equals(*(nsID *)arg1);
123
 	XPCOM_NATIVE_EXIT(env, that, nsID_1Equals_FUNC);
124
 	return rc;
125
 }
126
@@ -2207,7 +2197,7 @@
127
 	jboolean rc = 0;
128
 	XPCOM_NATIVE_ENTER(env, that, nsID_1Parse_FUNC);
129
 	if (arg1) if ((lparg1 = env->GetStringUTFChars(arg1, NULL)) == NULL) goto fail;
130
-	rc = (jboolean)((nsID *)arg0)->Parse((const char *)lparg1);
131
+	rc = (long)((nsID *)arg0)->Parse((const char *)lparg1);
132
 fail:
133
 	if (arg1 && lparg1) env->ReleaseStringUTFChars(arg1, lparg1);
134
 	XPCOM_NATIVE_EXIT(env, that, nsID_1Parse_FUNC);
135
@@ -2231,7 +2221,7 @@
136
 {
137
 	jint rc = 0;
138
 	XPCOM_NATIVE_ENTER(env, that, nsID_1new_FUNC);
139
-	rc = (jint)new nsID();
140
+	rc = (long)new nsID();
141
 	XPCOM_NATIVE_EXIT(env, that, nsID_1new_FUNC);
142
 	return rc;
143
 }
(-)eclipse/files/post-patch-plugins-swt-mozilla-xpcom.h (+12 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.h.orig	Wed Nov 29 12:11:18 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom.h	Wed Nov 29 12:12:03 2006
3
@@ -31,8 +31,7 @@
4
 
5
 #define NDEBUG
6
 
7
-#include "nsXPCOM.h"
8
-#include "nsEmbedAPI.h"	
9
+#include "nsXPCOM.h"	
10
 #include "nsEmbedString.h"
11
 #include "nsIInputStream.h"
12
 #include "nsISupportsUtils.h"
(-)eclipse/files/post-patch-plugins-swt-mozilla-xpcom_profile.h (+11 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h.orig	Wed Nov 29 12:08:43 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_profile.h	Wed Nov 29 12:09:33 2006
3
@@ -32,7 +32,7 @@
4
 #define NDEBUG
5
 
6
 #include "nsCOMPtr.h"
7
-#include "nsProfileDirServiceProvider.h"
8
+#include "profdirserviceprovider/nsProfileDirServiceProvider.h"
9
 #include "xpcom_stats.h"
10
 
11
 #endif /* INC_xpcom_profile_H */
(-)eclipse/files/post-patch-plugins-swt-mozilla-xpcom_stats.cpp (+21 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp.orig	Wed Nov 29 12:03:05 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.cpp	Wed Nov 29 12:05:26 2006
3
@@ -31,15 +31,14 @@
4
 
5
 #ifdef NATIVE_STATS
6
 
7
-int XPCOM_nativeFunctionCount = 132;
8
-int XPCOM_nativeFunctionCallCount[132];
9
+int XPCOM_nativeFunctionCount = 131;
10
+int XPCOM_nativeFunctionCallCount[131];
11
 char * XPCOM_nativeFunctionNames[] = {
12
 	"Call",
13
 	"NS_1GetComponentManager",
14
 	"NS_1GetServiceManager",
15
-	"NS_1InitEmbedding",
16
+	"NS_1InitXPCOM3_FUNC",
17
 	"NS_1NewLocalFile",
18
-	"NS_1TermEmbedding",
19
 	"PR_1Free",
20
 	"PR_1Malloc",
21
 	"VtblCall__II",
(-)eclipse/files/post-patch-plugins-swt-mozilla-xpcom_stats.h (+13 lines)
Line 0 Link Here
1
--- plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h.orig	Wed Nov 29 13:51:40 2006
2
+++ plugins/org.eclipse.swt/Eclipse SWT Mozilla/common/library/xpcom_stats.h	Wed Nov 29 13:52:23 2006
3
@@ -41,9 +41,8 @@
4
 	Call_FUNC,
5
 	NS_1GetComponentManager_FUNC,
6
 	NS_1GetServiceManager_FUNC,
7
-	NS_1InitEmbedding_FUNC,
8
+	NS_1InitXPCOM3_FUNC,
9
 	NS_1NewLocalFile_FUNC,
10
-	NS_1TermEmbedding_FUNC,
11
 	PR_1Free_FUNC,
12
 	PR_1Malloc_FUNC,
13
 	VtblCall__II_FUNC,
(-)eclipse/scripts/pre-patch (-1 / +1 lines)
Lines 1-5 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: ports/java/eclipse/scripts/pre-patch,v 1.3 2006/11/04 02:06:50 kan Exp $
2
# $FreeBSD$
3
3
4
copy_file()
4
copy_file()
5
{
5
{

Return to bug 105581