ports/146644: [python] WITH_PTH option breaks most ports depending on python

Dmitry Marakasov amdmi3 at FreeBSD.org
Sun May 16 20:10:02 UTC 2010


>Number:         146644
>Category:       ports
>Synopsis:       [python] WITH_PTH option breaks most ports depending on python
>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:   Sun May 16 20:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Wed May 5 22:11:20 MSD 2010 root at hades.panopticon:/async/obj/usr/src/sys/HADES i386


>Description:
Enabling PTH option for python26 breaks most ports depending on python, because pth.h (located in ${LOCALBASE}/include/pth/) is not reachable via include paths provided in preprocessor flags by python-config.

>How-To-Repeat:
% cat 1.c 
#include <Python.h>
% cc `python-config --cflags` 1.c
In file included from 1.c:1:
/usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such file or directory
% python-config --cflags
-I/usr/local/include/python2.6 -I/usr/local/include/python2.6 -fno-strict-aliasing -DNDEBUG -O2 -pipe -march=prescott -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -fno-strict-aliasing
% locate pth.h
/usr/local/include/pth/pth.h


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list