Revision: 117445 https://trac.macports.org/changeset/117445 Author: devans@macports.org Date: 2014-02-26 10:08:56 -0800 (Wed, 26 Feb 2014) Log Message: ----------- py-libxml2: apply upstream patch that addresses 'symbol not found' on import issue (#39579). Modified Paths: -------------- trunk/dports/python/py-libxml2/Portfile Added Paths: ----------- trunk/dports/python/py-libxml2/files/patch-libxml_wrap.h.diff Modified: trunk/dports/python/py-libxml2/Portfile =================================================================== --- trunk/dports/python/py-libxml2/Portfile 2014-02-26 13:00:52 UTC (rev 117444) +++ trunk/dports/python/py-libxml2/Portfile 2014-02-26 18:08:56 UTC (rev 117445) @@ -8,6 +8,7 @@ name py-libxml2 version 2.9.1 +revision 1 categories-append textproc license MIT platforms darwin @@ -35,7 +36,8 @@ worksrcdir ${worksrcdir}/python - patchfiles patch-setup.py.diff + patchfiles patch-setup.py.diff \ + patch-libxml_wrap.h.diff post-patch { reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py } Added: trunk/dports/python/py-libxml2/files/patch-libxml_wrap.h.diff =================================================================== --- trunk/dports/python/py-libxml2/files/patch-libxml_wrap.h.diff (rev 0) +++ trunk/dports/python/py-libxml2/files/patch-libxml_wrap.h.diff 2014-02-26 18:08:56 UTC (rev 117445) @@ -0,0 +1,29 @@ +From 722923bc9b788f028e4221c77138fc66735a3113 Mon Sep 17 00:00:00 2001 +From: Petr Sumbera <petr.sumbera@oracle.com> +Date: Fri, 03 May 2013 14:25:38 +0000 +Subject: Fix for compilation with python 2.6.8 + +Remap PyCapsule to PyCObject based on the macro being available +instead of using the python version +--- +diff --git a/python/libxml_wrap.h b/python/libxml_wrap.h +index a9b9739..53a0618 100644 +--- libxml_wrap.h ++++ libxml_wrap.h +@@ -34,11 +34,11 @@ + #define PyBytes_AsString PyString_AsString + #define PyBytes_AS_STRING PyString_AS_STRING + #define PyBytes_GET_SIZE PyString_GET_SIZE +- ++#endif ++#ifndef PyCapsule_New + #define PyCapsule_New PyCObject_FromVoidPtrAndDesc + #define PyCapsule_CheckExact PyCObject_Check + #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o)) +- + #endif + #endif + +-- +cgit v0.9.2 +
participants (1)
-
devans@macports.org