Re: [gentoo-user] Finding orphaned libs

2009-06-10 Thread Dale
Mike Kazantsev wrote: On Mon, 08 Jun 2009 19:27:39 -0500 Dale rdalek1...@gmail.com wrote: Also, be careful when you parse the output of the command. Most of the .pyc and .pyo files in the python2.5 directories are byte-compiled version that python generated dynamically the first time

Re: [gentoo-user] Finding orphaned libs

2009-06-10 Thread Mike Kazantsev
On Wed, 10 Jun 2009 02:53:52 -0500 Dale rdalek1...@gmail.com wrote: That's not quite correct: .py[co] are generated by emerge right after package installaton and these won't come back unless you use these libs as root, since python won't have write access to these paths and will be

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Alan McKinnon
On Tuesday 09 June 2009 02:27:39 Dale wrote: That's sort of what I was thinking. It was generated when it was started up the first time. I also noticed some things that I installed in the Seamonkey directory too. Adblock was one of those. Tho there was a good many of them, I suspect most

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Joerg Schilling
Willie Wong ww...@math.princeton.edu wrote: qfile --orphans $(find -H /usr/lib /lib -type f) which avoids checking all the symlinks. In case that you find implementation works correctly, this will not change anything unless either /usr/lib or /lib are symlinks. If you however use find

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 09 Jun 2009 12:05:05 +0200, Joerg Schilling wrote: qfile --orphans $(find -H /usr/lib /lib -type f) which avoids checking all the symlinks. In case that you find implementation works correctly, this will not change anything unless either /usr/lib or /lib are symlinks.

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Mike Kazantsev
On Mon, 08 Jun 2009 19:27:39 -0500 Dale rdalek1...@gmail.com wrote: Also, be careful when you parse the output of the command. Most of the .pyc and .pyo files in the python2.5 directories are byte-compiled version that python generated dynamically the first time they are used. For

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Volker Armin Hemmann
On Montag 08 Juni 2009, Neil Bothwick wrote: qfile --orphans $(find -H /usr/lib /lib -type f) qfile --orphans $(find -H /usr/lib /lib -type f) zsh: argument list too long: qfile bash energy ~ # qfile --orphans $(find -H /usr/lib /lib -type f) bash: /usr/bin/qfile: Argument list too long bash

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Joerg Schilling
Volker Armin Hemmann volkerar...@googlemail.com wrote: On Montag 08 Juni 2009, Neil Bothwick wrote: qfile --orphans $(find -H /usr/lib /lib -type f) qfile --orphans $(find -H /usr/lib /lib -type f) zsh: argument list too long: qfile This is not a zsh limitation but a Linux limitation. You

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Volker Armin Hemmann
On Dienstag 09 Juni 2009, Joerg Schilling wrote: Volker Armin Hemmann volkerar...@googlemail.com wrote: On Montag 08 Juni 2009, Neil Bothwick wrote: qfile --orphans $(find -H /usr/lib /lib -type f) qfile --orphans $(find -H /usr/lib /lib -type f) zsh: argument list too long: qfile

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Joerg Schilling
Mickaël Bucas mbu...@gmail.com wrote: You may avoid the problem with find . -exec prog args {} + The right way to handle any size for the list returned by find, is by using xargs : find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans No, this is definitely wrong: the right way to

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 9 Jun 2009 16:04:41 +0200, Volker Armin Hemmann wrote: This is not a zsh limitation but a Linux limitation. You may have longer arg lists if you use Solaris ;-) You may avoid the problem with find . -exec prog args {} + ah, thank you - I just copied from Neil (and had a look

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Mickaël Bucas
2009/6/9 Joerg Schilling joerg.schill...@fokus.fraunhofer.de: Mickaël Bucas mbu...@gmail.com wrote: You may avoid the problem with find . -exec prog args {} + The right way to handle any size for the list returned by find, is by using xargs : find -H /usr/lib /lib -type f | xargs -d'\n'

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Paul Hartman
On Tue, Jun 9, 2009 at 9:36 AM, Neil Bothwickn...@digimed.co.uk wrote: If it's been around 19 years, why doesn't Google know anything about it? What is it? from the manpage of find, it even compares it to the xargs method: -exec command {} + This variant of the -exec action runs the specified

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Mickaël Bucas
2009/6/9 Joerg Schilling joerg.schill...@fokus.fraunhofer.de Volker Armin Hemmann volkerar...@googlemail.com wrote: On Montag 08 Juni 2009, Neil Bothwick wrote: qfile --orphans $(find -H /usr/lib /lib -type f) qfile --orphans $(find -H /usr/lib /lib -type f) zsh: argument list too

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 09 Jun 2009 16:15:21 +0200, Joerg Schilling wrote: find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans No, this is definitely wrong: the right way to handle this is execplus (since 19 years). If it's been around 19 years, why doesn't Google know anything about it? What

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote: On Tue, 9 Jun 2009 16:04:41 +0200, Volker Armin Hemmann wrote: This is not a zsh limitation but a Linux limitation. You may have longer arg lists if you use Solaris ;-) You may avoid the problem with find . -exec prog args {} + ah,

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 9 Jun 2009 09:42:34 -0500, Paul Hartman wrote: -exec command {} + This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end; the total number of invocations of the command will be

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Joerg Schilling
Neil Bothwick n...@digimed.co.uk wrote: On Tue, 9 Jun 2009 09:42:34 -0500, Paul Hartman wrote: -exec command {} + This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end; the total

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Etaoin Shrdlu
On Tuesday 9 June 2009, 16:36, Neil Bothwick wrote: On Tue, 09 Jun 2009 16:15:21 +0200, Joerg Schilling wrote: find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans No, this is definitely wrong: the right way to handle this is execplus (since 19 years). If it's been around 19

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Etaoin Shrdlu
On Tuesday 9 June 2009, 16:52, Neil Bothwick wrote: On Tue, 9 Jun 2009 09:42:34 -0500, Paul Hartman wrote: -exec command {} + This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end;

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 9 Jun 2009 17:21:32 +0200, Etaoin Shrdlu wrote: command file 1 file 2 file 3 or command file 1 file 2 file 3 The latter. Thanks, and bye-bye xargs (not that I used it very often). -- Neil Bothwick Cross-country skiing is great in small countries. signature.asc

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Neil Bothwick
On Tue, 09 Jun 2009 16:59:39 +0200, Joerg Schilling wrote: How does this handle quoted filenames? correctly. Are you part Vorlon ;-) -- Neil Bothwick The world is a tragedy to those who feel, but a comedy to those who think.(Horace Walpole) signature.asc Description: PGP signature

