diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-30 12:16:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-30 12:16:44 +0000 |
commit | f43f6d312b52702ce8020477960ab0521018b745 (patch) | |
tree | 3a2d82647d03ec3109d803790a13ba50e770faae /abuild.in | |
parent | 21fb14d4e1940caab626277feb38a5e867b1b8a9 (diff) | |
download | abuild-f43f6d312b52702ce8020477960ab0521018b745.tar.gz abuild-f43f6d312b52702ce8020477960ab0521018b745.tar.bz2 abuild-f43f6d312b52702ce8020477960ab0521018b745.tar.xz abuild-f43f6d312b52702ce8020477960ab0521018b745.zip |
abuild: fix ldpath handling
it wrongly scanned /lib instead of $datadir/lib, causing bad things to
happen when scanning provides
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |