From 6182bff272119eabf7c1ea4003ce1d89ea092cef Mon Sep 17 00:00:00 2001 From: Michal Berger Date: Tue, 1 Sep 2020 19:23:00 +0200 Subject: [PATCH] pkgdep/common: Fix liburing's .so lookup liburing.so is a link to actual lib created under /lib, not /usr/lib{,64}. Instead of checking hardcoded paths, simply check the ld cache. Change-Id: I65954490d0b79e17de791d8045a1758cbbb381f5 Signed-off-by: Michal Berger Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4020 Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Reviewed-by: Aleksey Marchuk Reviewed-by: Karol Latecki --- scripts/pkgdep/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pkgdep/common.sh b/scripts/pkgdep/common.sh index bf673ff94..80ab9bfe1 100755 --- a/scripts/pkgdep/common.sh +++ b/scripts/pkgdep/common.sh @@ -4,7 +4,7 @@ install_liburing() { local GIT_REPO_LIBURING=https://github.com/axboe/liburing.git local liburing_dir=/usr/local/src/liburing - if [[ -e /usr/lib64/liburing.so ]]; then + if [[ $(ldconfig -p) == *liburing.so* ]]; then echo "liburing is already installed. skipping" else if [[ -d $liburing_dir ]]; then