commit:     6c324f1ccdf021ce6b923a5c0589572c4d3cfd28
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 08:22:57 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 08:22:57 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c324f1c

sys-devel/llvm: move libcxx into PDEPEND for Darwin

llvm needs libcxx-headers at most, but not the library, however, llvm
does segfault if the matching libcxx isn't available at runtime, so make
sure we install a matching version after installing llvm on Darwin.

Package-Manager: portage-2.2.28

 sys-devel/llvm/llvm-3.5.2.ebuild    | 4 ++--
 sys-devel/llvm/llvm-3.7.1-r3.ebuild | 4 ++--
 sys-devel/llvm/llvm-3.8.1-r2.ebuild | 4 ++--
 sys-devel/llvm/llvm-3.8.1.ebuild    | 4 ++--
 sys-devel/llvm/llvm-3.9.0.ebuild    | 3 ++-
 5 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/sys-devel/llvm/llvm-3.5.2.ebuild b/sys-devel/llvm/llvm-3.5.2.ebuild
index a4f1139..62acb5a 100644
--- a/sys-devel/llvm/llvm-3.5.2.ebuild
+++ b/sys-devel/llvm/llvm-3.5.2.ebuild
@@ -50,7 +50,6 @@ DEPEND="${COMMON_DEPEND}
                ( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx )
        )
        || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 )
-       kernel_Darwin? ( <sys-libs/libcxx-${PV%_rc*}.9999 )
        clang? ( xml? ( virtual/pkgconfig ) )
        doc? ( dev-python/sphinx )
        libffi? ( virtual/pkgconfig )
@@ -61,7 +60,8 @@ RDEPEND="${COMMON_DEPEND}
                !>=sys-devel/clang-9999 )
        abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2
                !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
-PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )"
+PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )
+       kernel_Darwin? ( =sys-libs/libcxx-${SLOT#*/}* )"
 
 # pypy gives me around 1700 unresolved tests due to open file limit
 # being exceeded. probably GC does not close them fast enough.

diff --git a/sys-devel/llvm/llvm-3.7.1-r3.ebuild 
b/sys-devel/llvm/llvm-3.7.1-r3.ebuild
index a933eb6..b8805b0 100644
--- a/sys-devel/llvm/llvm-3.7.1-r3.ebuild
+++ b/sys-devel/llvm/llvm-3.7.1-r3.ebuild
@@ -55,7 +55,6 @@ DEPEND="${COMMON_DEPEND}
                ( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx )
        )
        || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 )
-       kernel_Darwin? ( <sys-libs/libcxx-${PV%_rc*}.9999 )
        clang? ( xml? ( virtual/pkgconfig ) )
        doc? ( dev-python/sphinx )
        gold? ( sys-libs/binutils-libs )
@@ -68,7 +67,8 @@ RDEPEND="${COMMON_DEPEND}
        clang? ( !<=sys-devel/clang-${PV}-r99 )
        abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2
                !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
-PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )"
+PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )
+       kernel_Darwin? ( =sys-libs/libcxx-${PV}* )"
 
 # pypy gives me around 1700 unresolved tests due to open file limit
 # being exceeded. probably GC does not close them fast enough.

diff --git a/sys-devel/llvm/llvm-3.8.1-r2.ebuild 
b/sys-devel/llvm/llvm-3.8.1-r2.ebuild
index 195d8ec..14a2e82 100644
--- a/sys-devel/llvm/llvm-3.8.1-r2.ebuild
+++ b/sys-devel/llvm/llvm-3.8.1-r2.ebuild
@@ -55,7 +55,6 @@ DEPEND="${COMMON_DEPEND}
                ( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx )
        )
        || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 )
-       kernel_Darwin? ( <sys-libs/libcxx-${PV%_rc*}.9999 )
        clang? ( xml? ( virtual/pkgconfig ) )
        doc? ( dev-python/sphinx )
        gold? ( sys-libs/binutils-libs )
@@ -70,7 +69,8 @@ RDEPEND="${COMMON_DEPEND}
        abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2
                !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
 PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )
-       default-libcxx? ( sys-libs/libcxx )"
+       default-libcxx? ( sys-libs/libcxx )
+       kernel_Darwin? ( =sys-libs/libcxx-${PV%.*}* )"
 
 # pypy gives me around 1700 unresolved tests due to open file limit
 # being exceeded. probably GC does not close them fast enough.

diff --git a/sys-devel/llvm/llvm-3.8.1.ebuild b/sys-devel/llvm/llvm-3.8.1.ebuild
index 4846dcd..81d3f0f 100644
--- a/sys-devel/llvm/llvm-3.8.1.ebuild
+++ b/sys-devel/llvm/llvm-3.8.1.ebuild
@@ -56,7 +56,6 @@ DEPEND="${COMMON_DEPEND}
                ( >=sys-freebsd/freebsd-lib-9.1-r10 sys-libs/libcxx )
        )
        || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-5.1 )
-       kernel_Darwin? ( <sys-libs/libcxx-${PV%_rc*}.9999 )
        clang? ( xml? ( virtual/pkgconfig ) )
        doc? ( dev-python/sphinx )
        gold? ( sys-libs/binutils-libs )
@@ -69,7 +68,8 @@ RDEPEND="${COMMON_DEPEND}
        clang? ( !<=sys-devel/clang-${PV}-r99 )
        abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2
                !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
-PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )"
+PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )
+       kernel_Darwin? ( =sys-libs/libcxx-${PV%.*}* )"
 
 # pypy gives me around 1700 unresolved tests due to open file limit
 # being exceeded. probably GC does not close them fast enough.

diff --git a/sys-devel/llvm/llvm-3.9.0.ebuild b/sys-devel/llvm/llvm-3.9.0.ebuild
index ec4ce04..ae3d205 100644
--- a/sys-devel/llvm/llvm-3.9.0.ebuild
+++ b/sys-devel/llvm/llvm-3.9.0.ebuild
@@ -72,7 +72,8 @@ RDEPEND="${COMMON_DEPEND}
        abi_x86_32? ( !<=app-emulation/emul-linux-x86-baselibs-20130224-r2
                !app-emulation/emul-linux-x86-baselibs[-abi_x86_32(-)] )"
 PDEPEND="clang? ( =sys-devel/clang-${PV}-r100 )
-       default-libcxx? ( sys-libs/libcxx )"
+       default-libcxx? ( sys-libs/libcxx )
+       kernel_Darwin? ( =sys-libs/libcxx-${PV%.*}* )"
 
 # pypy gives me around 1700 unresolved tests due to open file limit
 # being exceeded. probably GC does not close them fast enough.

Reply via email to