Date: Sat, 18 Aug 2012 18:49:45 GMT From: Waitman Gobble <uzimac@da3m0n8t3r.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/170754: lang/python27 with pth, and lang/gobject-introspection Message-ID: <201208181849.q7IInjGr078716@red.freebsd.org> Resent-Message-ID: <201208181850.q7IIo8JH086598@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208181849.q7IInjGr078716>