ports/146959: devel/boost-python-libs ignores PYTHON_VERSION

Kazunori Fujiwara fujiwara at wide.ad.jp
Tue May 25 08:50:03 UTC 2010


>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 at 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:



More information about the freebsd-ports-bugs mailing list