From owner-freebsd-python@FreeBSD.ORG Sun Mar 27 13:20:22 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 CA8A7106566B; Sun, 27 Mar 2011 13:20:22 +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 A14A18FC15; Sun, 27 Mar 2011 13:20:22 +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 p2RDKMo9007566; Sun, 27 Mar 2011 13:20:22 GMT (envelope-from edwin@freefall.freebsd.org) Received: (from edwin@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2RDKMrF007562; Sun, 27 Mar 2011 13:20:22 GMT (envelope-from edwin) Date: Sun, 27 Mar 2011 13:20:22 GMT Message-Id: <201103271320.p2RDKMrF007562@freefall.freebsd.org> To: edwin@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, freebsd-python@FreeBSD.org From: edwin@FreeBSD.org Cc: Subject: Re: ports/155970: [PATCH] lang/python: speed up upgrade-site-packages 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, 27 Mar 2011 13:20:22 -0000 Synopsis: [PATCH] lang/python: speed up upgrade-site-packages Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python Responsible-Changed-By: edwin Responsible-Changed-When: Sun Mar 27 13:20:22 UTC 2011 Responsible-Changed-Why: Over to maintainer (via the GNATS Auto Assign Tool) http://www.freebsd.org/cgi/query-pr.cgi?pr=155970 From owner-freebsd-python@FreeBSD.ORG Sun Mar 27 13:46:12 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 63719106566C for ; Sun, 27 Mar 2011 13:46:12 +0000 (UTC) (envelope-from kimelto@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id EE98D8FC13 for ; Sun, 27 Mar 2011 13:46:11 +0000 (UTC) Received: by wyf23 with SMTP id 23so2572520wyf.13 for ; Sun, 27 Mar 2011 06:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:to:subject:from:cc :x-send-pr-version:x-gnats-notify; bh=UDWBhTDyiDYaBMT5wHSJWeKnuNILytUH6T9IWeGWyyo=; b=g2hrpGNv8ViBVa0kcsZfKS7C+6cH95MV/h54OaKa12r/NYIJih/7L1yltyO59ct9bj GKIZAVrPYyfPDsFRTiZ7EsGrMo3s91w+ZFxKwKlSF06bfTf7po18HT4bISD1/yg3ul8q VYObB6LmgiV79u9ueKlbMY3Y7JjGBa8H/yYYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:to:subject:from:cc:x-send-pr-version:x-gnats-notify; b=AmKuyR5fNGL6xHcoTp0CPihJjlHw++kXz7pyHvPdT5ih8U2Sg/hfrj82/Gc0j9Qba4 H7zihhCBtBooi686HSLr8V28uPrp6Vz0qKloO6TXsmH/svFrZAFmRiS2smtWft/NAtuu UY5N6m1s/js4DkObA6acfuGRDYxNwWjU12iwc= Received: by 10.216.144.166 with SMTP id n38mr1729291wej.75.1301231810678; Sun, 27 Mar 2011 06:16:50 -0700 (PDT) Received: from localhost (cpc1-oxfd15-0-0-cust230.4-3.cable.virginmedia.com [82.24.248.231]) by mx.google.com with ESMTPS id l24sm1474488wbc.30.2011.03.27.06.16.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2011 06:16:49 -0700 (PDT) Message-ID: <4d8f38c1.581ce30a.1df5.63c3@mx.google.com> Date: Sun, 27 Mar 2011 06:16:49 -0700 (PDT) To: FreeBSD-gnats-submit@freebsd.org From: Julien Laffaye X-send-pr-version: 3.113 X-GNATS-Notify: Cc: python@FreeBSD.org Subject: [PATCH] lang/python: speed up upgrade-site-packages 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, 27 Mar 2011 13:46:12 -0000 >Submitter-Id: current-users >Originator: Julien Laffaye >Organization: >Confidential: no >Synopsis: [PATCH] lang/python: speed up upgrade-site-packages >Severity: non-critical >Priority: low >Category: ports >Class: change-request >Release: FreeBSD 8.2-RELEASE amd64 >Environment: System: FreeBSD chulak.lan 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 >Description: Instead of asking each file in lib/python which package it comes from, ask each package if it has a file in lib/python. This speed things up significantly on my system. Port maintainer (python@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- python-2.7,2.patch begins here --- diff -ruN --exclude=CVS /usr/ports/lang/python.orig/Makefile /usr/ports/lang/python/Makefile --- /usr/ports/lang/python.orig/Makefile 2011-03-26 13:17:41.000000000 +0000 +++ /usr/ports/lang/python/Makefile 2011-03-27 14:09:30.000000000 +0100 @@ -25,15 +25,9 @@ # Major upgrade support PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade -PKG_WHICH_CMD= ${LOCALBASE}/sbin/pkg_which -XARGS_CMD= ${XARGS} -0 .if defined(USE_PORTMASTER) PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portmaster -PORTUPGRADE_ARGS?= "" -PKG_WHICH_CMD= /usr/sbin/pkg_info -qW -JOBS= ${SYSCTL} -n kern.smp.cpus -XARGS_CMD= ${XARGS} -L 1 -0 -P $$(${JOBS}) .endif upgrade-site-packages: @@ -42,22 +36,21 @@ ${FALSE}; \ fi - @for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ - if [ -d ${PREFIX}/lib/python$$ver ]; then \ - UPD=`${FIND} ${PREFIX}/lib/python$$ver \ - -type f -print0 | \ - ${XARGS_CMD} ${PKG_WHICH_CMD} | \ - ${GREP} -Fv '?' | \ - ${EGREP} -v '^python2?[0-5]?-2' | \ - ${SORT} -u`; \ - if [ "$$UPD" ]; then \ - if [ -n ${PORTUPGRADE_ARGS} ]; then \ - ${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $$UPD; \ - else \ - ${PORTUPGRADE_CMD} -f $$UPD; \ - fi; \ - fi; \ + @GREP_ARGS="-q"; \ + for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \ + GREP_ARGS="$${GREP_ARGS} -e lib/python$$ver"; \ + done; \ + UPD=""; \ + for pkg in `${PKG_INFO} -Ea`; do \ + ${PKG_INFO} -L $${pkg} | ${GREP} $${GREP_ARGS} && \ + UPD="$${UPD} $${pkg}"; \ + done; \ + if [ "$${UPD}" ]; then \ + if [ -n ${PORTUPGRADE_ARGS} ]; then \ + ${PORTUPGRADE_CMD} ${PORTUPGRADE_ARGS} -f $${UPD}; \ + else \ + ${PORTUPGRADE_CMD} -f $${UPD}; \ fi; \ - done \ + fi; \ .include --- python-2.7,2.patch ends here --- From owner-freebsd-python@FreeBSD.ORG Sun Mar 27 17:20:56 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 B5E3B106564A; Sun, 27 Mar 2011 17:20:56 +0000 (UTC) (envelope-from lwhsu@FreeBSD.cs.nctu.edu.tw) Received: from FreeBSD.cs.nctu.edu.tw (FreeBSD.cs.nctu.edu.tw [140.113.17.209]) by mx1.freebsd.org (Postfix) with ESMTP id 7AC168FC16; Sun, 27 Mar 2011 17:20:56 +0000 (UTC) Received: by FreeBSD.cs.nctu.edu.tw (Postfix, from userid 1058) id 6DD2861D60; Mon, 28 Mar 2011 01:20:55 +0800 (CST) Date: Mon, 28 Mar 2011 01:20:55 +0800 From: Li-Wen Hsu To: wen heping Message-ID: <20110327172055.GA24257@FreeBSD.cs.nctu.edu.tw> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Nicola Vitale , Wen Heping , python@freebsd.org, Martin Wilke Subject: Re: about py3 relate ports 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, 27 Mar 2011 17:20:56 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 27, 2011 at 00:52:49 +0800, wen heping wrote: > Hi, all: >=20 > After python-2.7 was set as default python version, now it is the > time to think > about python-3.x. >=20 > Although we set "USE_PYTHON=3Dyes' in python relate ports, but we kno= w many of > it could not build with python3, especially those install with > easy_install since setuptools > could not build with python3. >=20 > There are two ways to resolve it: > 1 Modify the bsd.python.mk and every python port's Makefile. > 2 create a new bsd.python3.mk and create new port for those > python3-enable applications. >=20 > I prefer the second way which is similar to Debian, because if we > choose the first way, > it is a huge work of it, we have to modify bsd.python.mk and modify > every python relate port's > Makefile and plist, while the second way is much more simpler. >=20 > I create bsd.python3.mk which is revised from bsd.python.mk and > some new python3 ports. > I attached them all here. >=20 > Any comments ? I admit due to my busy day job, I currently have no time to think about this issue very deeply, here are some thought currently on my mind: How about changing the package manager from setuptools/easy_install to use distribute/pip? And about the ports fails with Python 3, well, firstly I think it's not really a big issue, it only happens on the system set Python 3 as default. One should know what will happen when setting PYTHON_VERSION in make.conf. Keeping USE_PYTHON=3Dyes in the Makefile is acceptable (to me) since when using Python 3, we should already know some python modules will not work, and it's not the default setting of ports system, besides, the biggest thing need to think about would be "how to make this module Python 3 ready" After achieve that, USE_PYTHON=3Dyes is perfect. :) And for knowing or getting reports about some ports are not Python ready, I think modifying Makefile to USE_PYTHON=3D2.4-2.7 is OK, since it explicit= ly states this port does not Python 3 compatible. Perhaps we can add a syntax like: USE_PYTHON=3D2.x or USE_PYTHON=3D2 However, Python 2.7.x looks like the last releases of Python 2, so we may not bothering thinking about this. Please note this is not conflicting with your 2nd option (entirely), I just don't want to maintain another .mk file. Creating Python 3 ports is fine, which gives us a pre-built binary package on ftp, that's good and we already have some, like databases/py25-bsddb . The only thing need to take care is setting CONFLICTS in Makefile(s) correctly. Some py-* ports install files under bin/, not all in ${PYTHON_SITELIBDIR} Best, Li-Wen --=20 Li-Wen Hsu http://lwhsu.org --envbJBWh7q8WU6mo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) iEYEARECAAYFAk2PcfMACgkQQWsOOSiXsijo2ACfTfzwn3BW+rwqDS2bNa392l2R HFYAnRKV3wY0QvlnToBOGfEO0OdcNtVR =Sxxt -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- From owner-freebsd-python@FreeBSD.ORG Mon Mar 28 01:10:56 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 34A94106566C; Mon, 28 Mar 2011 01:10:55 +0000 (UTC) (envelope-from wenheping@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD6B8FC0C; Mon, 28 Mar 2011 01:10:55 +0000 (UTC) Received: by iyj12 with SMTP id 12so3878916iyj.13 for ; Sun, 27 Mar 2011 18:10:54 -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=eaZKB2ClWtMN/ITzKdTPgqopz2+HlQBvjJftn43UGEk=; b=AEdy/nv4+CuUrHLY2nMsSID6k5cKdH8hT3fd5d2kuIdm9GaWyDV4eirpqPS+5A7fq3 S4v1rhE/S61WEymrTujgx6ovCKtB7ivCIsvaaJ9zsUuJCLWQgTxHj5Mqg/aJ6V8iy78M k+Z1sga869FxJCnrMMUhHK5TGNTlzf588KFlc= 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=epU1AhdHt+rWBiGMoLH32L0grwLE48VgDjXYKhdPkbe0R3sogW7TibMcphbbwyweQY V7/8dwUNE9iO8lBeh7IHexfwfvMppLipu8V/xYg4vv/WBSqEYh/Y8zpxqf9P/5o8Ubxf Ce/L2WGf9HtGnoQRzwrQzcVPlidIJtTN2Gm7c= MIME-Version: 1.0 Received: by 10.42.137.198 with SMTP id z6mr5356711ict.261.1301274654619; Sun, 27 Mar 2011 18:10:54 -0700 (PDT) Received: by 10.231.208.73 with HTTP; Sun, 27 Mar 2011 18:10:54 -0700 (PDT) In-Reply-To: <20110327172055.GA24257@FreeBSD.cs.nctu.edu.tw> References: <20110327172055.GA24257@FreeBSD.cs.nctu.edu.tw> Date: Mon, 28 Mar 2011 09:10:54 +0800 Message-ID: From: wen heping To: Li-Wen Hsu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Nicola Vitale , Wen Heping , python@freebsd.org, Martin Wilke Subject: Re: about py3 relate ports 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, 28 Mar 2011 01:10:56 -0000 2011/3/28 Li-Wen Hsu : > On Sun, Mar 27, 2011 at 00:52:49 +0800, wen heping wrote: >> Hi, all: >> >> =C2=A0 =C2=A0 After python-2.7 was set as default python version, now it= is the >> time to think >> about python-3.x. >> >> =C2=A0 =C2=A0 Although we set "USE_PYTHON=3Dyes' in python relate ports,= but we know many of >> it could not build with python3, especially those install with >> easy_install since setuptools >> could not build with python3. >> >> =C2=A0 =C2=A0There are two ways to resolve it: >> =C2=A0 =C2=A01 Modify the bsd.python.mk and every python port's Makefile= . >> =C2=A0 =C2=A02 create a new bsd.python3.mk and create new port for those >> python3-enable applications. >> >> =C2=A0 =C2=A0I prefer the second way which is similar to Debian, because= if we >> choose the first way, >> it is a huge work of it, we have to modify bsd.python.mk and modify >> every python relate port's >> Makefile and plist, while the second way is much more simpler. >> >> =C2=A0 =C2=A0I create bsd.python3.mk which is revised from bsd.python.mk= and >> some new python3 ports. >> I attached them all here. >> >> =C2=A0 =C2=A0Any comments ? > > I admit due to my busy day job, I currently have no time to think about > this issue very deeply, here are some thought currently on my mind: > > =C2=A0 =C2=A0How about changing the package manager from setuptools/easy_= install > =C2=A0to use distribute/pip? > > And about the ports fails with Python 3, well, firstly I think it's not > really a big issue, it only happens on the system set Python 3 as default= . > One should know what will happen when setting PYTHON_VERSION in make.conf= . > Keeping USE_PYTHON=3Dyes in the Makefile is acceptable (to me) since when > using Python 3, we should already know some python modules will not work, > and it's not the default setting of ports system, besides, the biggest > thing need to think about would be "how to make this module Python 3 read= y" > After achieve that, USE_PYTHON=3Dyes is perfect. :) I agree this way could resolve the problem, and it is what I mean as first way, but you give more detailed explaintion. But this way require huge work to re-test all the python ports and many modifications. Anyway I think freebsd python group should have to do something to make python3 modules work. We should have a decision, first way ? second way or third way ? Regards, wen > > And for knowing or getting reports about some ports are not Python ready, > I think modifying Makefile to USE_PYTHON=3D2.4-2.7 is OK, since it explic= itly > states this port does not Python 3 compatible. =C2=A0Perhaps we can add a= syntax > like: > > =C2=A0 =C2=A0 USE_PYTHON=3D2.x or USE_PYTHON=3D2 > > However, Python 2.7.x looks like the last releases of Python 2, so we > may not bothering thinking about this. > > Please note this is not conflicting =C2=A0with your 2nd option (entirely)= , I > just don't want to maintain another .mk file. =C2=A0Creating Python 3 por= ts > is fine, which gives us a pre-built binary package on ftp, that's good > and we already have some, like databases/py25-bsddb . =C2=A0The only thin= g > need to take care is setting CONFLICTS in Makefile(s) correctly. =C2=A0So= me > py-* ports install files under bin/, not all in ${PYTHON_SITELIBDIR} > > > Best, > Li-Wen > > -- > Li-Wen Hsu > http://lwhsu.org > From owner-freebsd-python@FreeBSD.ORG Mon Mar 28 11:07:03 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 38B251065679 for ; Mon, 28 Mar 2011 11:07:03 +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 0A8448FC1C for ; Mon, 28 Mar 2011 11:07:03 +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 p2SB72d9026737 for ; Mon, 28 Mar 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2SB7278026735 for freebsd-python@FreeBSD.org; Mon, 28 Mar 2011 11:07:02 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Mar 2011 11:07:02 GMT Message-Id: <201103281107.p2SB7278026735@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, 28 Mar 2011 11:07:03 -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/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 22 problems total. From owner-freebsd-python@FreeBSD.ORG Tue Mar 29 05:50:30 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 55CB0106566C for ; Tue, 29 Mar 2011 05:50:30 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id D7E3C8FC08 for ; Tue, 29 Mar 2011 05:50:29 +0000 (UTC) Received: by wwc33 with SMTP id 33so4514844wwc.31 for ; Mon, 28 Mar 2011 22:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:message-id :user-agent:mime-version:content-type; bh=qPZJOLaMM7btmVqeWl4vlwvcftyW5xzHdk7VHdvk5aM=; b=YHGKjQ8nX9Q6HX46NVrQh4LD0Ba9dKtlj4IlhGeraa3kr923rheOB1Ibzngp166LDL xXoasJ2/oNu//E/fysCqExImiWMP+op8OXM94KNBAnyRmtcjR275fS4L5ce23lDzP9xR DjFiI1ar/YYujETsEOJKdAkr7+FGzwuMfgS9I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version:content-type; b=P7TjDArZB+NqZj96hS7NuqbvLzu5sBFQx4LC+GqKcIf6zNKUESY3u67LpG6wck+kTB EpogTCneaA4vMybaydnQ/5po2KgyOwpf7EJdItnFIRSTw47vxXCy2vm0WPS30SMg+KwF GCNuEyWYhFAHyyZxg4oA+nCljCfRSKUo03jIk= Received: by 10.227.32.132 with SMTP id c4mr4744176wbd.190.1301376278974; Mon, 28 Mar 2011 22:24:38 -0700 (PDT) Received: from localhost (bouazizi.torservers.net [50.7.240.28]) by mx.google.com with ESMTPS id z13sm2327883wbd.63.2011.03.28.22.24.35 (version=SSLv3 cipher=OTHER); Mon, 28 Mar 2011 22:24:37 -0700 (PDT) From: Pan Tsu To: Matthias Andree References: <201103280800.p2S80NRT048809@freefall.freebsd.org> <4D90740E.9010305@FreeBSD.org> <0a97b224749efa1cae65845675036f4d.squirrel@wmail.chruetertee.ch> <4D909E08.2080006@FreeBSD.org> Date: Tue, 29 Mar 2011 09:24:28 +0400 Message-ID: <868vvyfqib.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: Pavel Volkov , Beat Gaetzi , bug-followup@FreeBSD.org, freebsd-python@FreeBSD.org Subject: Re: ports/155971: [PATCH] databases/sqlite3: always enable EXTENSIONS 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, 29 Mar 2011 05:50:30 -0000 Matthias Andree writes: [...] > How about the attached patch to www/firefox? It performs this check in > pre-everything (in case sqlite3 is already installed) and again in > pre-build (if it got installed in the 'make depends' stage). Why are you trying to fix only firefox? Every user of py-sqlite3 is affected. $ python -c 'import sqlite3' Traceback (most recent call last): File "", line 1, in File "LOCALBASE/lib/python2.7/sqlite3/__init__.py", line 24, in from dbapi2 import * File "LOCALBASE/lib/python2.7/sqlite3/dbapi2.py", line 27, in from _sqlite3 import * ImportError: LOCALBASE/lib/python2.7/site-packages/_sqlite3.so: Undefined symbol "sqlite3_load_extension" Most are run dependency, so they fail during run, e.g. $ flexget FATAL: Unable to use SQLite. Are you running Python 2.5.x or 2.6.x ? Python should normally have SQLite support built in. If you're running correct version of Python then it is not equipped with SQLite. Try installing `pysqlite` and / or if you have compiled python yourself, recompile it with SQLite support. # runs fine but the Library doesn't work $ comix ! Could neither find pysqlite2 nor sqlite3. load: 0.18 cmd: python 39505 [select] 1.55r 0.17u 0.06s 1% 42872k but some are not, e.g. $ make install [...] gmake[4]: Entering directory `/usr/ports/chinese/ibus-pinyin/work/ibus-pinyin-1.3.8/data/db/android' gmake[4]: Nothing to be done for `install-exec-am'. GEN android.db Traceback (most recent call last): File "./create_db.py", line 2, in import sqlite3 File "LOCALBASE/lib/python2.7/sqlite3/__init__.py", line 24, in from dbapi2 import * File "LOCALBASE/lib/python2.7/sqlite3/dbapi2.py", line 27, in from _sqlite3 import * ImportError: LOCALBASE/lib/python2.7/site-packages/_sqlite3.so: Undefined symbol "sqlite3_load_extension" test -z "PREFIX/share/ibus-pinyin/db" || ../../.././install-sh -c -d "PREFIX/share/ibus-pinyin/db" install -m 444 ./android.db 'PREFIX/share/ibus-pinyin/db' install: ./android.db: No such file or directory gmake[4]: *** [install-main_dbDATA] Error 71 As for slave port, if you make py-sqlite3 depend on PKGNAMESUFFIX (or absence) via RUN_DEPENDS it'd guarantee that the port always works even if PLIST is identical. $ cd py-sqlite3; make install [...] ===> sqlite3-3.7.5_1 conflicts with installed package(s): sqlite3-noext-3.7.5_1 # to resolve conflict $ cd sqlite3-noext; make deinstall $ cd sqlite3; make install $ cd py-sqlite3; make install Any dependent ports would fail to build/install because py-sqlite3 dependency cannot be satisfied. --- a.diff begins here --- Index: UPDATING =================================================================== RCS file: /a/.cvsup/ports/UPDATING,v retrieving revision 1.1047 diff -u -p -r1.1047 UPDATING --- UPDATING 25 Mar 2011 10:33:31 -0000 1.1047 +++ UPDATING 29 Mar 2011 05:05:29 -0000 @@ -5,6 +5,13 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +XXXXXXXX: + AFFECTS: databases/sqlite3 + AUTHOR: none@ + + EXTENSION was enabled unconditionally. For sqlite3 without its support + refer to databases/sqlite3-noext port. + 20110324: AFFECTS: users of KDE SC 4 AUTHOR: kde@FreeBSD.org Index: databases/Makefile =================================================================== RCS file: /a/.cvsup/ports/databases/Makefile,v retrieving revision 1.964 diff -u -p -r1.964 Makefile --- databases/Makefile 21 Mar 2011 20:41:48 -0000 1.964 +++ databases/Makefile 29 Mar 2011 03:07:56 -0000 @@ -785,6 +785,7 @@ SUBDIR += sqlite-ext-mobigroup SUBDIR += sqlite2 SUBDIR += sqlite3 + SUBDIR += sqlite3-noext SUBDIR += sqlite34 SUBDIR += sqliteman SUBDIR += sqlitemanager Index: databases/sqlite3/Makefile =================================================================== RCS file: /a/.cvsup/ports/databases/sqlite3/Makefile,v retrieving revision 1.55 diff -u -p -r1.55 Makefile --- databases/sqlite3/Makefile 4 Mar 2011 14:00:56 -0000 1.55 +++ databases/sqlite3/Makefile 29 Mar 2011 05:06:29 -0000 @@ -7,6 +7,7 @@ PORTNAME= sqlite3 PORTVERSION= 3.7.5 +PORTREVISION?= 1 CATEGORIES= databases MASTER_SITES= http://www.sqlite.org/ http://www2.sqlite.org/ DISTNAME= sqlite-src-3070500 @@ -19,7 +20,7 @@ LICENSE_NAME= Public Domain LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT} LICENSE_TEXT= Description of the license can be obtained from the following URL: http://www.sqlite.org/copyright.html -CONFLICTS= sqlite34-[0-9]* +CONFLICTS+= sqlite34-[0-9]* USE_ZIP= YES USE_GMAKE= YES @@ -50,7 +53,6 @@ OPTIONS= \ SECURE_DELETE "Overwrite deleted information with zeros" on \ UNLOCK_NOTIFY "Enable notification on unlocking" on \ THREADSAFE "Build thread-safe library" on \ - EXTENSION "Allow loadable extensions" on \ TCLWRAPPER "Enable TCL wrapper" off \ .include @@ -178,10 +180,13 @@ CONFIGURE_ARGS+= --enable-threadsafe CONFIGURE_ARGS+= --disable-threadsafe .endif -.if !defined(WITHOUT_EXTENSION) +.if ${SLAVE_PORT} == "no" CONFIGURE_ARGS+= --enable-load-extension +CONFLICTS+= sqlite3-noext-[0-9]* .else +. if defined(WITHOUT_EXTENSION) CONFIGURE_ARGS+= --disable-load-extension +. endif .endif CONFIGURE_ENV+= CPPFLAGS="-I. -I./src ${CPPFLAGS}" LDFLAGS="${LDFLAGS}" Index: databases/sqlite3-noext/Makefile =================================================================== RCS file: databases/sqlite3-noext/Makefile diff -N databases/sqlite3-noext/Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ databases/sqlite3-noext/Makefile 29 Mar 2011 05:23:20 -0000 @@ -0,0 +1,19 @@ +# Ports collection makefile for: sqlite3-noext +# Date created: 29 Mar 2011 +# Whom: none +# +# $FreeBSD$ +# + +PKGNAMESUFFIX= -noext + +WITHOUT_EXTENSION= yes +CONFLICTS= sqlite3-[0-9]* +LATEST_LINK= sqlite3-noext + +# force default options +#_OPTIONS_OK= yes + +MASTERDIR= ${.CURDIR}/../../databases/sqlite3 + +.include "${MASTERDIR}/Makefile" Index: databases/py-sqlite3/Makefile =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- databases/py-sqlite3/Makefile 28 Oct 2010 21:00:08 -0000 1.8 +++ databases/py-sqlite3/Makefile 29 Mar 2011 05:11:27 -0000 @@ -7,7 +7,7 @@ PORTNAME= sqlite3 PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -18,6 +18,7 @@ MAINTAINER= python@FreeBSD.org COMMENT= Standard Python binding to the SQLite3 library LIB_DEPENDS= sqlite3.8:${PORTSDIR}/databases/sqlite3 +RUN_DEPENDS= sqlite3>=0:${PORTSDIR}/databases/sqlite3 PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/_sqlite3.so DIST_SUBDIR= python --- a.diff ends here --- From owner-freebsd-python@FreeBSD.ORG Tue Mar 29 07:49:06 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 4415A1065670; Tue, 29 Mar 2011 07:49:06 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4E29B8FC15; Tue, 29 Mar 2011 07:49:04 +0000 (UTC) Received: by fxm11 with SMTP id 11so4229815fxm.13 for ; Tue, 29 Mar 2011 00:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=ELt77oE3cHlFYThBBRtqW2UJbXv8YM4l2VtvlIBSt7k=; b=tUCGh5RzlgGl3bX3VGjjlvXefY0r3jh+04sC/F5Pa+6p74uagx0MDzX/4JzkHRbdfr lMmiuuIMF22CLbQC6Xr3irbZBagyi1YHU0tHUPoSWn37qCEDKhwuLQYn1DtTshrT6TDQ LZrHQHPJf4KbhjuCKll3Ai6ASip2AS3JM8eps= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=FtrpS3wDIvfHHA3pRYe04ACsp14LRskofnNAQ4V1iaeULekKtENmHTIm83hJV7Nds4 yDQ1F5C0oQ2NSoFWpafA8+WQ79mI/BRfQE8VKxDDJDRSt9Q57beHGbiUpl5Jzs/0SBYP NuN+rqKSxJSqYJgYZbQXmgNXXzygiPZIbGTOc= Received: by 10.223.126.140 with SMTP id c12mr5524851fas.31.1301384944240; Tue, 29 Mar 2011 00:49:04 -0700 (PDT) Received: from localhost (spftor2.privacyfoundation.de [62.141.58.13]) by mx.google.com with ESMTPS id f15sm1811146fax.34.2011.03.29.00.49.01 (version=SSLv3 cipher=OTHER); Tue, 29 Mar 2011 00:49:01 -0700 (PDT) From: Pan Tsu To: Matthias Andree References: <201103280800.p2S80NRT048809@freefall.freebsd.org> <4D90740E.9010305@FreeBSD.org> <0a97b224749efa1cae65845675036f4d.squirrel@wmail.chruetertee.ch> <4D909E08.2080006@FreeBSD.org> <868vvyfqib.fsf@gmail.com> Date: Tue, 29 Mar 2011 11:48:58 +0400 In-Reply-To: <868vvyfqib.fsf@gmail.com> (Pan Tsu's message of "Tue, 29 Mar 2011 09:24:28 +0400") Message-ID: <86tyem8iz9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: Pavel Volkov , Beat Gaetzi , bug-followup@FreeBSD.org, freebsd-python@FreeBSD.org Subject: Re: ports/155971: [PATCH] databases/sqlite3: always enable EXTENSIONS 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, 29 Mar 2011 07:49:06 -0000 Pan Tsu writes: > Matthias Andree writes: > > [...] >> How about the attached patch to www/firefox? It performs this check in >> pre-everything (in case sqlite3 is already installed) and again in >> pre-build (if it got installed in the 'make depends' stage). > > Why are you trying to fix only firefox? Every user of py-sqlite3 is affected. > > $ python -c 'import sqlite3' > Traceback (most recent call last): > File "", line 1, in > File "LOCALBASE/lib/python2.7/sqlite3/__init__.py", line 24, in > from dbapi2 import * > File "LOCALBASE/lib/python2.7/sqlite3/dbapi2.py", line 27, in > from _sqlite3 import * > ImportError: LOCALBASE/lib/python2.7/site-packages/_sqlite3.so: Undefined symbol "sqlite3_load_extension" Nevermind, py-sqlite3 has HAVE_LOAD_EXTENSION ifdef around that call. --- a.diff begins here --- Index: databases/py-sqlite3/Makefile =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- databases/py-sqlite3/Makefile 28 Oct 2010 21:00:08 -0000 1.8 +++ databases/py-sqlite3/Makefile 29 Mar 2011 07:40:40 -0000 @@ -7,7 +7,7 @@ PORTNAME= sqlite3 PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Index: databases/py-sqlite3/files/setup.py =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/files/setup.py,v retrieving revision 1.2 diff -u -p -r1.2 setup.py --- databases/py-sqlite3/files/setup.py 7 Aug 2006 02:23:05 -0000 1.2 +++ databases/py-sqlite3/files/setup.py 29 Mar 2011 07:38:29 -0000 @@ -32,6 +32,12 @@ sqlite_srcs = [ '_sqlite/statement.c', '_sqlite/util.c'] +try: + import ctypes + ctypes.CDLL("libsqlite3.so").sqlite3_load_extension +except AttributeError: + macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) + setup(name = "_sqlite3", description = "SQLite 3 extension to Python", Index: databases/py-sqlite3/files/setup3.py =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/files/setup3.py,v retrieving revision 1.1 diff -u -p -r1.1 setup3.py --- databases/py-sqlite3/files/setup3.py 30 Jun 2009 21:51:53 -0000 1.1 +++ databases/py-sqlite3/files/setup3.py 29 Mar 2011 07:40:50 -0000 @@ -31,6 +31,12 @@ sqlite_srcs = [ '_sqlite/statement.c', '_sqlite/util.c'] +try: + import ctypes + ctypes.CDLL("libsqlite3.so").sqlite3_load_extension +except AttributeError: + macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) + setup(name = "_sqlite3", description = "SQLite 3 extension to Python", --- a.diff ends here --- From owner-freebsd-python@FreeBSD.ORG Thu Mar 31 03:20:10 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 8564D106566C; Thu, 31 Mar 2011 03:20: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 617868FC18; Thu, 31 Mar 2011 03:20:10 +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 p2V3KAmm002894; Thu, 31 Mar 2011 03:20:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2V3KA4S002893; Thu, 31 Mar 2011 03:20:10 GMT (envelope-from gnats) Resent-Date: Thu, 31 Mar 2011 03:20:10 GMT Resent-Message-Id: <201103310320.p2V3KA4S002893@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-python@FreeBSD.org Resent-Cc: Matthias Andree Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pan Tsu Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B8F61065670 for ; Thu, 31 Mar 2011 03:12:27 +0000 (UTC) (envelope-from inyaoo@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB738FC0C for ; Thu, 31 Mar 2011 03:12:26 +0000 (UTC) Received: by bwz12 with SMTP id 12so1742448bwz.13 for ; Wed, 30 Mar 2011 20:12:26 -0700 (PDT) Received: by 10.204.82.166 with SMTP id b38mr1777800bkl.207.1301541146170; Wed, 30 Mar 2011 20:12:26 -0700 (PDT) Received: from localhost ([95.143.193.145]) by mx.google.com with ESMTPS id q18sm431515bka.3.2011.03.30.20.12.21 (version=SSLv3 cipher=OTHER); Wed, 30 Mar 2011 20:12:23 -0700 (PDT) Message-Id: <86y63wm19o.fsf@gmail.com> Date: Thu, 31 Mar 2011 07:12:19 +0400 From: Pan Tsu To: FreeBSD-gnats-submit@FreeBSD.org X-GNATS-Notify: Matthias Andree Cc: Subject: ports/156076: [patch] databases/py-sqlite3: Undefined symbol "sqlite3_load_extension" 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: Thu, 31 Mar 2011 03:20:10 -0000 >Number: 156076 >Category: ports >Synopsis: [patch] databases/py-sqlite3: Undefined symbol "sqlite3_load_extension" >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 Mar 31 03:20:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Anonymous >Release: FreeBSD 9.0-CURRENT amd64 >Organization: >Environment: Move py-sqlite3 fix to its own PR after silence on python@ for ~2 days, cf. http://docs.freebsd.org/cgi/mid.cgi?86tyem8iz9.fsf tested on www/firefox (PGO build, r64446), www/py-flexget (via sqlalchemy) tested on lang/python27, lang/python32 $ ./sqlite3_compileoption_get ENABLE_COLUMN_METADATA ENABLE_FTS3 ENABLE_FTS3_PARENTHESIS ENABLE_UNLOCK_NOTIFY OMIT_LOAD_EXTENSION SECURE_DELETE TEMP_STORE=1 THREADSAFE=1 >Description: Don't define HAVE_LOAD_EXTENSION when sqlite3 is compiled with EXTENSION option turned off. see also ports/149842, ports/155971, neither cites exact error message >How-To-Repeat: 1. install databases/sqlite3 without EXTENSION support 2. install databases/py-sqlite3 3. try to import py-sqlite3 $ python -c 'import sqlite3' Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in from dbapi2 import * File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in from _sqlite3 import * ImportError: /usr/local/lib/python2.7/site-packages/_sqlite3.so: Undefined symbol "sqlite3_load_extension" >Fix: No need to go overkill and iterate sqlite3_compileoption_get() to populate macros, testing existence of the symbol is enough. $ grep -r '#if.*[[:blank:]]SQLITE_' $(make -V WRKSRC) | fgrep -iv version WRKSRC/_sqlite/connection.c:#ifndef SQLITE_OMIT_LOAD_EXTENSION --- a.diff begins here --- Index: databases/py-sqlite3/Makefile =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/Makefile,v retrieving revision 1.8 diff -u -p -r1.8 Makefile --- databases/py-sqlite3/Makefile 28 Oct 2010 21:00:08 -0000 1.8 +++ databases/py-sqlite3/Makefile 29 Mar 2011 07:40:40 -0000 @@ -7,7 +7,7 @@ PORTNAME= sqlite3 PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} Index: databases/py-sqlite3/files/setup.py =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/files/setup.py,v retrieving revision 1.2 diff -u -p -r1.2 setup.py --- databases/py-sqlite3/files/setup.py 7 Aug 2006 02:23:05 -0000 1.2 +++ databases/py-sqlite3/files/setup.py 29 Mar 2011 07:38:29 -0000 @@ -32,6 +32,12 @@ sqlite_srcs = [ '_sqlite/statement.c', '_sqlite/util.c'] +try: + import ctypes + ctypes.CDLL('libsqlite3.so').sqlite3_load_extension +except AttributeError: + macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) + setup(name = "_sqlite3", description = "SQLite 3 extension to Python", Index: databases/py-sqlite3/files/setup3.py =================================================================== RCS file: /a/.cvsup/ports/databases/py-sqlite3/files/setup3.py,v retrieving revision 1.1 diff -u -p -r1.1 setup3.py --- databases/py-sqlite3/files/setup3.py 30 Jun 2009 21:51:53 -0000 1.1 +++ databases/py-sqlite3/files/setup3.py 29 Mar 2011 07:40:50 -0000 @@ -31,6 +31,12 @@ sqlite_srcs = [ '_sqlite/statement.c', '_sqlite/util.c'] +try: + import ctypes + ctypes.CDLL('libsqlite3.so').sqlite3_load_extension +except AttributeError: + macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) + setup(name = "_sqlite3", description = "SQLite 3 extension to Python", --- a.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-python@FreeBSD.ORG Fri Apr 1 08:00:26 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 482A4106566C for ; Fri, 1 Apr 2011 08:00:26 +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 1B0708FC16 for ; Fri, 1 Apr 2011 08:00:26 +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 p3180PUM029875 for ; Fri, 1 Apr 2011 08:00:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p3180PAl029874; Fri, 1 Apr 2011 08:00:25 GMT (envelope-from gnats) Date: Fri, 1 Apr 2011 08:00:25 GMT Message-Id: <201104010800.p3180PAl029874@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Eir Nym Cc: Subject: Re: ports/140968: x11-toolkits/py-tkinter(devel/pth): py26-tkinter-2.6.4_3 build error with pth.h X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Eir Nym List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 08:00:26 -0000 The following reply was made to PR ports/140968; it has been noted by GNATS. From: Eir Nym To: bug-followup@freebsd.org, dohzono@axion-software.com Cc: Subject: Re: ports/140968: x11-toolkits/py-tkinter(devel/pth): py26-tkinter-2.6.4_3 build error with pth.h Date: Fri, 1 Apr 2011 11:29:43 +0400 This is not specific only for py-tkinter. This problem exists with other python ports, which needed to be compilled by cc.