Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 11:20:09 GMT
From:      Peter Lai <cowbert@gmail.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/153952: python26 + pth fails to reconfigure cflags to include -I${LOCALBASE}/include/pth in include path
Message-ID:  <201101141120.p0EBK9gi027278@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/153952; it has been noted by GNATS.

From: Peter Lai <cowbert@gmail.com>
To: bug-followup@FreeBSD.org, cowbert@gmail.com
Cc: kwm@freebsd.org, bms@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101141120.p0EBK9gi027278>