dev-libs/boost: Backport fix for python ABI letters
authorJustin Lecher <jlec@gentoo.org>
Sun, 13 Dec 2015 14:05:20 +0000 (15:05 +0100)
committerJustin Lecher <jlec@gentoo.org>
Sun, 13 Dec 2015 14:05:28 +0000 (15:05 +0100)
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-libs/boost/boost-1.56.0-r1.ebuild

index 8059695ecf7b51dd2e0e4c6400bf6b9b73c3c035..5eda4498559910adf96d96a0613bbca23a5de955 100644 (file)
@@ -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