From 1dbe6017011874a5b7c42324b42e94b2c9c20452 Mon Sep 17 00:00:00 2001 From: Carsten Lohrke Date: Sun, 18 Mar 2007 21:39:30 +0000 Subject: [PATCH] Be a bit more exact about which library directories to search, bug #162921. --- eclass/kde-meta.eclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eclass/kde-meta.eclass b/eclass/kde-meta.eclass index d033c516b07f..68bcb396659a 100644 --- a/eclass/kde-meta.eclass +++ b/eclass/kde-meta.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.81 2006/09/27 23:10:10 carlo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kde-meta.eclass,v 1.82 2007/03/18 21:39:30 carlo Exp $ # # Author Dan Armak # Simone Gotti @@ -325,7 +325,8 @@ function kde-meta_src_unpack() { cd $S mkdir -p ${dirname} cd ${dirname} - if [[ ! "$(find ${PREFIX}/$(get_libdir)/ -name "${libname}*")" == "" ]]; then + search_path=$(echo ${PREFIX}/$(get_libdir)/{,kde3/{,plugins/{designer,styles}}}) + if [[ ! "$(find ${search_path} -maxdepth 1 -name "${libname}*" 2>/dev/null)" == "" ]]; then echo "Symlinking library ${libname} under ${PREFIX}/$(get_libdir)/ in source dir" ln -s ${PREFIX}/$(get_libdir)/${libname}* . else -- 2.26.2