Skip to content

Commit 0e42206

Browse files
committed
Fix remove_rpath (no such thing as a "print" shell command)
1 parent 5be1d35 commit 0e42206

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

remove_rpath

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ while read path; do
3030
RPATH=$(chrpath -l "$path" 2>/dev/null| grep -e RUNPATH -e RPATH|sed -e 's#.*RPATH=##g' -e 's#.*RUNPATH=##g')
3131
[ -z "$RPATH" ] && continue
3232
NEWRPATH=
33-
for RDIR in $(print '%s\n' $RPATH|cut -d: --output-delimiter=" " -f1-); do
33+
for RDIR in $(echo $RPATH|cut -d: --output-delimiter=" " -f1-); do
3434
case $RDIR in
35-
/lib|/lib32|/libx32|/lib64) print '%s\n' removing $RDIR from rpath;;
36-
/usr/lib|/usr/lib32|/usr/libx32|/usr/lib64) print '%s\n' removing $RDIR from rpath;;
35+
/lib|/lib32|/libx32|/lib64) printf 'removing %s from rpath\n' $RDIR;;
36+
/usr/lib|/usr/lib32|/usr/libx32|/usr/lib64) printf 'removing %s from rpath\n' $RDIR;;
3737
# often RPM %buildroot is in RPATH, delete it
38-
*/BUILD/*) print '%s\n' removing $RDIR from rpath;;
38+
*/BUILD/*) printf 'removing %s from rpath\n' $RDIR;;
3939
# often for a directory /.libs/ inside %buildroot
40-
*/.libs/*|*/.libs) print '%s\n' removing $RDIR from rpath;;
40+
*/.libs/*|*/.libs) printf 'removing %s from rpath\n' $RDIR;;
4141
*)
4242
if [ -z "$NEWRPATH" ]; then
4343
NEWRPATH="$RDIR"

0 commit comments

Comments
 (0)