[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] Workaround python header file insanity



On 02/24/2012 08:13 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange redhat com>
> 
> The /usr/include/python/pyconfig.h file pollutes the global
> namespace with a huge number of HAVE_XXX and WITH_XXX
> defines. These change what we detected in our own config.h
> In particular if you try to build without DTrace, python's
> headers turn it back on with predictable fail.
> 
> THe hack to workaround this is to rename WITH_DTRACE to
> WITH_DTRACE_PROBES to avoid the namespace clash
> ---
>  configure.ac       |    4 ++--
>  daemon/Makefile.am |    2 +-
>  src/Makefile.am    |    4 ++--
>  src/internal.h     |    2 +-
>  tests/Makefile.am  |    2 +-
>  5 files changed, 7 insertions(+), 7 deletions(-)

ACK.  (And I really wish python would clean up their act).

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]