diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-12 07:01:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-14 06:09:35 +0000 |
commit | 53fb2f62ab306b8f4cb8b4ef55e8f7e6bdec475c (patch) | |
tree | cb1342892b965db9a9c7a13834dca1b59ad19561 /abuild.in | |
parent | 0af203816840924afae5a162acf2b947b620aa23 (diff) | |
download | abuild-53fb2f62ab306b8f4cb8b4ef55e8f7e6bdec475c.tar.gz abuild-53fb2f62ab306b8f4cb8b4ef55e8f7e6bdec475c.tar.bz2 abuild-53fb2f62ab306b8f4cb8b4ef55e8f7e6bdec475c.tar.xz abuild-53fb2f62ab306b8f4cb8b4ef55e8f7e6bdec475c.zip |
abuild: fix typo of rpaths
Diffstat (limited to 'abuild.in')
-rwxr-xr-x | abuild.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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" } |