mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-08 15:50:38 +00:00
abuild: fix typo of rpaths
This commit is contained in:
parent
0af2038168
commit
53fb2f62ab
@ -924,18 +924,18 @@ trace_apk_deps() {
|
||||
|
||||
find_scanelf_paths() {
|
||||
local controldir="$1" datadir="$2"
|
||||
local paths="$datadir/lib:$datadir/usr/lib" i= rpath=
|
||||
local paths="$datadir/lib:$datadir/usr/lib" i= rpaths=
|
||||
if [ -n "$ldpath" ]; then
|
||||
paths="$paths:$(echo "$ldpath" | sed "s|\(^\|:\)|\1$datadir|g")"
|
||||
fi
|
||||
# search in all rpaths
|
||||
for rpath in "$pkgbasedir"/.control.*/.rpath; do
|
||||
[ -f "$rpath" ] || continue
|
||||
for rpaths in "$pkgbasedir"/.control.*/.rpaths; do
|
||||
[ -f "$rpaths" ] || continue
|
||||
while read i; do
|
||||
if [ -d "$datadir/$i" ]; then
|
||||
paths="$paths:$datadir/$i"
|
||||
fi
|
||||
done < "$rpath"
|
||||
done < "$rpaths"
|
||||
done
|
||||
echo "$paths"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user