Hello, 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? Regards. Learning bit by bit -pitillo-
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?
On Wed, 12 Dec 2007 12:47:18 +0100 Tilman Sauerbeck <tilman@crux.nu> wrote:
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. You are in true.
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 :( Was my fault because I didn't run it well. I miss to export LD_LIBRARY_PATH before running revdep to check libraries in their non standard location. (Thanks for Romster who remember me to do this)
Regards, Tilman Thank you a lot for your time, work, patience and this reply. Regards.
Learning bit by bit. -pitillo-
participants (2)
-
pitillo
-
Tilman Sauerbeck