LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-10-2010, 03:54 PM   #31
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553

New updated version! Wednesday Mar 10 18:00hrs AST or so (GMT -04:00) 2010

Now accepts the 'ridiculous' option, does (more) actual "missing dependency scanning", has better output formatting, and the visual display is fixed to those paths/files that were confusing us are no longer printed to the screen during execution.
 
1 members found this post helpful.
Old 03-11-2010, 03:23 AM   #32
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,599

Rep: Reputation: 292Reputation: 292Reputation: 292
Very nice Sasha! I got a couple of missing libs it seems. No biggie since i don't need them at the moment.
 
Old 03-11-2010, 04:06 AM   #33
samac
Senior Member
 
Registered: Mar 2004
Location: Westray, Orkney
Distribution: Linux Mint 17.1
Posts: 1,424

Rep: Reputation: 138Reputation: 138
Sasha many thanks this is a great diagnostic tool. I have a few suggestions which are purely cosmetic I hope you will adopt them.

1) Version numbering, so we can see if need to install an updated version.
2) /bin/bash as the default shebang, I would reckon 99% of Slackware users just use Bash
3) echo "This is going to take a while ....." after "round 3" just to let people know.
4) cat orphans.log to screen by default so that you can see some results.

As you can see nothing too dramatic, but I think they would add to your fine work.

samac

P.S. If I am reading orphans.log correctly my system is as clean as a whistle.
 
Old 03-11-2010, 04:25 AM   #34
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Yep Many Thanks girlie!

Code:
root@slackware:~/Downloads# chmod +x orphans.txt
root@slackware:~/Downloads# ./orphans.txt
## Slackware check for orphaned/missing libraries: Thu Mar 11 05:20:48 EST 2010
## Count installed packages: 831
## Round 1 -- Quick check for missing libs (via broken symlinks)...
# Done!             
## Round 2 -- Checking for orphan libs (not belonging to an installed package)...
# Done!             
## Round 3 -- Checking for missing dependencies (req'd by installed libs/binaries)...
# Done!              
root@slackware:~/Downloads#
Guess I'm good to go....

Last edited by linus72; 03-11-2010 at 04:28 AM.
 
Old 03-11-2010, 04:57 AM   #35
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Guess I'm good to go....
did you checked the logfile in the current directory?
 
1 members found this post helpful.
Old 03-11-2010, 05:10 AM   #36
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
OH
Mmmmm...seems I am missing stuff heh?!

Code:
## Slackware check for orphaned/missing libraries: Thu Mar 11 05:20:48 EST 2010

## Count installed packages: 831

## Round 1 -- Quick check for missing libs (via broken symlinks)...

# Done!
## Round 2 -- Checking for orphan libs (not belonging to an installed package)...
## Evaluating objects in: /usr/i486-slackware-linux/lib
## Evaluating objects in: /usr/lib/firefox-3.6
## Evaluating objects in: /usr/lib/seamonkey
## Evaluating objects in: /usr/local/lib
# Done!
## Round 3 -- Checking for missing dependencies (req'd by installed libs/binaries)...
## Evaluating objects in: /usr/local/sbin
## Evaluating objects in: /usr/sbin
## Evaluating objects in: /sbin
## Evaluating objects in: /usr/local/bin
## Evaluating objects in: /usr/bin
3: Missing dependencies for: /usr/bin/audacious-arts-helper
3:> Missing: libartsc.so.0
3: Missing dependencies for: /usr/bin/kde4-window-decorator
3:> Missing: libkdecorations.so.4
3:> Missing: libkdecore.so.5
3:> Missing: libkdeui.so.5
3:> Missing: libplasma.so.3
3: Missing dependencies for: /usr/bin/oprof_start
3:> Missing: libqt-mt.so.3
## Evaluating objects in: /bin
## Evaluating objects in: /usr/games
## Evaluating objects in: /usr/lib/qt/bin
# Done!
I dont have any KDE stuff?

How does one find out Where to get missing libs???

Thanks Repo!
 
Old 03-11-2010, 07:59 AM   #37
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.0
Posts: 1,163
Blog Entries: 29

Rep: Reputation: 131Reputation: 131
Excellent work, Sasha!
 
Old 03-11-2010, 10:49 AM   #38
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Hiya folks!

I'm using Links at the moment, so no fancy quoting & replying in sequence at the moment for me.

Thanks for the suggestions above -- I have a couple more improvements of my own planned as well, and I will consider those suggestions above -- though the automatic version detection (if I read that right) pretty much implies having the thing hosted somewhere ( I guess) so that it can check *somewhere* for what version is current?

Sorry if I misinterpreted that -- again, trying to read & reply coherently using Links, is a task this time of day.

FWIW, since my borked install (wherein I ended up deleting all my lib dirs to fix it) and since the last update to my script here, I have been using the script on my machine -- and WOW, it turned up a lot of fscked stuff (to be expected) but it also made it REALLY easy to figure out what had to be fixed. Between this script, and slackpkg `search` function, I now have my machine spic and span, no dangling ends!

Unfortunately, despite all else being perfect, I STILL am unable to run the new Xorg in -current. At this point, it beats the heck out of me what the problem is.

Well, enough of my rambling! Looks like I gotta downgrade my X again ( AGAIN!!! ) so I can log in here properly and get my morning LQ fix.

Cheers folks! More suggestions welcome, I appreciate the feedback.

Sasha
 
Old 03-11-2010, 11:32 AM   #39
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781

Rep: Reputation: 98
Great work, but here is a suggestion for maybe a few iterations time. How about if the script could move the orphaned files to say a quarantine directory which would make it easier to remove them if they are definitely not needed.
 
Old 03-11-2010, 12:01 PM   #40
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Hi vdemuth, thanks for that suggestion!

While I will keep it in mind (and had already considered something along these lines with the $SIMULATION variable actually determining the action) it is not likely that I will soon add any functionality that does anything 'automatically' along the lines of moving files around on teh users' system. The reason is that, maybe they have stuff installed that they know full-well is not included in a package, and quarantining it for removal would be definitely bad.

I believe for the forseeable future, the intent of my script will be to only _provide info_ to the user; what they choose to do with the info, is up to them.

As an example of what you are getting at, here's what I did on my machine this morning, to clean out binaries that belonged to packages I did not have installed:

shell$ cat orphans.log | grep "3: Missing" | xargs rm

which accomplishes basically the same idea that would be accomplished if the script were to move/remove the items itself.

SO, I think it's best to leave the final action to the user (more Slackware-like this way, and I think we like it like that).
Of course, suggestions further on this subject, and any other, are welcome.

Sasha
 
Old 03-11-2010, 12:33 PM   #41
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,276

Rep: Reputation: 229Reputation: 229Reputation: 229
@linus72

I tried that script in Slackware32 13.0 and it reported the same missing libraries:

Code:
3: Missing dependencies for: /usr/bin/audacious-arts-helper
3:> Missing: libartsc.so.0
3: Missing dependencies for: /usr/bin/oprof_start
3:> Missing: libqt-mt.so.3
I did full installation of Slackware so I suppose these omissions are typical for version 13.0.

On the other hand I learned about oprofile package and I started to wonder how I can use it for my purposes.

***

I tried that search engine http://slak.homelinux.org/pkgs/ and I discovered these libraries are from packages arts and qt from Slackware 12.2.

Last edited by w1k0; 03-11-2010 at 07:11 PM.
 
Old 03-12-2010, 05:48 AM   #42
rusyd
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Rep: Reputation: 1
this script only search for orphaned libraries in directories listed in /etc/ld.so.conf
is it possible orphaned libraries exist in other directories?
 
Old 03-12-2010, 05:58 AM   #43
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Definitely possible. If you pass the 'ridiculous' option to the version you have, it will search more places.

But, you should wait, because in about 15 minutes or so (barring any really bizarre occurrences) there will be "Version 1.04" posted here, which has some added code to search for both orphaned libs AND binaries, in every locatable lib and bin directory on the machine. I'm just giving it a final test-run here, after which I will post it.

Sasha
 
Old 03-12-2010, 06:22 AM   #44
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
New version: 1.04

Updated: Fri Mar 12 12:29:50 UTC 2010
 
Old 03-12-2010, 06:55 AM   #45
rusyd
LQ Newbie
 
Registered: Oct 2009
Posts: 13

Rep: Reputation: 1
i read the first version of your script and didnt find that option
i just downloaded the latest version
thanks, it's great work
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moved ALL libraries from /lib to /local/ teaser Linux - Newbie 10 07-25-2008 08:19 AM
Broken symlinks aren't red anymore LocoMojo Slackware 21 11-19-2007 09:24 AM
Removing .a libraries in /usr/lib/ kunkie Linux - General 1 08-27-2005 11:44 PM
Broken symlinks in '/' dir after compile and checkinstall Haiyadragon Slackware 3 02-08-2005 10:55 AM
Broken symlinks technopasta Linux - Software 1 05-29-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration