commit: 029adf977532057704330e72966833c093497544 Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Sun Dec 13 14:05:20 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Sun Dec 13 14:05:28 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=029adf97
dev-libs/boost: Backport fix for python ABI letters Package-Manager: portage-2.2.26 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> dev-libs/boost/boost-1.56.0-r1.ebuild | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dev-libs/boost/boost-1.56.0-r1.ebuild b/dev-libs/boost/boost-1.56.0-r1.ebuild index 8059695..5eda449 100644 --- a/dev-libs/boost/boost-1.56.0-r1.ebuild +++ b/dev-libs/boost/boost-1.56.0-r1.ebuild @@ -75,10 +75,19 @@ create_user-config.jam() { fi if python_bindings_needed; then + # boost expects libpython$(pyver) and doesn't allow overrides + # and the build system is so creepy that it's easier just to + # provide a symlink (linker's going to use SONAME anyway) + # TODO: replace it with proper override one day + ln -f -s "$(python_get_library_path)" "${T}/lib${EPYTHON}$(get_libname)" || die + if tc-is-cross-compiler; then python_configuration="using python : ${EPYTHON#python} : : ${SYSROOT:-${EROOT}}/usr/include/${EPYTHON} : ${SYSROOT:-${EROOT}}/usr/$(get_libdir) ;" else - python_configuration="using python : : ${PYTHON} ;" + # note: we need to provide version explicitly because of + # a bug in the build system: + # https://github.com/boostorg/build/pull/104 + python_configuration="using python : ${EPYTHON#python} : ${PYTHON} : $(python_get_includedir) : ${T} ;" fi fi