summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory Pratt <anarchy@gentoo.org>2006-03-20 17:18:10 +0000
committerJory Pratt <anarchy@gentoo.org>2006-03-20 17:18:10 +0000
commit2090625d45c67a819b920591a52c9f5e3a45f6b3 (patch)
treedd6a05ef1d8b2ea7bbb5fc438cb19dc9e7ed3c6c /app-editors/nvu/files
parentAdd ~alpha keyword. (diff)
downloadgentoo-2-2090625d45c67a819b920591a52c9f5e3a45f6b3.tar.gz
gentoo-2-2090625d45c67a819b920591a52c9f5e3a45f6b3.tar.bz2
gentoo-2-2090625d45c67a819b920591a52c9f5e3a45f6b3.zip
glibc-2.4 fix wrt bug #125832
(Portage version: 2.1_pre6-r5)
Diffstat (limited to 'app-editors/nvu/files')
-rw-r--r--app-editors/nvu/files/010_glibc-2.4.patch84
-rw-r--r--app-editors/nvu/files/digest-nvu-1.0-r33
2 files changed, 87 insertions, 0 deletions
diff --git a/app-editors/nvu/files/010_glibc-2.4.patch b/app-editors/nvu/files/010_glibc-2.4.patch
new file mode 100644
index 000000000000..e4b56d30dd48
--- /dev/null
+++ b/app-editors/nvu/files/010_glibc-2.4.patch
@@ -0,0 +1,84 @@
+diff -u -p -8 -r1.12 nsStackFrameUnix.cpp
+--- xpcom/base/nsStackFrameUnix.cpp 18 Apr 2004 14:18:12 -0000 1.12
++++ xpcom/base/nsStackFrameUnix.cpp 23 Jan 2006 09:23:04 -0000
+@@ -77,19 +77,30 @@ void DemangleSymbol(const char * aSymbol
+ if (demangled)
+ {
+ strncpy(aBuffer,demangled,aBufLen);
+ free(demangled);
+ }
+ #endif // MOZ_DEMANGLE_SYMBOLS
+ }
+
++#if defined(linux) // Linux
++#if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 3)) // use glibc backtrace()
++#include <execinfo.h>
++void DumpStackToFile(FILE* aStream)
++{
++ void *array[20];
++ size_t size;
+
+-#if defined(linux) && defined(__GLIBC__) && (defined(__i386) || defined(PPC)) // i386 or PPC Linux stackwalking code
++ fflush(aStream);
++ size = backtrace (array, 20);
++ backtrace_symbols_fd (array, size, fileno(aStream));
++}
+
++#elif defined(__GLIBC__) && (defined(__i386) || defined(PPC)) // old style i386 or PPC Linux stackwalking code
+ #include <setjmp.h>
+ //
+
+ void DumpStackToFile(FILE* aStream)
+ {
+ jmp_buf jb;
+ setjmp(jb);
+
+@@ -135,16 +146,23 @@ void DumpStackToFile(FILE* aStream)
+
+ PRUint32 off = (char*)pc - (char*)info.dli_saddr;
+ fprintf(aStream, "%s+0x%08X [%s +0x%08X]\n",
+ symbol, off, info.dli_fname, foff);
+ }
+ }
+ }
+
++#else // not implemented
++void DumpStackToFile(FILE* aStream)
++{
++ fprintf(aStream, "Info: Stacktrace not implemented for this Linux platform\n");
++}
++#endif // Linux
++
+ #elif defined(__sun) && (defined(__sparc) || defined(sparc) || defined(__i386) || defined(i386))
+
+ /*
+ * Stack walking code for Solaris courtesy of Bart Smaalder's "memtrak".
+ */
+
+ #include <synch.h>
+ #include <ucontext.h>
+
+diff -u -p -8 -r1.96 nsTraceRefcntImpl.cpp
+--- xpcom/base/nsTraceRefcntImpl.cpp 24 Jun 2005 00:24:41 -0000 1.96
++++ xpcom/base/nsTraceRefcntImpl.cpp 23 Jan 2006 09:24:05 -0000
+@@ -823,18 +823,18 @@ static void InitTraceLog(void)
+ #include "nsStackFrameWin.h"
+ void
+ nsTraceRefcntImpl::WalkTheStack(FILE* aStream)
+ {
+ DumpStackToFile(aStream);
+ }
+
+ // WIN32 x86 stack walking code
+-// i386 or PPC Linux stackwalking code or Solaris
+-#elif (defined(linux) && defined(__GLIBC__) && (defined(__i386) || defined(PPC))) || (defined(__sun) && (defined(__sparc) || defined(sparc) || defined(__i386) || defined(i386)))
++// Linux stackwalking code or Solaris
++#elif (defined(linux) && defined(__GLIBC__)) || (defined(__sun) && (defined(__sparc) || defined(sparc) || defined(__i386) || defined(i386)))
+ #include "nsStackFrameUnix.h"
+ void
+ nsTraceRefcntImpl::WalkTheStack(FILE* aStream)
+ {
+ DumpStackToFile(aStream);
+ }
+
+ #else // unsupported platform.
diff --git a/app-editors/nvu/files/digest-nvu-1.0-r3 b/app-editors/nvu/files/digest-nvu-1.0-r3
new file mode 100644
index 000000000000..9e9bf40be61d
--- /dev/null
+++ b/app-editors/nvu/files/digest-nvu-1.0-r3
@@ -0,0 +1,3 @@
+MD5 ae0f7c85e230ce8a90dc438b53be06e6 nvu-1.0-sources.tar.bz2 29687976
+RMD160 6d6fdb747d79e8602a4757e8eff8bbb21db6df8c nvu-1.0-sources.tar.bz2 29687976
+SHA256 9ec892e352c3596a4f734a885c6e085028574714cf0d44c2dac32b0d89b4b630 nvu-1.0-sources.tar.bz2 29687976