summaryrefslogtreecommitdiffstats
path: root/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-12-29 01:39:32 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2007-12-29 01:39:32 +0800
commit589477efe47c16a83665a3f16710091e61ac8603 (patch)
tree7fd072e2dde09dd65544b8a63da1bfb1f36410dd /www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp
parentc120d69ae983fcdcf34cf4d992c4fb0b51fc0b05 (diff)
downloadmarcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.gz
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.tar.zst
marcuscom-ports-589477efe47c16a83665a3f16710091e61ac8603.zip
Add "--with-default-mozilla-five-home=${PREFIX}/lib/${MOZILLA}" to fix other
applications in the runtime. Some applications required to have set MOZILLA_FIVE_HOME or/and LD_LIBRARY_PATH to make it works in the runtime. Now, it's no longer need to set these variables, which this flag takes care of it. The MOZILLA_FIVE_HOME still works with this flag if someone need to use different one. I have learned about this flag from RPM, Debian, Gentoo ebuild and other packages. Bump the PORTREVISION. It has been tested with py-gnome-extras, ruby-gtkmozembed, epiphany, development version of deluge, miro and yelp in both build and run time with Firefox. marcus wants me to put in MC first before I put these in FreeBSD ports tree, because of ports tree still isn't complete unfreeze. I personal doubt that it will causing any problem, so if it does then please report to me. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10009 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp')
-rw-r--r--www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp b/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp
new file mode 100644
index 000000000..0c5a07ab2
--- /dev/null
+++ b/www/firefox/files/patch-toolkit_xre_nsXREDirProvider.cpp
@@ -0,0 +1,19 @@
+--- toolkit/xre/nsXREDirProvider.cpp.orig Tue Oct 4 11:46:26 2005
++++ toolkit/xre/nsXREDirProvider.cpp Sun Feb 5 23:54:31 2006
+@@ -820,6 +820,7 @@
+
+ char* appNameFolder = nsnull;
+ char profileFolderName[MAXPATHLEN] = ".";
++ char temp[MAXPATHLEN];
+
+ // Offset 1 for the outermost folder to make it hidden (i.e. using the ".")
+ char* writing = profileFolderName + 1;
+@@ -829,7 +830,6 @@
+ rv = localDir->AppendNative(nsDependentCString(profileFolderName));
+ NS_ENSURE_SUCCESS(rv, rv);
+
+- char temp[MAXPATHLEN];
+ GetProfileFolderName(temp, gAppData->name);
+ appNameFolder = temp;
+ }
+