Re: [gentoo-user] Finding orphaned libs

2009-06-09 Thread Alan McKinnon
On Tuesday 09 June 2009 17:20:49 Etaoin Shrdlu wrote: On Tuesday 9 June 2009, 16:36, Neil Bothwick wrote: On Tue, 09 Jun 2009 16:15:21 +0200, Joerg Schilling wrote: find -H /usr/lib /lib -type f | xargs -d'\n' qfile --orphans No, this is definitely wrong: the right way to handle this

[gentoo-user] Finding orphaned libs

2009-06-08 Thread Alan McKinnon
Hi, Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in /usr/lib/*.so.* ; do equery belongs $I ; done which strikes me as being a tad overkill... -- alan dot mckinnon at gmail dot com

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Neil Bothwick
On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in /usr/lib/*.so.* ; do equery belongs $I ; done qfile --orphans /usr/lib/*.so.* or,

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Alan McKinnon
On Monday 08 June 2009 22:54:08 Neil Bothwick wrote: On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in /usr/lib/*.so.* ; do equery

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Dale
Alan McKinnon wrote: On Monday 08 June 2009 22:54:08 Neil Bothwick wrote: On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Willie Wong
On Mon, Jun 08, 2009 at 09:54:08PM +0100, Penguin Lover Neil Bothwick squawked: On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Dale
Neil Bothwick wrote: On Mon, 8 Jun 2009 22:44:18 +0200, Alan McKinnon wrote: Is there an easy way to detect the orphaned libs on and old machine who's install dates back to 2004? The only idea I can come up with is for I in /usr/lib/*.so.* ; do equery belongs $I ; done qfile

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Willie Wong
On Mon, Jun 08, 2009 at 06:52:23PM -0500, Penguin Lover Dale squawked: Questions: You knew I subscribed to this list. lol I ran the command: find -H /usr/lib /lib -type f | xargs qfile -o and I got a lot of hits. I'm just going to post snippets of the directories here. It is a LONG

Re: [gentoo-user] Finding orphaned libs

2009-06-08 Thread Dale
Willie Wong wrote: On Mon, Jun 08, 2009 at 06:52:23PM -0500, Penguin Lover Dale squawked: Questions: You knew I subscribed to this list. lol I ran the command: find -H /usr/lib /lib -type f | xargs qfile -o and I got a lot of hits. I'm just going to post snippets of the directories