From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Aug 18 18:50:09 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10FC51065672 for ; Sat, 18 Aug 2012 18:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BE6A58FC14 for ; Sat, 18 Aug 2012 18:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7IIo8lC086599 for ; Sat, 18 Aug 2012 18:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7IIo8JH086598; Sat, 18 Aug 2012 18:50:08 GMT (envelope-from gnats) Resent-Date: Sat, 18 Aug 2012 18:50:08 GMT Resent-Message-Id: <201208181850.q7IIo8JH086598@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Waitman Gobble Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD006106564A for ; Sat, 18 Aug 2012 18:49:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A88228FC17 for ; Sat, 18 Aug 2012 18:49:45 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7IInjHB078717 for ; Sat, 18 Aug 2012 18:49:45 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7IInjGr078716; Sat, 18 Aug 2012 18:49:45 GMT (envelope-from nobody) Message-Id: <201208181849.q7IInjGr078716@red.freebsd.org> Date: Sat, 18 Aug 2012 18:49:45 GMT From: Waitman Gobble To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/170754: lang/python27 with pth, and lang/gobject-introspection X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2012 18:50:09 -0000 >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 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 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 to #include Thank you >Release-Note: >Audit-Trail: >Unformatted: