Skip to content
Snippets Groups Projects
Commit f43f6d31 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: fix ldpath handling

it wrongly scanned /lib instead of $datadir/lib, causing bad things to
happen when scanning provides
parent 21fb14d4
No related branches found
No related tags found
No related merge requests found
......@@ -1020,7 +1020,7 @@ find_scanelf_paths() {
local datadir="$1"
local paths="$datadir/lib:$datadir/usr/lib" i= rpaths=
if [ -n "$ldpath" ]; then
paths="$paths:$(echo "$ldpath" | sed "s|\(^\|:\)|\1$datadir|g")"
paths="$paths:$(echo "${datadir}${ldpath}" | sed "s|:|:$datadir|g")"
fi
# search in all rpaths
for rpaths in "$pkgbasedir"/.control.*/.rpaths; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment