Check Dependencies with right-click-action

Miscellaneous tools
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Check Dependencies with right-click-action

#1 Post 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)
Attachments
RSHsDepCheck-0.7.pet
RSHsDepCheck-0.7.pet - now shows missing dependencies at top of text
(5.06 KiB) Downloaded 865 times
RSHsDepCheck-0.6.pet
RSHsDepCheck-0.6.pet - works now also on libraries
(4.95 KiB) Downloaded 713 times
RSHsDepCheck-0.5.pet
RSHsDepCheck-0.5.pet -stays open in directory of checked application!
(4.89 KiB) Downloaded 702 times
RSHsDepCheck-0.3.pet
Check Dependencies with right-click-action - option to send the results to text editor or to xterm!
(4.79 KiB) Downloaded 696 times
RSHsDepCheck-0.2-xterm.pet
Check Dependencies with right-click-action - results are going to xterm!
(4.41 KiB) Downloaded 651 times
RSHsDepCheck-0.2.pet
Check Dependencies with right-click-action - results are going to simple text editor!
(4.49 KiB) Downloaded 706 times
Last edited by RSH on Wed 12 Sep 2012, 20:44, edited 7 times in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#2 Post 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
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#3 Post 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.
Last edited by RSH on Tue 13 Mar 2012, 04:38, edited 1 time in total.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#4 Post 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.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#5 Post 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.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#6 Post by 666philb »

cheers RSH i've been using this a fair old bit....... very usefull
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#7 Post 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.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#8 Post 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:

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#9 Post 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
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#10 Post by don570 »

Here's my latest work. I'll make it a right click option.

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

_______________________________________________

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#11 Post 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
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#12 Post 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 :)
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#13 Post 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?
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#14 Post 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
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#15 Post 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
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#16 Post by RSH »

Done!

Version 0.6 is now also usable on libs. See first post! :D
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#17 Post by chrome307 »

Thanks again :)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#18 Post 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.

_____________________________________________

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#19 Post 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.
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

RSHsDepCheck-0.7.pet

#20 Post 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
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Post Reply