dev-libs/boost: Use `--no-cmake-config` instead of patch
authorDavid Seifert <soap@gentoo.org>
Mon, 15 Apr 2019 00:21:20 +0000 (02:21 +0200)
committerDavid Seifert <soap@gentoo.org>
Mon, 15 Apr 2019 00:22:08 +0000 (02:22 +0200)
* Credits go to @pdimov for the suggestion in
  boostorg/python/issues/262

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
dev-libs/boost/boost-1.70.0.ebuild
dev-libs/boost/files/boost-1.70.0-fix-python-cmake-duplicate-target.patch [deleted file]

index 6d40a9f70544d14d27ad2ef01b0fafb14e5fa23f..68a0140f7781697e9d093a53da2ec12e0ecfac02 100644 (file)
@@ -51,7 +51,6 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.48.0-disable_icu_rpath.patch
        "${FILESDIR}"/${PN}-1.69.0-context-x32.patch
        "${FILESDIR}"/${PN}-1.56.0-build-auto_index-tool.patch
-       "${FILESDIR}"/${PN}-1.70.0-fix-python-cmake-duplicate-target.patch
 )
 
 python_bindings_needed() {
@@ -174,6 +173,10 @@ src_configure() {
                --boost-build="${EPREFIX}"/usr/share/boost-build
                --prefix="${ED}/usr"
                --layout=system
+               # CMake has issues working with multiple python impls,
+               # disable cmake config generation for the time being
+               # https://github.com/boostorg/python/issues/262#issuecomment-483069294
+               --no-cmake-config
                # building with threading=single is currently not possible
                # https://svn.boost.org/trac/boost/ticket/7105
                threading=multi
diff --git a/dev-libs/boost/files/boost-1.70.0-fix-python-cmake-duplicate-target.patch b/dev-libs/boost/files/boost-1.70.0-fix-python-cmake-duplicate-target.patch
deleted file mode 100644 (file)
index c0097a8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-Boost.Build errors out when passing multiple python impls to b2:
-
-    error: Name clash for '<p/var/tmp/portage/dev-libs/boost-1.70.0/image/usr/lib64/cmake/boost_python-1.70.0>libboost_python-variant-shared.cmake'
-    error:
-    error: Tried to build the target twice, with property sets having
-    error: these incompatible properties:
-    error:
-    error:     -  <python>2.7
-    error:     -  <python>3.6
-    error:
-    error: Please make sure to have consistent requirements for these
-    error: properties everywhere in your project, especially for install
-    error: targets.
-
-https://github.com/boostorg/python/issues/262
-
---- a/tools/boost_install/boost-install.jam
-+++ b/tools/boost_install/boost-install.jam
-@@ -870,12 +870,12 @@
-     $(p).mark-target-as-explicit install-libraries ;
--    install-cmake-config $(libraries) ;
-+    # install-cmake-config $(libraries) ;
-     generate install-dependencies : $(libraries) : <generating-rule>@boost-install%generate-dependencies <name>install ;
-     $(p).mark-target-as-explicit install-dependencies ;
--    alias install : install-libraries install-cmake-config install-dependencies ;
-+    alias install : install-libraries install-dependencies ;
-     $(p).mark-target-as-explicit install ;
-     # Target stage