![](https://secure.gravatar.com/avatar/835058edfad5355fce9933cd306e2936.jpg?s=120&d=mm&r=g)
pitillo [2007-12-05 08:26]: Hi,
I am using the output of revdep without parms (at man page it's shown), like this: prt-get update -fr `revdep`
I checked the output and source of revdep and it is looking for the pattern "not found" with ldd. There are some cases, for example, firefox, wich they aren't really binaries and revdep shows them.
I am not sure if revdep must work in this way, but if someone is using it in the way I said, some ports will be rebuilded and this isn't really necessary.
I changed the line in revdep's source wich looks for the pattern: ldd "/$f" 2> /dev/null |grep -E "not found | not a dynamic" &> /dev/null
Can someone tell me if this is a good idea or if I am making it bad. In the case this is well done and if it's a good idea, can be added to revdep?
Look at lines 24..25 in the revdep script: file -b "/$f" |grep -q 'shared' if [ $? -eq 0 ]; then ... That *should* guarantee that it only continues if the file is a shared object or a shared executable. And when I run "revdep firefox", that test really prevents the ldd call on eg /usr/lib/firefox/firefox. So I don't see why it fails for you :( Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?