From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 25 08:50:03 2010 Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG> Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6645B1065670 for <freebsd-ports-bugs@hub.freebsd.org>; Tue, 25 May 2010 08:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 293528FC3A for <freebsd-ports-bugs@hub.freebsd.org>; Tue, 25 May 2010 08:50: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 o4P8o1Zg063017 for <freebsd-ports-bugs@freefall.freebsd.org>; Tue, 25 May 2010 08:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o4P8o1nr063016; Tue, 25 May 2010 08:50:01 GMT (envelope-from gnats) Resent-Date: Tue, 25 May 2010 08:50:01 GMT Resent-Message-Id: <201005250850.o4P8o1nr063016@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Kazunori Fujiwara <fujiwara@wide.ad.jp> Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B2AE1065675 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 May 2010 08:40:07 +0000 (UTC) (envelope-from fujiwara@wide.ad.jp) Received: from sh.wide.ad.jp (sh.wide.ad.jp [IPv6:2001:200:0:1001::6]) by mx1.freebsd.org (Postfix) with ESMTP id 1B97B8FC34 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 May 2010 08:40:07 +0000 (UTC) Received: from localhost (73.162.192.61.tokyo.global.alpha-net.ne.jp [61.192.162.73]) (authenticated (0 bits)) by mail.wide.ad.jp (8.14.1+3.5Wbeta/8.14.1/smtpfeed 1.20) with ESMTP id o4P8e2Qq010426 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 25 May 2010 17:40:05 +0900 (JST) Message-Id: <20100525.174001.1000278277145532670.fujiwara@wide.ad.jp> Date: Tue, 25 May 2010 17:40:01 +0900 (JST) From: Kazunori Fujiwara <fujiwara@wide.ad.jp> To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/146959: devel/boost-python-libs ignores PYTHON_VERSION X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Kazunori Fujiwara <fujiwara@wide.ad.jp> List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, <mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs> List-Post: <mailto:freebsd-ports-bugs@freebsd.org> List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, <mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 25 May 2010 08:50:03 -0000 >Number: 146959 >Category: ports >Synopsis: devel/boost-python-libs ignores PYTHON_VERSION >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue May 25 08:50:01 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Kazunori_Fujiwara >Release: FreeBSD 8.0-STABLE amd64 >Organization: JPRS and WIDE Project >Environment: System: FreeBSD f 8.0-STABLE FreeBSD 8.0-STABLE #0: Wed May 5 14:40:37 JST 2010 fujiwara@f:/usr/obj/usr/src/sys/GENERIC amd64 - Tested on FreeBSD 8.0-RELEASE-p2/i386 and FreeBSD 8.0-STABLE/amd64 >Description: "ports/devel/boost-python-libs" ignores "PYTHON_VERSION" while both python 3.1 and python 2.6 installed in one system. The port generates libboost_python library for python 2.6 if I specify "PYTHON_VERSION=3.1" in /etc/make.conf or ports.conf. >How-To-Repeat: My REQUIREMENTS: R1. I need to install python 3.1, boost-python-libs for python 3.1 and sqlite3 to compile BIND 10. R2. xorg requires python version 2. (ports/x11/libxcb) I did: 1. installed ports/ports-mgmt/portconf . and added three lines to /usr/local/etc/port.conf . devel/boost-python-libs: PYTHON_VERSION=python3.1 devel/py-elementtree: PYTHON_VERSION=python3.1 databases/py-sqlite3: PYTHON_VERSION=python3.1 I thoutht that xorg will use python 2.6 and I can use python3.1. 2. installed "ports/x11/xorg". "python2.6" was installed as "/usr/local/bin/python" and was used to make. 3. installed "ports/databases/py-sqlite3" and "ports/devel/py-elementtree". "python3.1" was installed. 4. installed "ports/devel/boost-python-libs". Then, boost-python-libs ignores "PYTHON_VERSION=python3.1" and generates libboost_python library which calls python 2.6 library. >Fix: Add "using python : 3.1 ;" into "~/user-config.jam". Or apply this patch for "ports/devel/boost-python-libs/Makefile". Index: devel/boost-python-libs/Makefile =================================================================== RCS file: /ncvs/ports/devel/boost-python-libs/Makefile,v retrieving revision 1.6 diff -u -b -r1.6 Makefile --- devel/boost-python-libs/Makefile 23 Mar 2010 22:14:18 -0000 1.6 +++ devel/boost-python-libs/Makefile 25 May 2010 03:41:42 -0000 @@ -42,6 +42,7 @@ post-patch: customize-boost-build do-build: + echo "using python : " ${PYTHON_VER} ";" >> ${WRKSRC}/tools/build/v2/site-config.jam # build the library cd ${WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_OPTIONS} --prefix=${PREFIX}\ >Release-Note: >Audit-Trail: >Unformatted: