Gentoo Archives: gentoo-commits

From: Thomas Sachau <tommy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:multilib commit in: bin/
Date: Sun, 07 Jan 2018 09:30:22
Message-Id: 1506355059.0bfcb49daadf993b26c6b782b5121fe4a6017eea.tommy@gentoo
1 commit: 0bfcb49daadf993b26c6b782b5121fe4a6017eea
2 Author: Thomas Sachau <tommy <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 25 15:57:39 2017 +0000
4 Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 25 15:57:39 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=0bfcb49d
7
8 Add workarounds for llvm
9
10 bin/auto-multilib.sh | 6 ++++--
11 1 file changed, 4 insertions(+), 2 deletions(-)
12
13 diff --git a/bin/auto-multilib.sh b/bin/auto-multilib.sh
14 index b5043e041..eabef5daf 100755
15 --- a/bin/auto-multilib.sh
16 +++ b/bin/auto-multilib.sh
17 @@ -275,7 +275,7 @@ _finalize_abi_install() {
18
19 # Create wrapper symlink for *-config files
20 local i=
21 - prep_ml_binaries $(find "${D}"usr/bin "${D}"usr/sbin "${D}"bin "${D}"sbin -type f -name '*-config' 2>/dev/null)
22 + prep_ml_binaries $(find "${D}"usr/bin "${D}"usr/sbin "${D}"bin "${D}"sbin "${D}"usr/lib/llvm/*/bin -type f -name '*-config' 2>/dev/null)
23
24 local noabi=()
25 for i in ${MULTILIB_ABIS}; do
26 @@ -287,8 +287,10 @@ _finalize_abi_install() {
27 done
28 fi
29 local LIBDIR=$(portage-get_abi_var LIBDIR $1)
30 + #FIXME: better way then hardcoding llvm to work around /usr/lib/llvm/${LIBDIR}
31 if ( [[ -d "${D}${LIBDIR}" ]] || [[ -d "${D}usr/${LIBDIR}" ]] || [[ -d "${base}" ]] || \
32 - (shopt -s nullglob dotglob; f=("${D}"usr/bin/*-config); ((${#f[@]}))) || \
33 + (shopt -s nullglob dotglob; f=("${D}"usr/bin/*-config); ((${#f[@]}))) || \
34 + (shopt -s nullglob dotglob; f=("${D}"usr/lib/llvm/*/bin/*-config); ((${#f[@]}))) || \
35 ( use abiwrapper && \
36 ( [[ -d "${D}"usr/bin ]] || \
37 [[ -d "${D}"usr/sbin ]] || [[ -d "${D}"bin ]] || [[ -d "${D}"sbin ]])) ); then