From nobody@FreeBSD.org  Thu May 15 22:37:40 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id B4C0B237
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 May 2014 22:37:40 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id A1D832B26
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 May 2014 22:37:40 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4FMbeSS075932
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 15 May 2014 22:37:40 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4FMbeDP075929;
	Thu, 15 May 2014 22:37:40 GMT
	(envelope-from nobody)
Message-Id: <201405152237.s4FMbeDP075929@cgiserv.freebsd.org>
Date: Thu, 15 May 2014 22:37:40 GMT
From: Boris Pasko <pasko.boris@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dependent packages fail to build when python is built with both PTH and THREADS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189844
>Category:       ports
>Synopsis:       lang/python27: dependent packages fail to build when python is built with both PTH and THREADS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-python
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 15 22:40:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Tue May 20 03:41:53 UTC 2014
>Originator:     Boris Pasko
>Release:        FreeBSD 10.0
>Organization:
N/A
>Environment:
FreeBSD serv6.home 10.0-RELEASE FreeBSD 10.0-RELEASE #4 r262530: Fri Feb 28 15:28:03 EST 2014 root@serv6.home:/usr/obj/usr/src/sys/SERV6.10 amd64
>Description:
When python is built with both options, seems like it excludes PTH support, but dependent packages (talloc as an example) THINK pthreads are available and fail to build:

http://www.freebsd.org/cgi/query-pr.cgi?pr=187979


>How-To-Repeat:
See http://www.freebsd.org/cgi/query-pr.cgi?pr=187979
>Fix:
Python.h:

#ifdef HAVE_PTH
/* GNU pth user-space thread support */
-#include <pth.h>
+#include <pth/pth.h>            # GWM
#endif

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue May 20 03:41:53 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=189844 
>Unformatted:
