From owner-freebsd-python@FreeBSD.ORG Sun Mar 18 16:08:59 2012 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 78731106566B; Sun, 18 Mar 2012 16:08:59 +0000 (UTC) (envelope-from mel@datakitty.lan.rachie.is-a-geek.net) Received: from datakitty.lan.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 229E78FC08; Sun, 18 Mar 2012 16:08:58 +0000 (UTC) Received: from datakitty.lan.rachie.is-a-geek.net (localhost [127.0.0.1]) by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5) with ESMTP id q2IG8vLS022338; Sun, 18 Mar 2012 08:08:57 -0800 (AKDT) (envelope-from mel@datakitty.lan.rachie.is-a-geek.net) Received: (from mel@localhost) by datakitty.lan.rachie.is-a-geek.net (8.14.5/8.14.5/Submit) id q2IG8vo0022337; Sun, 18 Mar 2012 08:08:57 -0800 (AKDT) (envelope-from mel) Date: Sun, 18 Mar 2012 08:08:57 -0800 (AKDT) Message-Id: <201203181608.q2IG8vo0022337@datakitty.lan.rachie.is-a-geek.net> To: FreeBSD-gnats-submit@freebsd.org From: Mel Flynn X-send-pr-version: 3.113 X-GNATS-Notify: Cc: python@freebsd.org Subject: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mel Flynn List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Mar 2012 16:08:59 -0000 >Submitter-Id: current-users >Originator: Mel Flynn >Organization: >Confidential: no >Synopsis: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ >Severity: serious >Priority: high >Category: ports >Class: sw-bug >Release: FreeBSD 8.2-STABLE amd64 >Environment: System: FreeBSD datakitty.lan.rachie.is-a-geek.net 8.2-STABLE FreeBSD 8.2-STABLE #6 r230977: Sun Feb 5 06:20:11 AKST 2012 mel@datakitty.lan.rachie.is-a-geek.net:/data/obj/data/RELENG_8/src/sys/GENERIC amd64 >Description: Incompatibilities with python 3.x cause several commands in bsd.python.mk to fail. The net result is that when python 3.1+ is installed, any port setting USE_PYTHON will pull in the default python version and several variables that should be available to dependent ports are not. >How-To-Repeat: Install lang/python31 (uninstall lang/python27 if installed). make -C /usr/ports/devel/talloc -V BUILD_DEPENDS >Fix: --- fix-python-3.x.patch begins here --- Index: Mk/bsd.python.mk =================================================================== RCS file: /home/ncvs/ports/Mk/bsd.python.mk,v retrieving revision 1.142 diff -u -r1.142 bsd.python.mk --- Mk/bsd.python.mk 7 Nov 2011 12:40:53 -0000 1.142 +++ Mk/bsd.python.mk 18 Mar 2012 14:39:38 -0000 @@ -264,7 +268,7 @@ .if !defined(PYTHON_DEFAULT_VERSION) . if exists(${LOCALBASE}/bin/python) _PYTHON_DEFAULT_VERSION!= (${LOCALBASE}/bin/python -c \ - 'import sys; print sys.version[:3]' 2> /dev/null \ + 'import sys; print(sys.version[:3])' 2> /dev/null \ || ${ECHO_CMD} ${_PYTHON_PORTBRANCH}) | ${TAIL} -1 . else _PYTHON_DEFAULT_VERSION= ${_PYTHON_PORTBRANCH} @@ -336,7 +340,7 @@ PYTHON_VERSION?= python${_PYTHON_VERSION} PYTHON_CMD?= ${_PYTHON_CMD} .if !defined(PYTHONBASE) -PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print sys.prefix' \ +PYTHONBASE!= (${PYTHON_CMD} -c 'import sys; print(sys.prefix)' \ 2> /dev/null || ${ECHO_CMD} ${LOCALBASE}) | ${TAIL} -1 .endif DEPENDS_ARGS+= PYTHON_VERSION=${PYTHON_VERSION} @@ -345,8 +349,8 @@ # should point to some other version we have installed, according to the port USE_PYTHON # specification .if !defined(PYTHON_DEFAULT_PORTVERSION) || (${PYTHON_VERSION} != ${PYTHON_DEFAULT_VERSION}) -_PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import string, sys; \ - print string.split(sys.version)[0].replace("b",".b")' 2> /dev/null) | ${TAIL} -1 +_PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import sys; \ + print(sys.version.split()[0].replace("b",".b"))' 2> /dev/null) | ${TAIL} -1 .if !defined(PYTHON_NO_DEPENDS) && !empty(_PYTHON_PORTVERSION) PYTHON_PORTVERSION= ${_PYTHON_PORTVERSION} .endif @@ -413,10 +417,10 @@ PYTHON_PORTSDIR= # empty PYTHON_NO_DEPENDS= YES PYTHON_REL!= ${PYTHON_CMD} -c 'import sys; h = "%x" % sys.hexversion; \ - print h[0]+h[2]+h[4]' + print(h[0]+h[2]+h[4])' PYTHON_SUFFIX!= ${PYTHON_CMD} -c 'import sys; h = "%x" % sys.hexversion; \ - print h[0]+h[2]' -PYTHON_VER!= ${PYTHON_CMD} -c 'import sys; print sys.version[:3]' + print(h[0]+h[2])' +PYTHON_VER!= ${PYTHON_CMD} -c 'import sys; print(sys.version[:3])' .else check-makevars:: --- fix-python-3.x.patch ends here --- From owner-freebsd-python@FreeBSD.ORG Sun Mar 18 16:10:27 2012 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 0E3641065670; Sun, 18 Mar 2012 16:10:27 +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 DA1088FC16; Sun, 18 Mar 2012 16:10:26 +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 q2IGAQBv046434; Sun, 18 Mar 2012 16:10:26 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2IGAQiI046429; Sun, 18 Mar 2012 16:10:26 GMT (envelope-from edwin) Date: Sun, 18 Mar 2012 16:10:26 GMT Message-Id: <201203181610.q2IGAQiI046429@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/166226: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ 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, 18 Mar 2012 16:10:27 -0000 Synopsis: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Sun Mar 18 16:10:26 UTC 2012 Responsible-Changed-Why: bsd.python.mk is freebsd-python territory (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=166226 From owner-freebsd-python@FreeBSD.ORG Mon Mar 19 11:07:20 2012 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 16938106566B for ; Mon, 19 Mar 2012 11:07:20 +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 DCF308FC24 for ; Mon, 19 Mar 2012 11:07:19 +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 q2JB7JDZ033681 for ; Mon, 19 Mar 2012 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2JB7JmS033679 for freebsd-python@FreeBSD.org; Mon, 19 Mar 2012 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 19 Mar 2012 11:07:19 GMT Message-Id: <201203191107.q2JB7JmS033679@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, 19 Mar 2012 11:07:20 -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/166226 python [patch] Mk/bsd.python.mk: Fix python -c commands for p f ports/166142 python [PATCH] www/py-requests: update to 0.10.8 o ports/165980 python New port: finance/py-vatnumber Python module to valida f ports/165545 python [patch]: net-mgmt/collectd5 doesn't compile against la o ports/165451 python lang/python27 has incorrect CFLAGS when building with o ports/165359 python lang/python27 fails to create package on world WITHOUT o ports/163467 python Ports using python 2.7 and "waf" intermittently hang o o ports/163112 python Updates bsd.python.mk to support Zope 2.11, 2.13 o ports/163063 python [PATCH] fix for ports-mgmt/portbuilder o ports/162421 python lang/python32 fails to build (undefined reference to ` o ports/160717 python port: lang/python27 causing other ports to hang during o ports/159215 python Mk/bsd.python.mk: PYTHON_VERSION is ignored o ports/156759 python [patch] lang/python: kevent does not accept KQ_NOTE_EX o ports/156425 python lang/python26: Needs to include -L/usr/local/lib/pth i 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/155526 python [PATCH] devel/py-elementtree: ignore if python >= 2.5 f 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/152224 python [patch] fix installed permissions for lang/python27 o ports/151534 python lang/python26 + WITH_PTH doesn't install correctly o ports/149167 python lang/python26 fails to build _ctypes on Sheevaplug (AR 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 s ports/118301 python [patch] devel/py-setuptools easy-install.pth contents 31 problems total. From owner-freebsd-python@FreeBSD.ORG Mon Mar 19 12:00:33 2012 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 630D010656B9 for ; Mon, 19 Mar 2012 12:00:33 +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 341798FC0C for ; Mon, 19 Mar 2012 12:00:33 +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 q2JC0WOB085622 for ; Mon, 19 Mar 2012 12:00:33 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2JC0Wea085621; Mon, 19 Mar 2012 12:00:32 GMT (envelope-from gnats) Date: Mon, 19 Mar 2012 12:00:32 GMT Message-Id: <201203191200.q2JC0Wea085621@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Mel Flynn Cc: Subject: Re: ports/163467: Ports using python 2.7 and " waf" intermittently hang on build/installation X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mel Flynn List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2012 12:00:33 -0000 The following reply was made to PR ports/163467; it has been noted by GNATS. From: Mel Flynn To: bug-followup@FreeBSD.org, janm@transactionware.com Cc: Subject: Re: ports/163467: Ports using python 2.7 and "waf" intermittently hang on build/installation Date: Mon, 19 Mar 2012 12:54:25 +0100 Hi Jan, if you have python built with semaphores could you reinstall without them and see if you can still reproduce the problem? If you haven't, please do show: make -C /usr/ports/lang/python27 show-config -- Mel From owner-freebsd-python@FreeBSD.ORG Tue Mar 20 06:10:10 2012 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 E488F1065670 for ; Tue, 20 Mar 2012 06:10:10 +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 CE81C8FC08 for ; Tue, 20 Mar 2012 06:10:10 +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 q2K6AAYW098357 for ; Tue, 20 Mar 2012 06:10:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2K6AAZT098355; Tue, 20 Mar 2012 06:10:10 GMT (envelope-from gnats) Date: Tue, 20 Mar 2012 06:10:10 GMT Message-Id: <201203200610.q2K6AAZT098355@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Olivier Duchateau Cc: Subject: Re: ports/166142: [PATCH] www/py-requests: update to 0.10.8 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Olivier Duchateau List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 06:10:11 -0000 The following reply was made to PR ports/166142; it has been noted by GNATS. From: Olivier Duchateau To: bug-followup@freebsd.org Cc: Subject: Re: ports/166142: [PATCH] www/py-requests: update to 0.10.8 Date: Tue, 20 Mar 2012 07:08:33 +0100 Thank you for your work. It's ok, but I prefer to use find_packages in setup.py file. Furthemore, requests work with Python 3.x, so I adjusted Makefile. Update, with improvement, http://www.freebsd.org/cgi/query-pr.cgi?pr=3D1662= 52 2012/3/15 Edwin Groothuis : > Maintainer of www/py-requests, > > Please note that PR ports/166142 has just been submitted. > > If it contains a patch for an upgrade, an enhancement or a bug fix > you agree on, reply to this email stating that you approve the patch > and a committer will take care of it. > > The full text of the PR can be found at: > =A0 =A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/166142 > > -- > Edwin Groothuis via the GNATS Auto Assign Tool > edwin@FreeBSD.org --=20 olivier From owner-freebsd-python@FreeBSD.ORG Tue Mar 20 13:24:20 2012 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 C151B106564A; Tue, 20 Mar 2012 13:24:20 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [IPv6:2a02:6b8:0:801::3]) by mx1.freebsd.org (Postfix) with ESMTP id B43618FC18; Tue, 20 Mar 2012 13:24:16 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward13.mail.yandex.net (Yandex) with ESMTP id 3DA59141DFB; Tue, 20 Mar 2012 17:24:15 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1332249855; bh=dUafiXFDGlO8fOU0FRZ/gsPDu4O8+/3UxcoY8kh71jk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=RTPIBoIc0Wg1FueHo3qeDf4zwWBS/F72ubUZbyjral9De50ZQ+5uHV6u9s5cq2U3i 3YGLnnj8+rJrJbzLuccnGAT5UK6k/4THYF1mwQiv709n9wgvgATKvuKiAeQQYmoo+Y R47AjHh9zwmYrKd0+kSbhzIKfwd+dXV5sk9R77IU= Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id E917B1B60575; Tue, 20 Mar 2012 17:24:14 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1332249855; bh=dUafiXFDGlO8fOU0FRZ/gsPDu4O8+/3UxcoY8kh71jk=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=RTPIBoIc0Wg1FueHo3qeDf4zwWBS/F72ubUZbyjral9De50ZQ+5uHV6u9s5cq2U3i 3YGLnnj8+rJrJbzLuccnGAT5UK6k/4THYF1mwQiv709n9wgvgATKvuKiAeQQYmoo+Y R47AjHh9zwmYrKd0+kSbhzIKfwd+dXV5sk9R77IU= Received: from unknown (unknown [213.27.65.65]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id OD7usaw0-OE7KolOM; Tue, 20 Mar 2012 17:24:14 +0400 Message-ID: <4F6884F2.3000504@yandex.ru> Date: Tue, 20 Mar 2012 17:24:02 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Mel Flynn References: <201203181608.q2IG8vo0022337@datakitty.lan.rachie.is-a-geek.net> In-Reply-To: <201203181608.q2IG8vo0022337@datakitty.lan.rachie.is-a-geek.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: python@freebsd.org, bug-followup@FreeBSD.org, portsmgr@FreeBSD.org Subject: Re: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ 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: Tue, 20 Mar 2012 13:24:20 -0000 Mel Flynn wrote on 18.03.2012 20:08: >> Submitter-Id: current-users >> Originator: Mel Flynn >> Organization: >> Confidential: no >> Synopsis: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ Hi! Python print statement allows to use it with brackets since 2.4 (at least, i didn't checked < 2.4) so this change will work with any python version, that is in ports at the moment. For 3.x it will fix the issue, for 2.x it's just noop. So it's safe to commit as for me. I rebuilt all my py-stuff with this patch (portmaster py27-) and all was fine. I also tested updated commands with python 2.4.3 (on RHEL) and they works too. So what to do next? Can I just commit this or exp-run is needed? Does portmgr@ approves? -- Regards, Ruslan Tinderboxing kills... the drives. From owner-freebsd-python@FreeBSD.ORG Tue Mar 20 14:47:24 2012 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 F3E301065674; Tue, 20 Mar 2012 14:47: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 C6A978FC08; Tue, 20 Mar 2012 14:47:23 +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 q2KElNmc016939; Tue, 20 Mar 2012 14:47:23 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2KElNV5016935; Tue, 20 Mar 2012 14:47:23 GMT (envelope-from linimon) Date: Tue, 20 Mar 2012 14:47:23 GMT Message-Id: <201203201447.q2KElNV5016935@freefall.freebsd.org> To: duchateau.olivier@gmail.com, olgeni@freebsd.org, linimon@FreeBSD.org, freebsd-python@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: ports/166142: [PATCH] www/py-requests: update to 0.10.8 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: Tue, 20 Mar 2012 14:47:24 -0000 Synopsis: [PATCH] www/py-requests: update to 0.10.8 State-Changed-From-To: feedback->open State-Changed-By: linimon State-Changed-When: Tue Mar 20 14:47:04 UTC 2012 State-Changed-Why: Maintainer has replied but with different solution. http://www.freebsd.org/cgi/query-pr.cgi?pr=166142 From owner-freebsd-python@FreeBSD.ORG Tue Mar 20 17:40:11 2012 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 588C41065678 for ; Tue, 20 Mar 2012 17:40:11 +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 29BCE8FC18 for ; Tue, 20 Mar 2012 17:40:11 +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 q2KHeAeR074315 for ; Tue, 20 Mar 2012 17:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2KHeA9x074314; Tue, 20 Mar 2012 17:40:10 GMT (envelope-from gnats) Date: Tue, 20 Mar 2012 17:40:10 GMT Message-Id: <201203201740.q2KHeA9x074314@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Mel Flynn Cc: Subject: Re: ports/165545: [patch]: net-mgmt/collectd5 doesn't compile against lang/python[23]* X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mel Flynn List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Mar 2012 17:40:11 -0000 The following reply was made to PR ports/165545; it has been noted by GNATS. From: Mel Flynn To: bug-followup@FreeBSD.org, pgollucci@FreeBSD.org Cc: Subject: Re: ports/165545: [patch]: net-mgmt/collectd5 doesn't compile against lang/python[23]* Date: Tue, 20 Mar 2012 18:37:18 +0100 This is a multi-part message in MIME format. --------------000606070509010808020602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, could you drop attached in place of the port's files/patch-configure.in to see if the app still works? It changes static to dynamic linking, fixes build for me, but since I don't use the application I can't tell if it removes functionality. -- Mel --------------000606070509010808020602 Content-Type: text/plain; name="net-mgmt__collectd5__files__patch-configure.in" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="net-mgmt__collectd5__files__patch-configure.in" --- configure.in.orig 2011-10-14 12:49:49.000000000 -0800 +++ configure.in 2012-03-20 08:09:25.000000000 -0800 @@ -98,7 +98,7 @@ fi # Where to install .pc files. -pkgconfigdir="${libdir}/pkgconfig" +pkgconfigdir="${prefix}/libdata/pkgconfig" AC_SUBST(pkgconfigdir) # Check for standards compliance mode @@ -1745,9 +1745,6 @@ [with_libgcrypt="yes"], [with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"]) - if test "$with_libgcrypt" != "no"; then - AM_PATH_LIBGCRYPT(1:1.2.0,,with_libgcrypt="no (version 1.2.0+ required)") - fi fi CPPFLAGS="$SAVE_CPPFLAGS" @@ -3165,7 +3162,7 @@ if test "x$with_python" = "xyes" then AC_MSG_CHECKING([for Python LIBS]) - python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0))" | "$with_python_prog" 2>&1` + python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_var(\"LINKFORSHARED\")+\" -L\"+distutils.sysconfig.get_config_vars(\"LIBDIR\").__getitem__(0)+\" -l\"+distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0).replace(\"lib\", \"\").replace(\".a\", \"\"))" | "$with_python_prog" 2>&1` python_config_status=$? if test "$python_config_status" -ne 0 || test "x$python_library_flags" = "x" @@ -3180,7 +3177,7 @@ if test "x$with_python" = "xyes" then LDFLAGS="-L$python_library_path $LDFLAGS" - LIBS="$python_library_flags $LIBS" + LIBS="$python_library_flags $LIBS -lm -lpthread -lutil" AC_CHECK_FUNC(PyObject_CallFunction, [with_python="yes"], --------------000606070509010808020602-- From owner-freebsd-python@FreeBSD.ORG Wed Mar 21 00:41:03 2012 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CC925106566B; Wed, 21 Mar 2012 00:41:03 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (pancho.soaustin.net [76.74.250.40]) by mx1.freebsd.org (Postfix) with ESMTP id A8B268FC12; Wed, 21 Mar 2012 00:41:03 +0000 (UTC) Received: by mail.soaustin.net (Postfix, from userid 502) id 244B256209; Tue, 20 Mar 2012 19:41:03 -0500 (CDT) Date: Tue, 20 Mar 2012 19:41:03 -0500 From: Mark Linimon To: Ruslan Mahmatkhanov Message-ID: <20120321004103.GA30795@lonesome.com> References: <201203181608.q2IG8vo0022337@datakitty.lan.rachie.is-a-geek.net> <4F6884F2.3000504@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F6884F2.3000504@yandex.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Mel Flynn , python@freebsd.org, bug-followup@FreeBSD.org, portsmgr@FreeBSD.org Subject: Re: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ 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, 21 Mar 2012 00:41:03 -0000 I'd kind of like to see it survive an -exp run. However, it can be combined with something else. (I am trying to help us catch up.) mcl From owner-freebsd-python@FreeBSD.ORG Wed Mar 21 08:13:03 2012 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5FE501065673; Wed, 21 Mar 2012 08:13:03 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33F3C8FC16; Wed, 21 Mar 2012 08:13:03 +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 q2L8D3kp013508; Wed, 21 Mar 2012 08:13:03 GMT (envelope-from rm@freefall.freebsd.org) Received: (from rm@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2L8D3Xd013504; Wed, 21 Mar 2012 08:13:03 GMT (envelope-from rm) Date: Wed, 21 Mar 2012 08:13:03 GMT Message-Id: <201203210813.q2L8D3Xd013504@freefall.freebsd.org> To: rm@FreeBSD.org, freebsd-python@FreeBSD.org, portmgr@FreeBSD.org From: rm@FreeBSD.org Cc: Subject: Re: ports/166226: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ 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, 21 Mar 2012 08:13:03 -0000 Synopsis: [patch] Mk/bsd.python.mk: Fix python -c commands for python 3+ Responsible-Changed-From-To: freebsd-python->portmgr Responsible-Changed-By: rm Responsible-Changed-When: Wed Mar 21 08:13:02 UTC 2012 Responsible-Changed-Why: Please do an exp-run with this patch. Thank you http://www.freebsd.org/cgi/query-pr.cgi?pr=166226 From owner-freebsd-python@FreeBSD.ORG Thu Mar 22 12:50:11 2012 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 A7883106566B for ; Thu, 22 Mar 2012 12:50:11 +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 713C68FC08 for ; Thu, 22 Mar 2012 12:50:11 +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 q2MCoB5R051876 for ; Thu, 22 Mar 2012 12:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2MCoBek051875; Thu, 22 Mar 2012 12:50:11 GMT (envelope-from gnats) Date: Thu, 22 Mar 2012 12:50:11 GMT Message-Id: <201203221250.q2MCoBek051875@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Jan Mikkelsen Cc: Subject: Re: ports/163467: Ports using python 2.7 and " waf" intermittently hang on build/installation X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jan Mikkelsen List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 12:50:11 -0000 The following reply was made to PR ports/163467; it has been noted by GNATS. From: Jan Mikkelsen To: Mel Flynn Cc: bug-followup@FreeBSD.org Subject: Re: ports/163467: Ports using python 2.7 and "waf" intermittently hang on build/installation Date: Thu, 22 Mar 2012 23:36:28 +1100 Hi Mel, Sorry about taking so long to get back to you. I have python installed without WITH_SEM already. The build process is = logged and I have the complete system checked into our local Perforce = server. These are the arguments to exec on the last build: Executing, with stdin from /dev/null: arg[0] =3D '/usr/sbin/chroot' arg[1] =3D '/home/janm/p4/freebsd-image-std-2011.1/work/build-chroot' arg[2] =3D '/usr/bin/env' arg[3] =3D '-' arg[4] =3D = 'PATH=3D/sbin:/bin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/= X11R6/bin' arg[5] =3D '/bin/sh' arg[6] =3D '-cxe' arg[7] =3D ' cd /usr/ports/lang/python27 env NO_MTREE=3D"true" make package = WRKDIRPREFIX=3D/ports-work = PKGFILE=3D'/ports-packages/python27-2.7.2_3.tbz' BATCH=3Dyes = NODEPENDS=3Dyes PACKAGE_BUILDING=3Dyes=20 ' I also had the output to stdout and stderr from that build and noticed = that the configure output was still showing that Posix semaphores were = in use. Looking at the makefile, I see this: post-patch: .if defined(WITH_SEM) .if ${OSVERSION} >=3D 701106 @cd ${WRKSRC} && ${PATCH} ${PATCH_ARGS} < = ${PATCHDIR}/extra-patch-setup.py .endif .endif That patch only disables HAVE_SEM_OPEN and HAVE_SEM_TIMEDWAIT when = WITH_SEM is not set on FreeBSD 6 and earlier. In the build log I see = (without WITH_SEM set): checking for sem_open... yes checking for sem_timedwait... yes The interesting test would be to explicitly disable HAVE_SEM_OPEN and = HAVE_SEM_TIMEDWAIT in the python build. I'll set up a test and see if we = have any builds hang. Have you discovered anything new since your email? Thanks, Jan Mikkelsen On 19/03/2012, at 10:54 PM, Mel Flynn wrote: > Hi Jan, >=20 > if you have python built with semaphores could you reinstall without > them and see if you can still reproduce the problem? > If you haven't, please do show: > make -C /usr/ports/lang/python27 show-config >=20 > --=20 > Mel From owner-freebsd-python@FreeBSD.ORG Fri Mar 23 00:41:30 2012 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28D461065673; Fri, 23 Mar 2012 00:41:30 +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 F07398FC0A; Fri, 23 Mar 2012 00:41:29 +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 q2N0fTSe049319; Fri, 23 Mar 2012 00:41:29 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2N0fTA3049315; Fri, 23 Mar 2012 00:41:29 GMT (envelope-from edwin) Date: Fri, 23 Mar 2012 00:41:29 GMT Message-Id: <201203230041.q2N0fTA3049315@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/166328: [MAINTAINER UPDATE] update math/py-matplotlib to 1.1.0 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: Fri, 23 Mar 2012 00:41:30 -0000 Synopsis: [MAINTAINER UPDATE] update math/py-matplotlib to 1.1.0 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Fri Mar 23 00:41:29 UTC 2012 Responsible-Changed-Why: freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=166328 From owner-freebsd-python@FreeBSD.ORG Fri Mar 23 00:41:38 2012 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0B381065677; Fri, 23 Mar 2012 00:41:38 +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 8EBC68FC1D; Fri, 23 Mar 2012 00:41:38 +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 q2N0fcb8049400; Fri, 23 Mar 2012 00:41:38 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2N0fcsF049396; Fri, 23 Mar 2012 00:41:38 GMT (envelope-from edwin) Date: Fri, 23 Mar 2012 00:41:38 GMT Message-Id: <201203230041.q2N0fcsF049396@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/166329: [MAINTAINER UPDATE] update math/py-matplotlib to 1.1.0 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: Fri, 23 Mar 2012 00:41:38 -0000 Synopsis: [MAINTAINER UPDATE] update math/py-matplotlib to 1.1.0 Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Fri Mar 23 00:41:38 UTC 2012 Responsible-Changed-Why: freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=166329