From: | "Fabian Groffen (grobian)" <grobian@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/gegl/files: gegl-0.1.2-backtrace.patch |
Date: | Sat, 02 Oct 2010 18:04:09 |
Message-Id: | 20101002180401.CD2EA20054@flycatcher.gentoo.org |
1 | grobian 10/10/02 18:04:01 |
2 | |
3 | Added: gegl-0.1.2-backtrace.patch |
4 | Log: |
5 | Add patch to fix compilation on Solaris and Darwin 8 |
6 | |
7 | (Portage version: 2.2.01.16711-prefix/cvs/SunOS i386) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-libs/gegl/files/gegl-0.1.2-backtrace.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gegl/files/gegl-0.1.2-backtrace.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gegl/files/gegl-0.1.2-backtrace.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gegl-0.1.2-backtrace.patch |
16 | =================================================================== |
17 | Not all platforms have backtrace() facility, such as Darwin <=10.4 and |
18 | Solaris. |
19 | |
20 | See also |
21 | https://trac.macports.org/browser/trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff?rev=71233 |
22 | |
23 | This patch uses a configure check to disable it based on existance of |
24 | execinfo.h instead of hardcoded knowledge about the target platforms. |
25 | |
26 | https://bugzilla.gnome.org/show_bug.cgi?id=631183 |
27 | |
28 | --- gegl-0.1.2/configure.ac |
29 | +++ gegl-0.1.2/configure.ac |
30 | @@ -986,6 +986,7 @@ |
31 | |
32 | AM_CONDITIONAL(ENABLE_WORKSHOP, test "x$enable_workshop" = "xyes") |
33 | |
34 | +AC_CHECK_HEADERS([execinfo.h]) |
35 | |
36 | dnl bin/node-editors/Makefile |
37 | AC_OUTPUT([ |
38 | --- gegl-0.1.2/gegl/buffer/gegl-buffer.c |
39 | +++ gegl-0.1.2/gegl/buffer/gegl-buffer.c |
40 | @@ -80,7 +80,7 @@ |
41 | /* #define GEGL_BUFFER_DEBUG_ALLOCATIONS to print allocation stack |
42 | * traces for leaked GeglBuffers using GNU C libs backtrace_symbols() |
43 | */ |
44 | -#ifndef G_OS_WIN32 |
45 | +#ifdef HAVE_EXECINFO_H |
46 | #include <execinfo.h> |
47 | #endif |
48 | |
49 | @@ -876,8 +876,8 @@ |
50 | gegl_buffer_get_alloc_stack (void) |
51 | { |
52 | char *result = NULL; |
53 | -#ifdef G_OS_WIN32 |
54 | - result = g_strdup ("backtrack not available on win32\n"); |
55 | +#ifndef HAVE_EXECINFO_H |
56 | + result = g_strdup ("backtrack not available for this platform\n"); |
57 | #else |
58 | void *functions[MAX_N_FUNCTIONS]; |
59 | int n_functions = 0; |