Bug 170754 - lang/python27 with pth, and lang/gobject-introspection
Summary: lang/python27 with pth, and lang/gobject-introspection
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus von Appen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-18 19:50 UTC by Waitman Gobble
Modified: 2012-12-10 19:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waitman Gobble 2012-08-18 19:50:08 UTC
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"

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
How-To-Repeat: cd /usr/ports/lang/python27
make install (with pth option selected)

cd /usr/ports/devel/gobject-introspection
make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-18 19:50:23 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2012-10-27 09:49:41 UTC
Responsible Changed
From-To: freebsd-python->mva

I'll take it.
Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2012-12-10 19:55:01 UTC
State Changed
From-To: open->closed

This should be fixed now. Thanks for reporting!