From owner-freebsd-python@FreeBSD.ORG Sun May 1 18:30:29 2011 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2369E106566B; Sun, 1 May 2011 18:30:29 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EF6DD8FC1A; Sun, 1 May 2011 18:30:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p41IUSP8022421; Sun, 1 May 2011 18:30:28 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p41IUS8j022410; Sun, 1 May 2011 18:30:28 GMT (envelope-from edwin) Date: Sun, 1 May 2011 18:30:28 GMT Message-Id: <201105011830.p41IUS8j022410@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/156759: [patch] lang/python: kevent does not accept KQ_NOTE_EXIT (and other (f)flags) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 18:30:29 -0000 Synopsis: [patch] lang/python: kevent does not accept KQ_NOTE_EXIT (and other (f)flags) Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Sun May 1 18:30:27 UTC 2011 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=156759 From owner-freebsd-python@FreeBSD.ORG Sun May 1 19:09:32 2011 Return-Path: Delivered-To: python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 147971065670; Sun, 1 May 2011 19:09:32 +0000 (UTC) (envelope-from mezz@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 05DFC8FC08; Sun, 1 May 2011 19:09:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p41J9VHX056287; Sun, 1 May 2011 19:09:31 GMT (envelope-from mezz@freefall.freebsd.org) Received: (from mezz@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p41J9VB5056283; Sun, 1 May 2011 19:09:31 GMT (envelope-from mezz) Date: Sun, 1 May 2011 19:09:31 GMT Message-Id: <201105011909.p41J9VB5056283@freefall.freebsd.org> To: meta@club.kyutech.ac.jp, mezz@FreeBSD.org, gnome@FreeBSD.org, python@FreeBSD.org From: mezz@FreeBSD.org Cc: Subject: Re: ports/156425: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 19:09:32 -0000 Old Synopsis: Installing textproc/py-libxml2 fails because of lack of CFLAGS New Synopsis: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. State-Changed-From-To: feedback->open State-Changed-By: mezz State-Changed-When: Sun May 1 19:03:18 UTC 2011 State-Changed-Why: Change the Synopsis/Subject. Change from gnome to python. It's not a py-libxml2 bug, which it's lang/python26 and possible all python2*? When I installed lang/python26 with pth option. The python2.6-config output will have -lpth included. # python2.6-config --ldflags -L/usr/local/lib/python2.6/config -lpth -lutil -lm -lpython2.6 -----------------------------------^^^^^ The pth library lives in /usr/local/lib/pth, so python2.6-config needs to include the -L/usr/local/lib/pth to fix other ports build. I didn't check if other versions of python also need the fix. Responsible-Changed-From-To: gnome->python Responsible-Changed-By: mezz Responsible-Changed-When: Sun May 1 19:03:18 UTC 2011 Responsible-Changed-Why: Change the Synopsis/Subject. Change from gnome to python. It's not a py-libxml2 bug, which it's lang/python26 and possible all python2*? When I installed lang/python26 with pth option. The python2.6-config output will have -lpth included. # python2.6-config --ldflags -L/usr/local/lib/python2.6/config -lpth -lutil -lm -lpython2.6 -----------------------------------^^^^^ The pth library lives in /usr/local/lib/pth, so python2.6-config needs to include the -L/usr/local/lib/pth to fix other ports build. I didn't check if other versions of python also need the fix. http://www.freebsd.org/cgi/query-pr.cgi?pr=156425 From owner-freebsd-python@FreeBSD.ORG Sun May 1 19:23:34 2011 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36405106566C for ; Sun, 1 May 2011 19:23:34 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id E042E8FC0C for ; Sun, 1 May 2011 19:23:33 +0000 (UTC) Received: by vxc34 with SMTP id 34so5127436vxc.13 for ; Sun, 01 May 2011 12:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=h2rFEGFRYnkyarWAZ6sMy72sSaD95M1rmJBYc/ipe0U=; b=eT7qrT4Z1P/zVrd8rp6CLP0yeqLdemLeewBfseDV0sx/Rfr3JNoI16FjbWQyG180E6 8JB8AmtxUmupAAL0qDk3ZdOl/PxdzicT37xNa9PSELEFQtq6Oxj9Y3KhZyUETtmcdd+4 2iG8eb7wBaoKYONHBJBPNbU7t5gxO+Ic0G2tU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=X2RjxjzqgVJa9fZwhy7rpnUL9JgRQiyNzbY/v13ooQ3K0crCYLlZFeL/9fhJarBOmo DkfaxE74+Fa+c4iAz8236bQ5fyYQIYNtSR3TS8vxHvajwDL4SEPiLh5Mqw7gXt2qEfxl XszaTILulGn5yR0Wcp+3QLud5zUo32NgoldQE= MIME-Version: 1.0 Received: by 10.220.62.76 with SMTP id w12mr2147055vch.35.1304276481562; Sun, 01 May 2011 12:01:21 -0700 (PDT) Received: by 10.220.180.2 with HTTP; Sun, 1 May 2011 12:01:21 -0700 (PDT) In-Reply-To: <20110501175122.GA12759@club.kyutech.ac.jp> References: <201104302219.p3UMJQcD087455@freefall.freebsd.org> <20110501175122.GA12759@club.kyutech.ac.jp> Date: Sun, 1 May 2011 14:01:21 -0500 Message-ID: From: Jeremy Messenger To: Kouichiro Iwao Content-Type: text/plain; charset=ISO-8859-1 Cc: gnome@freebsd.org, python@FreeBSD.org, mezz@freebsd.org Subject: Re: ports/156425: Installing textproc/py-libxml2 fails because of lack of CFLAGS X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 19:23:34 -0000 2011/5/1 Kouichiro Iwao : > $ python2.6-config --ldflags > -L/usr/local/lib/python2.6/config -lutil -lm -lpython2.6 Umm.. Do you have still have pth installed? I think your python 2.6 has changed after you submitted PR? I have gone ahead installed lang/python26 with the pth option. Here's what I get: # python2.6-config --ldflags -L/usr/local/lib/python2.6/config -lpth -lutil -lm -lpython2.6 ----------------------------------------^^^ > is this mean python-relevant ports (ex. py-*) fail to detect build > options of python's? It's a lang/python26 bug. There is nothing that py-libxml2 depends on pth. Since the python2.6-config has -lpth then it needs to be fixed by add -L/usr/local/lib/pth in the python2.6-config. Add CC'ing to python@ and I will change the PR to python. Cheers, Mezz -- mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-python@FreeBSD.ORG Mon May 2 11:07:05 2011 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7F631065678 for ; Mon, 2 May 2011 11:07:05 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AC27B8FC08 for ; Mon, 2 May 2011 11:07:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p42B75j0064186 for ; Mon, 2 May 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42B75as064183 for freebsd-python@FreeBSD.org; Mon, 2 May 2011 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 May 2011 11:07:05 GMT Message-Id: <201105021107.p42B75as064183@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-python@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-python@FreeBSD.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 11:07:05 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/156759 python [patch] lang/python: kevent does not accept KQ_NOTE_EX o ports/156346 python [patch] devel/py-freebsd: fix build on 9.x ['CTLTYPE_Q o ports/156076 python [patch] databases/py-sqlite3: Undefined symbol "sqlite o ports/155970 python [PATCH] lang/python: speed up upgrade-site-packages o ports/155936 python lang/python27 Pthread: previous declaration of ... o ports/155099 python lang/python*: Not handled "nis_failed.so" file by pyth o ports/154795 python [PATCH] Mk/bsd.python.mk: style changes o ports/154209 python [PATCH] lang/python: Install symlink for ptags o ports/153952 python lang/python26 + pth fails to reconfigure cflags to inc o ports/153167 python Problem with signals, threads, and subprocesses in lan o ports/152886 python databases/py-bsddb fails to build with databases/db51 o ports/152224 python [patch] fix installed permissions for lang/python27 o ports/151534 python lang/python26 + WITH_PTH doesn't install correctly f ports/150184 python cannot install ports/math/py-numpy o ports/149167 python lang/python26 fails to build _ctypes on Sheevaplug (AR o ports/148406 python [PATCH] lang/python26: fix build backage without threa o ports/147291 python lang/python* doesn't compile nis.so when WITHOUT_NIS s o ports/146957 python Mk/bsd.python.mk: PYTHONOPTIMIZE=1 in environ(7) break o ports/146823 python [patch] lang/python26: knob to build _ctypes module ag o ports/146644 python lang/python26: WITH_PTH option breaks most ports depen o ports/140968 python x11-toolkits/py-tkinter(devel/pth): py26-tkinter-2.6.4 o ports/136917 python [patch] lang/python26: gettext detection o ports/133081 python [bsd.python.mk] PYEASYINSTALL_ARCHDEP=yes makes broken o ports/118301 python [patch] devel/py-setuptools easy-install.pth contents o ports/115940 python Missed one file in lang/python25 if NO_NIS defined 25 problems total. From owner-freebsd-python@FreeBSD.ORG Mon May 2 11:08:23 2011 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7F09A106564A for ; Mon, 2 May 2011 11:08:23 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 55F948FC19 for ; Mon, 2 May 2011 11:08:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p42B8NL9065290 for ; Mon, 2 May 2011 11:08:23 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42B8Mjf065288 for python@FreeBSD.org; Mon, 2 May 2011 11:08:22 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 2 May 2011 11:08:22 GMT Message-Id: <201105021108.p42B8Mjf065288@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: python@FreeBSD.org Cc: Subject: Current problem reports assigned to python@FreeBSD.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 11:08:23 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/156425 python lang/python26: Needs to include -L/usr/local/lib/pth i 1 problem total. From owner-freebsd-python@FreeBSD.ORG Mon May 2 11:32:43 2011 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CB08106566C; Mon, 2 May 2011 11:32:43 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2DAB38FC15; Mon, 2 May 2011 11:32:42 +0000 (UTC) Received: from User-PC (unknown [81.181.146.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id C054322C555E; Mon, 2 May 2011 14:17:26 +0300 (EEST) Date: Mon, 2 May 2011 14:17:20 +0300 From: Ion-Mihai Tetcu To: python@FreeBSD.org, gnome@freebsd.org Message-Id: <20110502141720.df243dd1.itetcu@FreeBSD.org> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 11:32:43 -0000 Hi, Am I tripping on something known here? Trying to switch to python 2.7 my home dektop, the upgrade-site-packages: target fails on gobject-introspectio with: >>>>> checking whether Python support is requested... checking whether /usr/local/bin/pythowith:n2.7 version >= 2.5... yes checking for /usr/local/bin/python2.7 version... 2.7 checking for /usr/local/bin/python2.7 platform... freebsd8 checking for /usr/local/bin/python2.7 script directory... ${prefix}/lib/python2.7/site-packages checking for /usr/local/bin/python2.7 extension module directory... ${exec_prefix}/lib/python2.7/site-packages checking for headers required to compile python extensions... not found configure: error: Python headers not found ===> Script "configure" failed unexpectedly. >>>>> The relevant part of the log: >>>>> configure:13291: checking for /usr/local/bin/python2.7 extension module directory configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages configure:13341: checking for headers required to compile python extensions configure:13356: cpp -I/usr/local/include -I/usr/local/include/python2.7 conftest.c In file included from conftest.c:42: /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory configure:13356: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gobject-introspection" | #define PACKAGE_TARNAME "gobject-introspection" | #define PACKAGE_VERSION "0.9.12" | #define PACKAGE_STRING "gobject-introspection 0.9.12" | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection" | #define PACKAGE_URL "" | #define PACKAGE "gobject-introspection" | #define VERSION "0.9.12" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define YYTEXT_POINTER 1 | #define SHLIB_SUFFIX "so" | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" | #define GIR_SUFFIX "gir-1.0" | #define GIR_DIR "/usr/local/share/gir-1.0" | #define SIZEOF_CHAR 1 | #define SIZEOF_SHORT 2 | #define SIZEOF_INT 4 | #define SIZEOF_LONG 8 | #define STDC_HEADERS 1 | #define HAVE_FCNTL_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMCHR 1 | #define HAVE_STRCHR 1 | #define HAVE_STRSPN 1 | #define HAVE_STRSTR 1 | #define HAVE_STRTOL 1 | #define HAVE_STRTOULL 1 | /* end confdefs.h. */ | #include configure:13361: result: not found configure:13363: error: Python headers not found >>>>> The relevant part of Python.h is: >>>>> #ifdef HAVE_PTH /* GNU pth user-space thread support */ #include #endif >>>>> Pth lives at: /usr/local/include/pth/pth.h :) BTW, the test for ${PORTUPGRADE_ARGS} in the python port's upgrade-site-packages: target will fail if they contain switches that test(1) has, ie. '-d'. -- Ion-Mihai Tetcu From owner-freebsd-python@FreeBSD.ORG Mon May 2 12:02:14 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E42D106567F; Mon, 2 May 2011 12:02:14 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id F16E98FC26; Mon, 2 May 2011 12:02:13 +0000 (UTC) Received: by vxc34 with SMTP id 34so5554414vxc.13 for ; Mon, 02 May 2011 05:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3gZ1wE6J6p8VB7erddDsz5fXbaV5J9vtE43DnHXobaI=; b=HtAMu07tGstNcyxgPSyQCyhn3CH6yfb7SeQBVb/9JKTs7kTu4mvX2Fxcqy7EBwQLOt 2o2bwPR0ydA3EY1gjEbXEE1KY0VlGDUbD3ja2Ibcj4wM4gwil8L2HvVq9mdAwrPnbyK0 E3/4JngjoCL/bcJnHI+iEn6czulJLpK0cNWmc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rzUXz8UxeXIH2e5FWgNLVQeAys426S0ujcdc6VcbcTUyLmyxyXUfLt3RRqcXTJYF1M XjKzpAYY2CUIv7l4IJnXsj0LU4ONMxK2aEcZX3iRuK99OWlEqgj6mo2whaTyJdlFOks+ jEPhBK8/bIJ3/sT21X9T5EVfgcx1ynUy5xRpE= MIME-Version: 1.0 Received: by 10.220.62.76 with SMTP id w12mr2369719vch.35.1304337728773; Mon, 02 May 2011 05:02:08 -0700 (PDT) Received: by 10.220.180.2 with HTTP; Mon, 2 May 2011 05:02:08 -0700 (PDT) In-Reply-To: <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> Date: Mon, 2 May 2011 07:02:08 -0500 Message-ID: From: Jeremy Messenger To: Koop Mast Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gnome@freebsd.org, Ion-Mihai Tetcu , python@freebsd.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 12:02:14 -0000 On Mon, May 2, 2011 at 6:58 AM, Koop Mast wrote: > On Mon, 2011-05-02 at 14:17 +0300, Ion-Mihai Tetcu wrote: >> Hi, >> >> >> Am I tripping on something known here? >> >> Trying to switch to python 2.7 my home dektop, the >> upgrade-site-packages: target fails on gobject-introspectio with: >> >>>>> >> checking whether Python support is requested... checking whether /usr/lo= cal/bin/pythowith:n2.7 version >=3D 2.5... yes >> checking for /usr/local/bin/python2.7 version... 2.7 >> checking for /usr/local/bin/python2.7 platform... freebsd8 >> checking for /usr/local/bin/python2.7 script directory... ${prefix}/lib/= python2.7/site-packages >> checking for /usr/local/bin/python2.7 extension module directory... ${ex= ec_prefix}/lib/python2.7/site-packages >> checking for headers required to compile python extensions... not found >> configure: error: Python headers not found >> =3D=3D=3D> =A0Script "configure" failed unexpectedly. >> >>>>> >> >> The relevant part of the log: >> >>>>> >> configure:13291: checking for /usr/local/bin/python2.7 extension module = directory >> configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages >> configure:13341: checking for headers required to compile python extensi= ons >> configure:13356: cpp -I/usr/local/include -I/usr/local/include/python2.7= conftest.c >> In file included from conftest.c:42: >> /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file= or directory >> configure:13356: $? =3D 1 >> configure: failed program was: >> | /* confdefs.h */ >> | #define PACKAGE_NAME "gobject-introspection" >> | #define PACKAGE_TARNAME "gobject-introspection" >> | #define PACKAGE_VERSION "0.9.12" >> | #define PACKAGE_STRING "gobject-introspection 0.9.12" >> | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?pro= duct=3Dglib&component=3Dintrospection" >> | #define PACKAGE_URL "" >> | #define PACKAGE "gobject-introspection" >> | #define VERSION "0.9.12" >> | #define STDC_HEADERS 1 >> | #define HAVE_SYS_TYPES_H 1 >> | #define HAVE_SYS_STAT_H 1 >> | #define HAVE_STDLIB_H 1 >> | #define HAVE_STRING_H 1 >> | #define HAVE_MEMORY_H 1 >> | #define HAVE_STRINGS_H 1 >> | #define HAVE_INTTYPES_H 1 >> | #define HAVE_STDINT_H 1 >> | #define HAVE_UNISTD_H 1 >> | #define HAVE_DLFCN_H 1 >> | #define LT_OBJDIR ".libs/" >> | #define YYTEXT_POINTER 1 >> | #define SHLIB_SUFFIX "so" >> | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" >> | #define GIR_SUFFIX "gir-1.0" >> | #define GIR_DIR "/usr/local/share/gir-1.0" >> | #define SIZEOF_CHAR 1 >> | #define SIZEOF_SHORT 2 >> | #define SIZEOF_INT 4 >> | #define SIZEOF_LONG 8 >> | #define STDC_HEADERS 1 >> | #define HAVE_FCNTL_H 1 >> | #define HAVE_STDLIB_H 1 >> | #define HAVE_STRING_H 1 >> | #define HAVE_MEMCHR 1 >> | #define HAVE_STRCHR 1 >> | #define HAVE_STRSPN 1 >> | #define HAVE_STRSTR 1 >> | #define HAVE_STRTOL 1 >> | #define HAVE_STRTOULL 1 >> | /* end confdefs.h. =A0*/ >> | #include >> configure:13361: result: not found >> configure:13363: error: Python headers not found >> >>>>> >> >> The relevant part of Python.h is: >> >>>>> >> #ifdef HAVE_PTH >> /* GNU pth user-space thread support */ >> #include >> #endif >> >>>>> >> >> Pth lives at: >> /usr/local/include/pth/pth.h >> :) What does your output looks? # python2.7-config --includes I have reported a bug at python@ about python2.6-config doesn't include -L/usr/local/lib/pth. I image for -I/usr/local/include/pth too. > As you probably have guessed, python doesn't do -Iinclude/pth/ so it can'= t find the include. > IMO this is something that should be fixed in the python ports instead > of all python users if python is build by pth support. I think the > python team has some pr's about this. Agreed, but too bad the gobject-introspection doesn't use 'python2.7-config --includes'. I will cook up a patch for gobject-introspection to use 'python2.7-config --includes' this evening. Cheers, Mezz > -Koop > >> BTW, the test for ${PORTUPGRADE_ARGS} in the python port's >> upgrade-site-packages: target will fail if they contain >> switches that test(1) has, ie. '-d'. --=20 mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-python@FreeBSD.ORG Mon May 2 12:12:52 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38260106566C; Mon, 2 May 2011 12:12:52 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep22.mx.upcmail.net (fep22.mx.upcmail.net [62.179.121.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5F8C58FC19; Mon, 2 May 2011 12:12:50 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep17-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110502115510.KMIM11401.viefep17-int.chello.at@edge03.upcmail.net>; Mon, 2 May 2011 13:55:10 +0200 Received: from [192.168.0.104] ([77.249.46.246]) by edge03.upcmail.net with edge id ebv81g0165JheDZ03bv9CE; Mon, 02 May 2011 13:55:10 +0200 X-SourceIP: 77.249.46.246 From: Koop Mast To: Ion-Mihai Tetcu Date: Mon, 02 May 2011 13:58:08 +0200 In-Reply-To: <20110502141720.df243dd1.itetcu@FreeBSD.org> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.0.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Message-ID: <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> Mime-Version: 1.0 X-Cloudmark-Analysis: v=1.1 cv=HQ3F56nxkum+cgCiDL7AXQpbvw7DWrWCBJRnYYnM0Zc= c=1 sm=0 a=LT9jDT0x5YsA:10 a=kj9zAlcOel0A:10 a=aiIX5UjjAAAA:8 a=P4i_zbzQMvt7W55TfWIA:9 a=qv4huRD9EtVrguyxCUkA:7 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Cc: gnome@freebsd.org, python@FreeBSD.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 12:12:52 -0000 On Mon, 2011-05-02 at 14:17 +0300, Ion-Mihai Tetcu wrote: > Hi, > > > Am I tripping on something known here? > > Trying to switch to python 2.7 my home dektop, the > upgrade-site-packages: target fails on gobject-introspectio with: > >>>>> > checking whether Python support is requested... checking whether /usr/local/bin/pythowith:n2.7 version >= 2.5... yes > checking for /usr/local/bin/python2.7 version... 2.7 > checking for /usr/local/bin/python2.7 platform... freebsd8 > checking for /usr/local/bin/python2.7 script directory... ${prefix}/lib/python2.7/site-packages > checking for /usr/local/bin/python2.7 extension module directory... ${exec_prefix}/lib/python2.7/site-packages > checking for headers required to compile python extensions... not found > configure: error: Python headers not found > ===> Script "configure" failed unexpectedly. > >>>>> > > The relevant part of the log: > >>>>> > configure:13291: checking for /usr/local/bin/python2.7 extension module directory > configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages > configure:13341: checking for headers required to compile python extensions > configure:13356: cpp -I/usr/local/include -I/usr/local/include/python2.7 conftest.c > In file included from conftest.c:42: > /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory > configure:13356: $? = 1 > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "gobject-introspection" > | #define PACKAGE_TARNAME "gobject-introspection" > | #define PACKAGE_VERSION "0.9.12" > | #define PACKAGE_STRING "gobject-introspection 0.9.12" > | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection" > | #define PACKAGE_URL "" > | #define PACKAGE "gobject-introspection" > | #define VERSION "0.9.12" > | #define STDC_HEADERS 1 > | #define HAVE_SYS_TYPES_H 1 > | #define HAVE_SYS_STAT_H 1 > | #define HAVE_STDLIB_H 1 > | #define HAVE_STRING_H 1 > | #define HAVE_MEMORY_H 1 > | #define HAVE_STRINGS_H 1 > | #define HAVE_INTTYPES_H 1 > | #define HAVE_STDINT_H 1 > | #define HAVE_UNISTD_H 1 > | #define HAVE_DLFCN_H 1 > | #define LT_OBJDIR ".libs/" > | #define YYTEXT_POINTER 1 > | #define SHLIB_SUFFIX "so" > | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" > | #define GIR_SUFFIX "gir-1.0" > | #define GIR_DIR "/usr/local/share/gir-1.0" > | #define SIZEOF_CHAR 1 > | #define SIZEOF_SHORT 2 > | #define SIZEOF_INT 4 > | #define SIZEOF_LONG 8 > | #define STDC_HEADERS 1 > | #define HAVE_FCNTL_H 1 > | #define HAVE_STDLIB_H 1 > | #define HAVE_STRING_H 1 > | #define HAVE_MEMCHR 1 > | #define HAVE_STRCHR 1 > | #define HAVE_STRSPN 1 > | #define HAVE_STRSTR 1 > | #define HAVE_STRTOL 1 > | #define HAVE_STRTOULL 1 > | /* end confdefs.h. */ > | #include > configure:13361: result: not found > configure:13363: error: Python headers not found > >>>>> > > The relevant part of Python.h is: > >>>>> > #ifdef HAVE_PTH > /* GNU pth user-space thread support */ > #include > #endif > >>>>> > > Pth lives at: > /usr/local/include/pth/pth.h > :) As you probably have guessed, python doesn't do -Iinclude/pth/ so it can't find the include. IMO this is something that should be fixed in the python ports instead of all python users if python is build by pth support. I think the python team has some pr's about this. -Koop > BTW, the test for ${PORTUPGRADE_ARGS} in the python port's > upgrade-site-packages: target will fail if they contain > switches that test(1) has, ie. '-d'. From owner-freebsd-python@FreeBSD.ORG Mon May 2 12:56:53 2011 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FF8A1065675; Mon, 2 May 2011 12:56:53 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3E48FC19; Mon, 2 May 2011 12:56:52 +0000 (UTC) Received: from User-PC (unknown [81.181.146.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id 216FB22C5560; Mon, 2 May 2011 15:56:52 +0300 (EEST) Date: Mon, 2 May 2011 15:56:45 +0300 From: Ion-Mihai Tetcu To: Koop Mast Message-Id: <20110502155645.4b8e2970.itetcu@FreeBSD.org> In-Reply-To: <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org, python@FreeBSD.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 12:56:53 -0000 On Mon, 02 May 2011 13:58:08 +0200 Koop Mast wrote: > > BTW, the test for ${PORTUPGRADE_ARGS} in the python port's > > upgrade-site-packages: target will fail if they contain > > switches that test(1) has, ie. '-d'. And for the package WITH_PTH there's a problem with the plist: ===>>> Creating a backup package for old version python27-2.7.1_1 tar: lib/python2.7/lib-dynload/_ctypes.so: Cannot stat: No such file or directory tar: Error exit delayed from previous errors. pkg_create: make_dist: tar command failed with code 256 ===>>> Package creation failed for python27-2.7.1_1! -- Ion-Mihai Tetcu From owner-freebsd-python@FreeBSD.ORG Mon May 2 13:07:43 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDDCA106566B; Mon, 2 May 2011 13:07:43 +0000 (UTC) (envelope-from ionut@tetcu.info) Received: from worf.ds9.tecnik93.com (worf.ds9.tecnik93.com [81.196.207.130]) by mx1.freebsd.org (Postfix) with ESMTP id 42F1C8FC15; Mon, 2 May 2011 13:07:43 +0000 (UTC) Received: from User-PC (unknown [81.181.146.246]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by worf.ds9.tecnik93.com (Postfix) with ESMTPSA id 4058B22C555E; Mon, 2 May 2011 15:50:47 +0300 (EEST) Date: Mon, 2 May 2011 15:50:40 +0300 From: Ion-Mihai Tetcu To: Jeremy Messenger Message-Id: <20110502155040.60948717.ionut@tetcu.info> In-Reply-To: References: <20110502141720.df243dd1.itetcu@FreeBSD.org> <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Cc: gnome@freebsd.org, Koop Mast , Ion-Mihai Tetcu , python@freebsd.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 13:07:44 -0000 On Mon, 2 May 2011 07:02:08 -0500 Jeremy Messenger wrote: > On Mon, May 2, 2011 at 6:58 AM, Koop Mast wrote: > > On Mon, 2011-05-02 at 14:17 +0300, Ion-Mihai Tetcu wrote: > >> Hi, > >> > >> > >> Am I tripping on something known here? > >> > >> Trying to switch to python 2.7 my home dektop, the > >> upgrade-site-packages: target fails on gobject-introspectio with: > >> >>>>> > >> checking whether Python support is requested... checking whether /usr/= local/bin/pythowith:n2.7 version >=3D 2.5... yes > >> checking for /usr/local/bin/python2.7 version... 2.7 > >> checking for /usr/local/bin/python2.7 platform... freebsd8 > >> checking for /usr/local/bin/python2.7 script directory... ${prefix}/li= b/python2.7/site-packages > >> checking for /usr/local/bin/python2.7 extension module directory... ${= exec_prefix}/lib/python2.7/site-packages > >> checking for headers required to compile python extensions... not found > >> configure: error: Python headers not found > >> =3D=3D=3D> =A0Script "configure" failed unexpectedly. > >> >>>>> > >> > >> The relevant part of the log: > >> >>>>> > >> configure:13291: checking for /usr/local/bin/python2.7 extension modul= e directory > >> configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages > >> configure:13341: checking for headers required to compile python exten= sions > >> configure:13356: cpp -I/usr/local/include -I/usr/local/include/python2= .7 conftest.c > >> In file included from conftest.c:42: > >> /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such fi= le or directory > >> configure:13356: $? =3D 1 > >> configure: failed program was: > >> | /* confdefs.h */ > >> | #define PACKAGE_NAME "gobject-introspection" > >> | #define PACKAGE_TARNAME "gobject-introspection" > >> | #define PACKAGE_VERSION "0.9.12" > >> | #define PACKAGE_STRING "gobject-introspection 0.9.12" > >> | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?p= roduct=3Dglib&component=3Dintrospection" > >> | #define PACKAGE_URL "" > >> | #define PACKAGE "gobject-introspection" > >> | #define VERSION "0.9.12" > >> | #define STDC_HEADERS 1 > >> | #define HAVE_SYS_TYPES_H 1 > >> | #define HAVE_SYS_STAT_H 1 > >> | #define HAVE_STDLIB_H 1 > >> | #define HAVE_STRING_H 1 > >> | #define HAVE_MEMORY_H 1 > >> | #define HAVE_STRINGS_H 1 > >> | #define HAVE_INTTYPES_H 1 > >> | #define HAVE_STDINT_H 1 > >> | #define HAVE_UNISTD_H 1 > >> | #define HAVE_DLFCN_H 1 > >> | #define LT_OBJDIR ".libs/" > >> | #define YYTEXT_POINTER 1 > >> | #define SHLIB_SUFFIX "so" > >> | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" > >> | #define GIR_SUFFIX "gir-1.0" > >> | #define GIR_DIR "/usr/local/share/gir-1.0" > >> | #define SIZEOF_CHAR 1 > >> | #define SIZEOF_SHORT 2 > >> | #define SIZEOF_INT 4 > >> | #define SIZEOF_LONG 8 > >> | #define STDC_HEADERS 1 > >> | #define HAVE_FCNTL_H 1 > >> | #define HAVE_STDLIB_H 1 > >> | #define HAVE_STRING_H 1 > >> | #define HAVE_MEMCHR 1 > >> | #define HAVE_STRCHR 1 > >> | #define HAVE_STRSPN 1 > >> | #define HAVE_STRSTR 1 > >> | #define HAVE_STRTOL 1 > >> | #define HAVE_STRTOULL 1 > >> | /* end confdefs.h. =A0*/ > >> | #include > >> configure:13361: result: not found > >> configure:13363: error: Python headers not found > >> >>>>> > >> > >> The relevant part of Python.h is: > >> >>>>> > >> #ifdef HAVE_PTH > >> /* GNU pth user-space thread support */ > >> #include > >> #endif > >> >>>>> > >> > >> Pth lives at: > >> /usr/local/include/pth/pth.h > >> :) >=20 > What does your output looks? >=20 > # python2.7-config --includes >=20 > I have reported a bug at python@ about python2.6-config doesn't > include -L/usr/local/lib/pth. I image for -I/usr/local/include/pth > too. root(itetcu)@it/SU> /usr/ports/lang/python [15:48:24] 0 # python2.7-config --includes -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 :( so the problem does seem to be on the python side also. =20 > > As you probably have guessed, python doesn't do -Iinclude/pth/ so it ca= n't find the include. > > IMO this is something that should be fixed in the python ports instead > > of all python users if python is build by pth support. I think the > > python team has some pr's about this. >=20 > Agreed, but too bad the gobject-introspection doesn't use > 'python2.7-config --includes'. I will cook up a patch for > gobject-introspection to use 'python2.7-config --includes' this > evening. --=20 Ion-Mihai Tetcu From owner-freebsd-python@FreeBSD.ORG Mon May 2 21:54:23 2011 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E569D106566B; Mon, 2 May 2011 21:54:23 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD44E8FC14; Mon, 2 May 2011 21:54:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p42LsNex025307; Mon, 2 May 2011 21:54:23 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42LsNCr025303; Mon, 2 May 2011 21:54:23 GMT (envelope-from linimon) Date: Mon, 2 May 2011 21:54:23 GMT Message-Id: <201105022154.p42LsNCr025303@freefall.freebsd.org> To: linimon@FreeBSD.org, python@FreeBSD.org, freebsd-python@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: ports/156425: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 21:54:24 -0000 Synopsis: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. Responsible-Changed-From-To: python->freebsd-python Responsible-Changed-By: linimon Responsible-Changed-When: Mon May 2 21:54:14 UTC 2011 Responsible-Changed-Why: Canonicalize assignment. http://www.freebsd.org/cgi/query-pr.cgi?pr=156425 From owner-freebsd-python@FreeBSD.ORG Mon May 2 21:54:23 2011 Return-Path: Delivered-To: python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E569D106566B; Mon, 2 May 2011 21:54:23 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD44E8FC14; Mon, 2 May 2011 21:54:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p42LsNex025307; Mon, 2 May 2011 21:54:23 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p42LsNCr025303; Mon, 2 May 2011 21:54:23 GMT (envelope-from linimon) Date: Mon, 2 May 2011 21:54:23 GMT Message-Id: <201105022154.p42LsNCr025303@freefall.freebsd.org> To: linimon@FreeBSD.org, python@FreeBSD.org, freebsd-python@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: ports/156425: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 21:54:24 -0000 Synopsis: lang/python26: Needs to include -L/usr/local/lib/pth in python2.6-config. Responsible-Changed-From-To: python->freebsd-python Responsible-Changed-By: linimon Responsible-Changed-When: Mon May 2 21:54:14 UTC 2011 Responsible-Changed-Why: Canonicalize assignment. http://www.freebsd.org/cgi/query-pr.cgi?pr=156425 From owner-freebsd-python@FreeBSD.ORG Mon May 2 22:34:32 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFE20106566B; Mon, 2 May 2011 22:34:32 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 727A18FC13; Mon, 2 May 2011 22:34:32 +0000 (UTC) Received: by vws18 with SMTP id 18so6104817vws.13 for ; Mon, 02 May 2011 15:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=QWAvnnt88P2MarVUqKC1cJyXiBNiy3MbTkOT/FMp+lc=; b=m3lL9433zylZyRvZSi1Wvzip8uYkT6RdQoEThqfQivSLBg471H+SUmlYbf+TV8ihyf hIj0zO2mhdG7RsZHzXKqJ5vBSK6LEbozoma7fJ+4fAgaNfKnfRspageirgIaGbp0fBTQ b4xD2u4fQfgA5VZfSdvgcajwsHwiEsgVbhtwU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=oHG20DmIftDK+vtKmTuQdhUI0txSLAB7ZF97+xrZQUITTXouQOCI/89ys4JA6oFbwT h6jlcV+jwpimNsmPEU9+AcizgyeHwFCgnRCgrV90l5LnIFRcdTAdpC6np+F1S3rllmLd h+0QEZ4HQCM4LWPpVML/9xGT10Nax9QeDkoyo= MIME-Version: 1.0 Received: by 10.52.98.97 with SMTP id eh1mr5533081vdb.7.1304375670137; Mon, 02 May 2011 15:34:30 -0700 (PDT) Received: by 10.220.180.2 with HTTP; Mon, 2 May 2011 15:34:30 -0700 (PDT) In-Reply-To: <20110502155040.60948717.ionut@tetcu.info> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> <20110502155040.60948717.ionut@tetcu.info> Date: Mon, 2 May 2011 17:34:30 -0500 Message-ID: From: Jeremy Messenger To: Ion-Mihai Tetcu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gnome@freebsd.org, Koop Mast , Ion-Mihai Tetcu , python@freebsd.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 22:34:33 -0000 2011/5/2 Ion-Mihai Tetcu : > On Mon, 2 May 2011 07:02:08 -0500 > Jeremy Messenger wrote: > >> On Mon, May 2, 2011 at 6:58 AM, Koop Mast wrote: >> > On Mon, 2011-05-02 at 14:17 +0300, Ion-Mihai Tetcu wrote: >> >> Hi, >> >> >> >> >> >> Am I tripping on something known here? >> >> >> >> Trying to switch to python 2.7 my home dektop, the >> >> upgrade-site-packages: target fails on gobject-introspectio with: >> >> >>>>> >> >> checking whether Python support is requested... checking whether /usr= /local/bin/pythowith:n2.7 version >=3D 2.5... yes >> >> checking for /usr/local/bin/python2.7 version... 2.7 >> >> checking for /usr/local/bin/python2.7 platform... freebsd8 >> >> checking for /usr/local/bin/python2.7 script directory... ${prefix}/l= ib/python2.7/site-packages >> >> checking for /usr/local/bin/python2.7 extension module directory... $= {exec_prefix}/lib/python2.7/site-packages >> >> checking for headers required to compile python extensions... not fou= nd >> >> configure: error: Python headers not found >> >> =3D=3D=3D> =A0Script "configure" failed unexpectedly. >> >> >>>>> >> >> >> >> The relevant part of the log: >> >> >>>>> >> >> configure:13291: checking for /usr/local/bin/python2.7 extension modu= le directory >> >> configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages >> >> configure:13341: checking for headers required to compile python exte= nsions >> >> configure:13356: cpp -I/usr/local/include -I/usr/local/include/python= 2.7 conftest.c >> >> In file included from conftest.c:42: >> >> /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such f= ile or directory >> >> configure:13356: $? =3D 1 >> >> configure: failed program was: >> >> | /* confdefs.h */ >> >> | #define PACKAGE_NAME "gobject-introspection" >> >> | #define PACKAGE_TARNAME "gobject-introspection" >> >> | #define PACKAGE_VERSION "0.9.12" >> >> | #define PACKAGE_STRING "gobject-introspection 0.9.12" >> >> | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?= product=3Dglib&component=3Dintrospection" >> >> | #define PACKAGE_URL "" >> >> | #define PACKAGE "gobject-introspection" >> >> | #define VERSION "0.9.12" >> >> | #define STDC_HEADERS 1 >> >> | #define HAVE_SYS_TYPES_H 1 >> >> | #define HAVE_SYS_STAT_H 1 >> >> | #define HAVE_STDLIB_H 1 >> >> | #define HAVE_STRING_H 1 >> >> | #define HAVE_MEMORY_H 1 >> >> | #define HAVE_STRINGS_H 1 >> >> | #define HAVE_INTTYPES_H 1 >> >> | #define HAVE_STDINT_H 1 >> >> | #define HAVE_UNISTD_H 1 >> >> | #define HAVE_DLFCN_H 1 >> >> | #define LT_OBJDIR ".libs/" >> >> | #define YYTEXT_POINTER 1 >> >> | #define SHLIB_SUFFIX "so" >> >> | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" >> >> | #define GIR_SUFFIX "gir-1.0" >> >> | #define GIR_DIR "/usr/local/share/gir-1.0" >> >> | #define SIZEOF_CHAR 1 >> >> | #define SIZEOF_SHORT 2 >> >> | #define SIZEOF_INT 4 >> >> | #define SIZEOF_LONG 8 >> >> | #define STDC_HEADERS 1 >> >> | #define HAVE_FCNTL_H 1 >> >> | #define HAVE_STDLIB_H 1 >> >> | #define HAVE_STRING_H 1 >> >> | #define HAVE_MEMCHR 1 >> >> | #define HAVE_STRCHR 1 >> >> | #define HAVE_STRSPN 1 >> >> | #define HAVE_STRSTR 1 >> >> | #define HAVE_STRTOL 1 >> >> | #define HAVE_STRTOULL 1 >> >> | /* end confdefs.h. =A0*/ >> >> | #include >> >> configure:13361: result: not found >> >> configure:13363: error: Python headers not found >> >> >>>>> >> >> >> >> The relevant part of Python.h is: >> >> >>>>> >> >> #ifdef HAVE_PTH >> >> /* GNU pth user-space thread support */ >> >> #include >> >> #endif >> >> >>>>> >> >> >> >> Pth lives at: >> >> /usr/local/include/pth/pth.h >> >> :) >> >> What does your output looks? >> >> # python2.7-config --includes >> >> I have reported a bug at python@ about python2.6-config doesn't >> include -L/usr/local/lib/pth. I image for -I/usr/local/include/pth >> too. > > root(itetcu)@it/SU> /usr/ports/lang/python [15:48:24] 0 > =A0# python2.7-config --includes > -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 > > :( so the problem does seem to be on the python side also. Yep. I have committed a fix in gobject-introspection by use 'python${PYTHON_VERSION}-config --includes' instead of static version. Cheers, Mezz >> > As you probably have guessed, python doesn't do -Iinclude/pth/ so it c= an't find the include. >> > IMO this is something that should be fixed in the python ports instead >> > of all python users if python is build by pth support. I think the >> > python team has some pr's about this. >> >> Agreed, but too bad the gobject-introspection doesn't use >> 'python2.7-config --includes'. I will cook up a patch for >> gobject-introspection to use 'python2.7-config --includes' this >> evening. > > > -- > Ion-Mihai Tetcu > --=20 mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org From owner-freebsd-python@FreeBSD.ORG Wed May 4 12:10:19 2011 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1E051065678; Wed, 4 May 2011 12:10:19 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C7CC78FC1F; Wed, 4 May 2011 12:10:19 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p44CAJ4g014326; Wed, 4 May 2011 12:10:19 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p44CAJRO014313; Wed, 4 May 2011 12:10:19 GMT (envelope-from edwin) Date: Wed, 4 May 2011 12:10:19 GMT Message-Id: <201105041210.p44CAJRO014313@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/156811: lang/python32 has lower priority then lang/python31 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2011 12:10:20 -0000 Synopsis: lang/python32 has lower priority then lang/python31 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Wed May 4 12:10:18 UTC 2011 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=156811