Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
git-bruh committed Sep 8, 2022
1 parent 184e803 commit ed14897
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ should_ignore_rpath() {
# shellcheck disable=2086
{ IFS=:; set -- $1; unset IFS; }

for path; do
for path do
# TODO maybe check if the RPATH is set to a redundant value
# like /lib or /usr/lib ?
# ORIGIN is relative - no need to ignore it.
Expand Down Expand Up @@ -726,15 +726,16 @@ pkg_fix_deps() {
value=${value%%\]*}

should_ignore_rpath "$value" && continue 2
break # Found RPATH which shouldn't be ignored
# Found RPATH which shouldn't be ignored
break
esac
done <<EOF
$elf
EOF

# The readelf mode requires ldd's output to resolve the library
# path for a given file. If ldd fails, silently skip the file.
ldd="$(ldd -- "$pkg_dir/$repo_name$_file" 2>/dev/null)" || continue
ldd=$(ldd -- "$pkg_dir/$repo_name$_file" 2>/dev/null) || continue
ok "$elf" || elf=$ldd

# Iterate over the output of readelf or ldd, extract file names,
Expand Down

0 comments on commit ed14897

Please sign in to comment.