From fujiwara@wide.ad.jp  Tue May 25 08:40:07 2010
Return-Path: <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>
Reply-To: Kazunori Fujiwara <fujiwara@wide.ad.jp>
To: FreeBSD-gnats-submit@freebsd.org
Subject: devel/boost-python-libs ignores PYTHON_VERSION
X-Send-Pr-Version: 3.113

>Number:         146959
>Category:       ports
>Synopsis:       devel/boost-python-libs ignores PYTHON_VERSION
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    makc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 25 08:50:01 UTC 2010
>Closed-Date:    Sat Jul 24 08:10:03 UTC 2010
>Last-Modified:  Sat Jul 24 08:10:11 UTC 2010
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue May 25 08:50:12 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: churanov.port.maintainer@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/146959: devel/boost-python-libs ignores PYTHON_VERSION
Date: Tue, 25 May 2010 08:50:10 UT

 Maintainer of devel/boost-python-libs,
 
 Please note that PR ports/146959 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:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/146959
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Alexander Churanov <alexanderchuranov@gmail.com>
To: bug-followup@freebsd.org
Cc: churanov.port.maintainer@gmail.com
Subject: Re: ports/146959: devel/boost-python-libs ignores PYTHON_VERSION
Date: Wed, 16 Jun 2010 16:19:26 +0400

 I approve the patch.
 
 I've verified that the issue actually exists and that the patch resolves it.
 
 Alexander Churanov,
 maintainer of devel/boost-*
State-Changed-From-To: feedback->open 
State-Changed-By: linimon 
State-Changed-When: Wed Jun 16 16:33:00 UTC 2010 
State-Changed-Why:  
Maintainer approved. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146959 
Responsible-Changed-From-To: freebsd-ports-bugs->makc 
Responsible-Changed-By: makc 
Responsible-Changed-When: Sun Jul 11 18:36:59 UTC 2010 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=146959 
State-Changed-From-To: open->closed 
State-Changed-By: makc 
State-Changed-When: Sat Jul 24 08:09:50 UTC 2010 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/146959: commit references a PR
Date: Sat, 24 Jul 2010 08:09:49 +0000 (UTC)

 makc        2010-07-24 08:09:25 UTC
 
   FreeBSD ports repository
 
   Modified files:
     devel/boost-python-libs Makefile 
   Log:
   Respect PYTHON_VERSION
   
   PR:             ports/146959
   Submitted by:   Kazunori Fujiwara <fujiwara at wide.ad.jp>
   Approved by:    Alexander Churanov (maintainer)
   
   Revision  Changes    Path
   1.9       +1 -0      ports/devel/boost-python-libs/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
