From bb71cbcb22500589b982ea16a3b85748fb328234 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 6 Jun 2013 13:47:27 +0200 Subject: [PATCH] attempt to fix dangling symliknks --- rpm/rvm-ruby.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpm/rvm-ruby.spec b/rpm/rvm-ruby.spec index 3050fb7..801cc13 100644 --- a/rpm/rvm-ruby.spec +++ b/rpm/rvm-ruby.spec @@ -153,7 +153,11 @@ find $br -type f -print0 | xargs -0 sed -i "s,$br,$slashes,g" # Fix symlinks with bad path for f in $(find $br -type l |grep "$br"); do - ln -sfn $(readlink -f $f |sed "s,$br,,") $f +# original version read like this +# ln -sfn $(readlink -f $f |sed "s,$br,,") $f +# however in the PL environment, readlink transforms /longbuildroot into /build, +# and then sed fails to do its job, so readlink does not seem such a good idea + ln -sfn $(echo $f | sed "s,^$br,,") $f done find $br -maxdepth 1 -name '.*' -exec rm -rf {} \; -- 2.45.2