pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38061: devel/boost-python can't find python executable



>Number:         38061
>Category:       pkg
>Synopsis:       devel/boost-python can't find python executable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 19 05:00:01 +0000 2008
>Originator:     Gary Duzan
>Release:        NetBSD 4.99.53
>Organization:
        N/A
>Environment:
System: NetBSD capo 4.99.53 NetBSD 4.99.53 (CAPO64) #19: Fri Feb 8 01:18:06 EST 
2008 gary@capo:/usr/obj/sys/arch/amd64/compile.amd64/CAPO64 amd64
Architecture: x86_64
Machine: amd64
>Description:
   The generated user-conf.jam is not found by bjam, resulting in:
        ===> Building for boost-python-1.34.1
        python: not found
        WARNING: No python installation configured and autoconfiguration
                 failed.  See http://www.boost.org/libs/python/doc/building.html
                 for configuration instructions or pass --without-python to
                 suppress this message and silently skip all Boost.Python 
targets
        warning: Python location is not configured
        warning: the Boost.Python library won't be built
        ...found 1 target...
        => Unwrapping files-to-be-installed.

There is no error, but nothing is built, and the install fails.

>How-To-Repeat:
        Build devel/boost-python. I'm not certain exactly what
        other factors need to be in place to reproduce the problem.
>Fix:
   According to <http://www.boost.org/doc/html/bbv2/reference.html>,
bjam looks in $HOME and $BOOST_BUILD_PATH for user-config.jam. For
some reason setting HOME isn't sufficient in my case. (Possibly being
reset by the shell?) The following patch fixes the problem for me.

Index: Makefile
===================================================================
RCS file: /usr2/netbsd-cvs/pkgsrc/devel/boost-python/Makefile,v
retrieving revision 1.9
diff -b -u -p -r1.9 Makefile
--- Makefile    5 Feb 2008 23:01:59 -0000       1.9
+++ Makefile    19 Feb 2008 04:46:05 -0000
@@ -11,6 +11,7 @@ PKG_DESTDIR_SUPPORT=  user-destdir
 
 BJAM_ARGS+=            --with-python
 MAKE_ENV+=             HOME=${WRKSRC}
+MAKE_ENV+=             BOOST_BUILD_PATH=${WRKSRC}
 
 .include "../../devel/boost-jam/bjam.mk"
 .include "../../lang/python/application.mk"



Home | Main Index | Thread Index | Old Index