From 3323662ee096869bc52ea02fc6eebb98feb1aa81 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Mon, 13 Feb 2023 13:12:54 +1000 Subject: [PATCH] makepkg: do not recurse into LIB_DIRS when looking for library provides We should only find library provides in the configured directories, and not their subdirectories. Signed-off-by: Allan McRae --- scripts/libmakepkg/autodep/library_provides.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/libmakepkg/autodep/library_provides.sh.in b/scripts/libmakepkg/autodep/library_provides.sh.in index ed1206e6..46252879 100644 --- a/scripts/libmakepkg/autodep/library_provides.sh.in +++ b/scripts/libmakepkg/autodep/library_provides.sh.in @@ -35,7 +35,7 @@ library_provides() { continue; fi - mapfile -t filenames < <(find "$pkgdir/$dir" -type f | LC_ALL=C sort) + mapfile -t filenames < <(find "$pkgdir/$dir" -maxdepth 1 -type f | LC_ALL=C sort) for fn in "${filenames[@]}"; do # check we have a shared library