ports/153952: python26 + pth fails to reconfigure cflags to include -I${LOCALBASE}/include/pth in include path
Peter Lai
cowbert at gmail.com
Fri Jan 14 11:20:10 UTC 2011
The following reply was made to PR ports/153952; it has been noted by GNATS.
From: Peter Lai <cowbert at gmail.com>
To: bug-followup at FreeBSD.org, cowbert at gmail.com
Cc: kwm at freebsd.org, bms at freebsd.org
Subject: Re: ports/153952: python26 + pth fails to reconfigure cflags to
include -I${LOCALBASE}/include/pth in include path
Date: Fri, 14 Jan 2011 05:18:06 -0600
Scratch my previous followup...
I've managed to narrow down the two separate issues that are causing
this issue between devel/gobject-introspection and lang/python26+pth.
Here is one approach:
Patch python26-config to emit -I${LOCALBASE}/include/pth as an extra
include header by patching the python-config.in, see here:
http://cesium.hyperfine.info/~cowbert/ports/lang/python26/patch-Makefile
The second approach is to patch the distutils/sysconfig.py, so that
${LOCALBASE}/include/pth is emitted by sysconfig as part of
get_python_inc() but I don't think that's necessarily a good idea to
interfere with the upstream too much, and really, C code building
against python should be using the python-config script to determine
the include, ldflag, and cflags anyway...
Now, the next issue is: because somehow, gobject-introspection's
configure script doesn't use sysconfig to build the python's include
path, they are building the PYTHON_INCLUDES path manually, so I patch
it with http://cesium.hyperfine.info/~cowbert/ports/devel/gobject-introspection/files/patch-configure
And finally post-patch the configure to expand %%LOCALBASE%%, so that
configure can find ${LOCALBASE}/bin/python${PYTHON_VERSION}-config
http://cesium.hyperfine.info/~cowbert/ports/devel/gobject-introspection/patch-Makefile
gobject-introspection now makes properly against python+pth with the
above patches
More information about the freebsd-ports-bugs
mailing list