From 14f34132fedfa241528b7699d19bebe3c98ded63 Mon Sep 17 00:00:00 2001 From: Leorize Date: Mon, 19 Feb 2018 15:36:14 +0700 Subject: [PATCH] sys-libs/llvm-libunwind: fix when test is off (*9999) Also avoid fetching libcxx unless test is used. Closes: https://github.com/gentoo/gentoo/pull/7227 --- sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild | 8 +++++--- sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild index 7523ff7bd6f6..87f9ee1eb39b 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild @@ -43,15 +43,17 @@ pkg_setup() { src_unpack() { # we need headers & test utilities - git-r3_fetch "https://git.llvm.org/git/libcxx.git - https://github.com/llvm-mirror/libcxx.git" + if use test; then + git-r3_fetch "https://git.llvm.org/git/libcxx.git + https://github.com/llvm-mirror/libcxx.git" + fi git-r3_fetch if use test; then git-r3_checkout https://llvm.org/git/libcxx.git \ "${WORKDIR}"/libcxx '' include utils/libcxx - git-r3_checkout fi + git-r3_checkout } multilib_src_configure() { diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild index 60a321c7d609..2ac7db3bbf71 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild @@ -42,15 +42,17 @@ pkg_setup() { src_unpack() { # we need headers & test utilities - git-r3_fetch "https://git.llvm.org/git/libcxx.git - https://github.com/llvm-mirror/libcxx.git" + if use test + git-r3_fetch "https://git.llvm.org/git/libcxx.git + https://github.com/llvm-mirror/libcxx.git" + fi git-r3_fetch if use test; then git-r3_checkout https://llvm.org/git/libcxx.git \ "${WORKDIR}"/libcxx '' include utils/libcxx - git-r3_checkout fi + git-r3_checkout } multilib_src_configure() { -- 2.26.2