diff options
author | Mike Gilbert <floppym@gentoo.org> | 2012-04-02 00:53:01 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2012-04-02 00:53:01 +0000 |
commit | de6bd0ae3de3335490e1f510b1c85836a85e1921 (patch) | |
tree | fb05b776962311429be4a378200e4f05209c5fe1 /dev-libs/boost | |
parent | Support python_modules variable for improved handling of Python modules, whic... (diff) | |
download | gentoo-2-de6bd0ae3de3335490e1f510b1c85836a85e1921.tar.gz gentoo-2-de6bd0ae3de3335490e1f510b1c85836a85e1921.tar.bz2 gentoo-2-de6bd0ae3de3335490e1f510b1c85836a85e1921.zip |
Fix handling of mpi Python modules (bug #404253). Delete old patch. Backported from Progress Overlay. Patch by Arfrever.
(Portage version: 2.2.0_alpha98/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/boost')
-rw-r--r-- | dev-libs/boost/ChangeLog | 6 | ||||
-rw-r--r-- | dev-libs/boost/boost-1.48.0-r1.ebuild | 28 |
2 files changed, 22 insertions, 12 deletions
diff --git a/dev-libs/boost/ChangeLog b/dev-libs/boost/ChangeLog index 642298d63c12..01fb006a8dbc 100644 --- a/dev-libs/boost/ChangeLog +++ b/dev-libs/boost/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-libs/boost # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.237 2012/02/14 19:57:04 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/ChangeLog,v 1.238 2012/04/02 00:53:01 floppym Exp $ + + 02 Apr 2012; Mike Gilbert <floppym@gentoo.org> boost-1.48.0-r1.ebuild: + Fix handling of mpi Python modules (bug #404253). Delete old patch. Backported + from Progress Overlay. Patch by Arfrever. 14 Feb 2012; Markos Chandras <hwoarang@gentoo.org> boost-1.48.0-r1.ebuild: update header per bug #403671 diff --git a/dev-libs/boost/boost-1.48.0-r1.ebuild b/dev-libs/boost/boost-1.48.0-r1.ebuild index fe70375645f9..a375c4680f9d 100644 --- a/dev-libs/boost/boost-1.48.0-r1.ebuild +++ b/dev-libs/boost/boost-1.48.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.48.0-r1.ebuild,v 1.3 2012/02/14 19:57:04 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/boost/boost-1.48.0-r1.ebuild,v 1.4 2012/04/02 00:53:01 floppym Exp $ EAPI="4" PYTHON_DEPEND="python? *" @@ -24,7 +24,7 @@ RDEPEND="icu? ( >=dev-libs/icu-3.3 ) mpi? ( || ( sys-cluster/openmpi[cxx] sys-cluster/mpich2[cxx,threads] ) ) sys-libs/zlib !!<=dev-libs/boost-1.35.0-r2 - >=app-admin/eselect-boost-0.3" + >=app-admin/eselect-boost-0.4" DEPEND="${RDEPEND} >=dev-util/boost-build-1.48.0-r1:${SLOT}" @@ -127,12 +127,6 @@ src_prepare() { epatch "${FILESDIR}/${P}-python_linking.patch" epatch "${FILESDIR}/${P}-disable_icu_rpath.patch" epatch "${FILESDIR}/remove-toolset-${PV}.patch" - - # This enables building the boost.random library with /dev/urandom support - if [[ -e /dev/urandom ]]; then - mkdir -p libs/random/build || die - cp "${FILESDIR}/random-Jamfile-${PV}" libs/random/build/Jamfile.v2 || die - fi } src_configure() { @@ -271,7 +265,7 @@ src_install () { fi if use mpi && use python; then - _add_line "python=\"" + _add_line "python_modules=\"" fi installation() { @@ -325,8 +319,20 @@ src_install () { if use mpi; then mkdir -p "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die mv "${D}usr/$(get_libdir)/mpi.so" "${D}$(python_get_sitedir)/boost_${MAJOR_PV}" || die - touch "${D}$(python_get_sitedir)/boost_${MAJOR_PV}/__init__.py" || die - _add_line "$(python_get_sitedir)/boost_${MAJOR_PV}/mpi.so" + cat << EOF > "${D}$(python_get_sitedir)/boost_${MAJOR_PV}/__init__.py" || die +import sys +if sys.platform.startswith('linux'): + import DLFCN + flags = sys.getdlopenflags() + sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_GLOBAL) + from . import mpi + sys.setdlopenflags(flags) + del DLFCN, flags +else: + from . import mpi +del sys +EOF + _add_line "$(python_get_sitedir)/mpi.py:boost_${MAJOR_PV}.mpi" fi fi } |