[libvirt] [PATCH] Workaround python header file insanity
Eric Blake
eblake at redhat.com
Fri Feb 24 15:38:41 UTC 2012
On 02/24/2012 08:13 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at 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 at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120224/6b779a56/attachment-0001.sig>
More information about the libvir-list
mailing list