[57629] trunk/dports/python

jmr at macports.org jmr at macports.org
Mon Sep 14 04:55:49 PDT 2009


Revision: 57629
          http://trac.macports.org/changeset/57629
Author:   jmr at macports.org
Date:     2009-09-14 04:55:44 -0700 (Mon, 14 Sep 2009)
Log Message:
-----------
py*-pyobjc2: buildfix for i386 snow leopard (#20989)

Modified Paths:
--------------
    trunk/dports/python/py-pyobjc2/Portfile
    trunk/dports/python/py25-pyobjc2/Portfile
    trunk/dports/python/py26-pyobjc2/Portfile

Added Paths:
-----------
    trunk/dports/python/py-pyobjc2/files/undef_snprintf.diff
    trunk/dports/python/py25-pyobjc2/files/undef_snprintf.diff
    trunk/dports/python/py26-pyobjc2/files/undef_snprintf.diff

Modified: trunk/dports/python/py-pyobjc2/Portfile
===================================================================
--- trunk/dports/python/py-pyobjc2/Portfile	2009-09-14 11:20:42 UTC (rev 57628)
+++ trunk/dports/python/py-pyobjc2/Portfile	2009-09-14 11:55:44 UTC (rev 57629)
@@ -29,7 +29,7 @@
 svn.url         http://svn.red-bean.com/pyobjc/tags/r200-leopard/pyobjc-core/
 worksrcdir      pyobjc-core
 
-patchfiles      patch-PyErr_WarnEx.diff
+patchfiles      patch-PyErr_WarnEx.diff undef_snprintf.diff
 
 if {${os.major} < 9} {
     pre-fetch {

Added: trunk/dports/python/py-pyobjc2/files/undef_snprintf.diff
===================================================================
--- trunk/dports/python/py-pyobjc2/files/undef_snprintf.diff	                        (rev 0)
+++ trunk/dports/python/py-pyobjc2/files/undef_snprintf.diff	2009-09-14 11:55:44 UTC (rev 57629)
@@ -0,0 +1,12 @@
+--- Modules/objc/objc_inject.m.orig	2007-11-02 00:04:34.000000000 +1100
++++ Modules/objc/objc_inject.m	2009-09-14 21:44:14.000000000 +1000
+@@ -39,6 +39,9 @@
+ static void INJECT_test_func(void);
+ static pascal void INJECT_EventLoopTimerEntry(EventLoopTimerRef inTimer, void *p);
+ 
++#ifdef snprintf
++#undef snprintf
++#endif
+ #define DEFWRAP(func) __typeof__(&func) func
+ typedef struct {
+     /* internal */

Modified: trunk/dports/python/py25-pyobjc2/Portfile
===================================================================
--- trunk/dports/python/py25-pyobjc2/Portfile	2009-09-14 11:20:42 UTC (rev 57628)
+++ trunk/dports/python/py25-pyobjc2/Portfile	2009-09-14 11:55:44 UTC (rev 57629)
@@ -34,7 +34,7 @@
     }
 }
 
-patchfiles      setup.py.diff
+patchfiles      setup.py.diff undef_snprintf.diff
 
 post-destroot {
     xinstall -m 644 -W ${worksrcpath} HISTORIC.txt Install.html Install.txt \

Added: trunk/dports/python/py25-pyobjc2/files/undef_snprintf.diff
===================================================================
--- trunk/dports/python/py25-pyobjc2/files/undef_snprintf.diff	                        (rev 0)
+++ trunk/dports/python/py25-pyobjc2/files/undef_snprintf.diff	2009-09-14 11:55:44 UTC (rev 57629)
@@ -0,0 +1,12 @@
+--- Modules/objc/objc_inject.m.orig	2007-11-02 00:04:34.000000000 +1100
++++ Modules/objc/objc_inject.m	2009-09-14 21:44:14.000000000 +1000
+@@ -39,6 +39,9 @@
+ static void INJECT_test_func(void);
+ static pascal void INJECT_EventLoopTimerEntry(EventLoopTimerRef inTimer, void *p);
+ 
++#ifdef snprintf
++#undef snprintf
++#endif
+ #define DEFWRAP(func) __typeof__(&func) func
+ typedef struct {
+     /* internal */

Modified: trunk/dports/python/py26-pyobjc2/Portfile
===================================================================
--- trunk/dports/python/py26-pyobjc2/Portfile	2009-09-14 11:20:42 UTC (rev 57628)
+++ trunk/dports/python/py26-pyobjc2/Portfile	2009-09-14 11:55:44 UTC (rev 57629)
@@ -28,7 +28,7 @@
 svn.url         http://svn.red-bean.com/pyobjc/tags/r200-leopard/pyobjc-core/
 worksrcdir      pyobjc-core
 
-patchfiles      patch-setup.py
+patchfiles      patch-setup.py undef_snprintf.diff
 
 if {${os.major} < 9} {
     pre-fetch {

Added: trunk/dports/python/py26-pyobjc2/files/undef_snprintf.diff
===================================================================
--- trunk/dports/python/py26-pyobjc2/files/undef_snprintf.diff	                        (rev 0)
+++ trunk/dports/python/py26-pyobjc2/files/undef_snprintf.diff	2009-09-14 11:55:44 UTC (rev 57629)
@@ -0,0 +1,12 @@
+--- Modules/objc/objc_inject.m.orig	2007-11-02 00:04:34.000000000 +1100
++++ Modules/objc/objc_inject.m	2009-09-14 21:44:14.000000000 +1000
+@@ -39,6 +39,9 @@
+ static void INJECT_test_func(void);
+ static pascal void INJECT_EventLoopTimerEntry(EventLoopTimerRef inTimer, void *p);
+ 
++#ifdef snprintf
++#undef snprintf
++#endif
+ #define DEFWRAP(func) __typeof__(&func) func
+ typedef struct {
+     /* internal */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090914/f6e4dd9f/attachment.html>


More information about the macports-changes mailing list