Skip to content

Commit

Permalink
Update RPATH fix script for latest chrpath (#169)
Browse files Browse the repository at this point in the history
Latest chrpath outputs RUNPATH=/path instead of RPATH=/path
  • Loading branch information
at-wat authored May 31, 2024
1 parent 1f39ab2 commit 04de67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generate_rospkg_apkbuild/APKBUILD.em.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ package() {
# Tweak invalid RPATH
find $pkgdir -name "*.so" | while read so; do
chrpath_out=$(chrpath ${so} || true)
if echo ${chrpath_out} | grep -q "RPATH="; then
rpath=$(echo -n "${chrpath_out}" | sed -e "s/^.*RPATH=//")
if echo ${chrpath_out} | grep -q "R\(UN\)\?PATH="; then
rpath=$(echo -n "${chrpath_out}" | sed -e "s/^.*R\(UN\)\?PATH=//")
if echo "${rpath}" | grep -q -e "\(home\|aports\)"; then
echo "RPATH contains home/aports!: ${rpath}"
rpathfix=$(echo -n "${rpath}" | tr ":" "\n" \
Expand Down

0 comments on commit 04de67e

Please sign in to comment.