[71233] trunk/dports/graphics/gegl
devans at macports.org
devans at macports.org
Sun Sep 5 10:52:31 PDT 2010
Revision: 71233
http://trac.macports.org/changeset/71233
Author: devans at macports.org
Date: 2010-09-05 10:52:27 -0700 (Sun, 05 Sep 2010)
Log Message:
-----------
gegl: disable use of GNU C lib backtrace() facility on Mac OS X 10.4
and earlier where it is not available. Fixes #26326.
Modified Paths:
--------------
trunk/dports/graphics/gegl/Portfile
Added Paths:
-----------
trunk/dports/graphics/gegl/files/
trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff
Modified: trunk/dports/graphics/gegl/Portfile
===================================================================
--- trunk/dports/graphics/gegl/Portfile 2010-09-05 16:36:09 UTC (rev 71232)
+++ trunk/dports/graphics/gegl/Portfile 2010-09-05 17:52:27 UTC (rev 71233)
@@ -44,8 +44,10 @@
path:lib/libavcodec.dylib:ffmpeg \
port:libspiro
-configure.args --disable-docs
+patchfiles patch-gegl-buffer-gegl-buffer.c.diff
+configure.args --disable-docs
+
platform darwin 10 {
# workaround for ticket #20906
configure.args-append --disable-mmx
Added: trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff
===================================================================
--- trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff (rev 0)
+++ trunk/dports/graphics/gegl/files/patch-gegl-buffer-gegl-buffer.c.diff 2010-09-05 17:52:27 UTC (rev 71233)
@@ -0,0 +1,27 @@
+--- gegl/buffer/gegl-buffer.c.orig 2010-02-07 07:31:58.000000000 -0800
++++ gegl/buffer/gegl-buffer.c 2010-09-05 10:38:43.000000000 -0700
+@@ -80,7 +80,7 @@
+ /* #define GEGL_BUFFER_DEBUG_ALLOCATIONS to print allocation stack
+ * traces for leaked GeglBuffers using GNU C libs backtrace_symbols()
+ */
+-#ifndef G_OS_WIN32
++#if !defined(G_OS_WIN32) && !(defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED < 1050)
+ #include <execinfo.h>
+ #endif
+
+@@ -876,8 +876,14 @@
+ gegl_buffer_get_alloc_stack (void)
+ {
+ char *result = NULL;
+-#ifdef G_OS_WIN32
++#if defined(G_OS_WIN32) || (defined(__APPLE__) && MAC_OS_X_VERSION_MIN_REQUIRED < 1050)
++
++#ifdef __APPLE__
++ result = g_strdup ("backtrack not available on Mac OS X 10.4 or earlier\n");
++#else
+ result = g_strdup ("backtrack not available on win32\n");
++#endif
++
+ #else
+ void *functions[MAX_N_FUNCTIONS];
+ int n_functions = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100905/38bff88f/attachment.html>
More information about the macports-changes
mailing list