ports/170754: lang/python27 with pth, and lang/gobject-introspection
Waitman Gobble
uzimac at da3m0n8t3r.com
Sat Aug 18 18:50:09 UTC 2012
>Number: 170754
>Category: ports
>Synopsis: lang/python27 with pth, and lang/gobject-introspection
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Aug 18 18:50:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Waitman Gobble
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
Waitman Gobble
>Environment:
FreeBSD hunny.waitman.net 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Aug 11 13:25:18 PDT 2012 root at hunny.waitman.net:/usr/obj/usr/src/sys/KEYSHIA amd64
>Description:
python27-2.7.3_3 from current ports
When trying to build gobject-introspection from ports/devel,
it fails with "no suitable Python headers found"
>How-To-Repeat:
cd /usr/ports/lang/python27
make install (with pth option selected)
cd /usr/ports/devel/gobject-introspection
make install
>Fix:
the gobject-introspection configure script performs a test similar to the following:
test.cpp:
#include <Python.h>
gcc -I/usr/local/include/python2.7 test.cpp
This fails with:
# gcc -I/usr/local/include/python2.7 testpy.cppIn file included from testpy.cpp:2:
/usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory
Python.h
has #include <pth.h>
but pth.h is in /usr/local/include/pth/pth.h
Not sure if it's python, pth or gobject-introspection causing the problem, but here are some work-arounds to consider
1) Add -I/usr/local/include/pth to CPPFLAGS in gobject-introspection Makefile
2) Patch gobject-instrospection, add -I/usr/local/include/pth to CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES" line in configure
3) Patch Python.h in python27 port, change #include <pth.h> to #include <pth/pth.h>
Thank you
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list