From ed99fa624d7f39a7055358dd2663b8b3f6b6c48b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 17 Feb 2016 22:51:00 +0100 Subject: [PATCH] sys-devel/llvm: Extend the FreeBSD fix fix to remaining ebuilds --- sys-devel/llvm/llvm-3.8.0_rc2.ebuild | 4 +++- sys-devel/llvm/llvm-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys-devel/llvm/llvm-3.8.0_rc2.ebuild b/sys-devel/llvm/llvm-3.8.0_rc2.ebuild index b3b7e4e536b4..5fcf094f3307 100644 --- a/sys-devel/llvm/llvm-3.8.0_rc2.ebuild +++ b/sys-devel/llvm/llvm-3.8.0_rc2.ebuild @@ -418,7 +418,9 @@ src_install() { multilib-minimal_src_install # Remove unnecessary headers on FreeBSD, bug #417171 - use kernel_FreeBSD && use clang && rm "${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h + if use kernel_FreeBSD && use clang; then + rm "${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h || die + fi } multilib_src_install() { diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 4cef57bcd458..97ed7fdc8b55 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -395,7 +395,9 @@ src_install() { multilib-minimal_src_install # Remove unnecessary headers on FreeBSD, bug #417171 - use kernel_FreeBSD && use clang && rm "${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h + if use kernel_FreeBSD && use clang; then + rm "${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h || die + fi } multilib_src_install() { -- 2.26.2