Page 1 of 2

Check Dependencies with right-click-action

Posted: Fri 09 Mar 2012, 02:59
by RSH
Hi,

this Xdialog tool can check dependencies by doing a right-click on a binary.

- German and English Localization
- gets the results of -v (full information) and -u (unused direct dependencies).
- results are going to /tmp/lddout_tmp
- /tmp/lddout_tmp will automatically load into a simple text editor or into xterm (option to choose)

RSH

Update:

Version 0.1 did have a tiny small text issue (not ldd) - never mind.

Update:
RSHsDepCheck-0.2-xterm.pet sends results to terminal (xterm) - thanks to seaside.

Update:
RSHsDepCheck-0.3.pet gives option to send results to text editor or terminal

Update:
RSHsDepCheck-0.4.pet - german text bug fix (one line was not translated)
- 0.4 has not been published, because i found new suggestion by :o :shock:
666philb wrote:hi RSH .... any chance of the terminal that gets left open , being in the same directory as whatever you dependency checked?

cheers

666philb
Update:
RSHsDepCheck-0.5.pet -stays open in directory of checked application! :D

Just type dir and see... :D :lol:

Update:
RSHsDepCheck-0.6.pet - works now also on libraries - and now: all will be happy ? :D

Update:
RSHsDepCheck-0.7.pet - shows missing dependencies at top of text :D

Image

Note, as 666philb wrote: to get more speed, comment some lines out (sleep x). I did just add these lines to make sure my own "echoed" comments are not colliding with the output of ldd. 8)

Posted: Sun 11 Mar 2012, 14:34
by 666philb
cheers RSH.... very useful

any ideas on how to change this slightly so that it runs in the terminal? actually ldd's the binary in the terminal, and leaves the terminal open and useable.?

cheers 666philb

Posted: Tue 13 Mar 2012, 00:06
by RSH
666philb wrote:cheers RSH.... very useful

any ideas on how to change this slightly so that it runs in the terminal? actually ldd's the binary in the terminal, and leaves the terminal open and useable.?

cheers 666philb
Attached script sends results to xterm. Xterm will start twice. First xterm contains the results, second xterm stays open, because first xterm will close after hit enter.

I'm working on a single xterm solution, but actually that's all i can do.

The text editor doesn't start using this script. To start the text editor, remove "#" in front of "XDEdit" at the end of the script.

Edit: script removed. Updated version in the first post.

Posted: Tue 13 Mar 2012, 04:33
by RSH
666philb wrote:cheers RSH.... very useful

any ideas on how to change this slightly so that it runs in the terminal? actually ldd's the binary in the terminal, and leaves the terminal open and useable.?

cheers 666philb
I think, it's done. Look at the first post.

Posted: Tue 13 Mar 2012, 06:26
by RSH
Update Version 0.3!

Check Dependencies with right-click-action.

Version 0.3 gives option to send the results to text editor and/or to xterm!

See first post.

Posted: Thu 15 Mar 2012, 17:32
by 666philb
cheers RSH i've been using this a fair old bit....... very usefull

Posted: Sat 17 Mar 2012, 16:24
by chrome307
Thanks for this as well ....... it works great :)

My text is in German? but that's okay, as there are only 2 options to choose from.

Posted: Sat 17 Mar 2012, 19:28
by don570
I'm busy writing a right click option to do file renaming.


but is it possible to 'grep' for lines that say there is a missing dependency.

Add these lines together and prepend them to the beginning
of your output file.

The simplest way to prepend is here.
http://www.cyberciti.biz/faq/bash-prepe ... s-to-file/

I used a more difficult method in my quick_launch application. :oops:

Posted: Sat 17 Mar 2012, 19:34
by 666philb
hi RSH .... any chance of the terminal that gets left open , being in the same directory as whatever you dependency checked?

cheers

666philb

Posted: Sat 17 Mar 2012, 19:40
by don570
Here's my latest work. I'll make it a right click option.

http://murga-linux.com/puppy/viewtopic. ... 812#612812

_______________________________________________

Posted: Sat 17 Mar 2012, 20:58
by RSH
666philb wrote:hi RSH .... any chance of the terminal that gets left open , being in the same directory as whatever you dependency checked?

cheers

666philb
Update:
RSHsDepCheck-0.5.pet -stays open in directory of checked application! :D

Just type dir and see... :D :lol:

RSHsDepCheck-0.5.pet is downloadable at first post. :D

Posted: Sat 17 Mar 2012, 22:08
by 666philb
excellent..... :)
you could also make 'checkdeps' appear in the menu, when you right click on a lib,

i've set it in mine .. but it should be default

I've commented out a few lines in mine, just so i get an immediate result in the term. And i would say it's exactly what i initially asked for in the other thread.

perfect

cheers :)

Posted: Sat 17 Mar 2012, 22:18
by RSH
666philb wrote:excellent..... :)
you could also make 'checkdeps' appear in the menu, when you right click on a lib,

i've set it in mine .. but it should be default
Would you please explain? I don't understand what you mean. Maybe a screenshot of what you did etc?

Posted: Sat 17 Mar 2012, 22:45
by 666philb
Image

i just right clicked on a lib and chose customize...

it symlinked your checkdeps to /root/.config/rox.sourceforge.net/SendTo/.application_x-sharedlib

Posted: Sat 17 Mar 2012, 23:01
by RSH
666philb wrote:i just right clicked on a lib and chose customize...

it symlinked your checkdeps to /root/.config/rox.sourceforge.net/SendTo/.application_x-sharedlib
Ah, ok. Thank you. I just didn't know, that this could also be done on libs. If i would have known this earlier it would have been already build in... :oops:

So, 0.6 is on the way... :D

Posted: Sat 17 Mar 2012, 23:17
by RSH
Done!

Version 0.6 is now also usable on libs. See first post! :D

Posted: Mon 19 Mar 2012, 11:28
by chrome307
Thanks again :)

Posted: Thu 22 Mar 2012, 23:52
by don570
When I install gnac (an Ubuntu application) I get this:

Code: Select all


 ldd gnac
	linux-gate.so.1 =>  (0xffffe000)
	libgstbase-0.10.so.0 => not found
	libgstpbutils-0.10.so.0 => not found
	libgsttag-0.10.so.0 => not found
	libgstreamer-0.10.so.0 => not found
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7794000)
	libunique-1.0.so.0 => not found
If you could grep the expression 'not found'
all the lines representing needed libraries could
be collected and put at the head.

_____________________________________________

Posted: Sat 24 Mar 2012, 01:59
by RSH
don570 wrote:When I install gnac (an Ubuntu application) I get this:

Code: Select all


 ldd gnac
	linux-gate.so.1 =>  (0xffffe000)
	libgstbase-0.10.so.0 => not found
	libgstpbutils-0.10.so.0 => not found
	libgsttag-0.10.so.0 => not found
	libgstreamer-0.10.so.0 => not found
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7794000)
	libunique-1.0.so.0 => not found
If you could grep the expression 'not found'
all the lines representing needed libraries could
be collected and put at the head.
Should be possible to do. Will give it a try within the next days.

RSHsDepCheck-0.7.pet

Posted: Wed 12 Sep 2012, 18:25
by RSH
Version 0.7 uploaded!

RSHsDepCheck-0.7.pet - now missing dependencies listed at top of text :D

Link is in the first post.

RSH