Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/xulrunner/files: xulrunner-1.8.1.19-glibc-2.10-support.patch
Date: Mon, 24 Aug 2009 20:41:20
Message-Id: E1MfgLu-0000eQ-UW@stork.gentoo.org
1 anarchy 09/08/24 20:41:18
2
3 Added: xulrunner-1.8.1.19-glibc-2.10-support.patch
4 Log:
5 Fix for bug #280562
6 (Portage version: 2.1.6.13/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-libs/xulrunner/files/xulrunner-1.8.1.19-glibc-2.10-support.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/files/xulrunner-1.8.1.19-glibc-2.10-support.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-libs/xulrunner/files/xulrunner-1.8.1.19-glibc-2.10-support.patch?rev=1.1&content-type=text/plain
13
14 Index: xulrunner-1.8.1.19-glibc-2.10-support.patch
15 ===================================================================
16 diff -urN mozilla.orig/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp mozilla.dwokfur/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp
17 --- mozilla.orig/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2009-08-23 08:56:52.000000000 +0200
18 +++ mozilla.dwokfur/xpcom/glue/standalone/nsGlueLinkingDlopen.cpp 2009-08-23 10:00:46.000000000 +0200
19 @@ -87,7 +87,8 @@
20 XPCOMGlueLoad(const char *xpcomFile)
21 {
22 char xulFile[MAXPATHLEN];
23 - char *lastSlash = strrchr(xpcomFile, '/');
24 + char *xpcomFileb = const_cast<char*>(xpcomFile);
25 + char *lastSlash = strrchr(xpcomFileb, '/');
26 if (!lastSlash) {
27 snprintf(xulFile, MAXPATHLEN, "./%s", xpcomFile);
28 return XPCOMGlueLoad(xulFile);