-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 25 June 2003 05:35 pm, John wrote:
Ummm...I don't know a thing about programming, and looking at those scripts just made me think I had to go somewhere to learn to read and write Chinese. lol Would I be in the wrong asking if you could send a copy of whatever script(s) you have changed to do this? I'll just try it out and save the originals as
and see if it/they work well enough for me, and if so, I'll just leave it like that. Thanks for the help and pointers.
Basically, I just filtered out libGLcore wherever I saw ldd in there. Many of them may be unnecessary, but I wanted to be sure it would never come back to haunt me ever again. The only files modified are find-req.pl, find-requires, and find-requires.perl. To apply this, save this message to a file and do the following: cd /usr/lib/rpm patch < /path/to/saved_file Hope that helps. - ---- cut here ---- - --- find-req.pl 2003-03-13 18:16:00.000000000 -0400 +++ find-req.pl 2003-05-22 09:23:31.000000000 -0300 @@ -106,12 +106,13 @@ *lib*.so*) ldd $file 2>/dev/null | awk '/\=\>/ { print $1 }' \ - - | print_deps --identifier so; + | grep -v 'libGLcore.so' | print_deps --identifier so; # keep this for backward compatibility till we have converted # everything. - - ldd $file 2>/dev/null | awk '/\=\>/ { print $1 }'; + ldd $file 2>/dev/null | awk '/\=\>/ { print $1 }' \ + | grep -v 'libGLcore.so'; ;; @@ -191,7 +192,8 @@ *) /usr/ucb/file -L $file 2>/dev/null | grep executable | cut -d: -f1 |\ - - xargs ldd 2>/dev/null | awk '/\=\>/ { print $1 }' | xargs -n 1 basename; + xargs ldd 2>/dev/null | awk '/\=\>/ { print $1 }' | grep -v 'libGLcore.so' |\ + xargs -n 1 basename; echo $file | egrep '\.((cgi)|(ps)|(pdf)|(png)|(jpg)|(gif)|(tiff)|(tif)|(xbm)|(html)|(htm)|(shtml)|(jhtml))$' | xargs cat | httprequires - --- find-requires 2003-03-13 18:16:00.000000000 -0400 +++ find-requires 2003-05-22 09:25:43.000000000 -0300 @@ -41,7 +41,7 @@ /=>/ { sub(/.*\//, "", $1); print $1 - - }' + }' | grep -v 'libGLcore.so' for f in $liblist; do ldd $f @@ -49,7 +49,7 @@ /=>/ { sub(/.*\//, "", $1); print $1 - - }' + }' | grep -v 'libGLcore.so' for f in $scriptlist; do test -x $f && head -1 $f @@ -73,5 +73,5 @@ } } LIBNAME="" - - }' | grep -v 'libNoVersion.so' + }' | grep -v 'libNoVersion.so' | grep -v 'libGLcore.so' - --- find-requires.perl 2003-03-13 18:16:00.000000000 -0400 +++ find-requires.perl 2003-05-22 09:24:38.000000000 -0300 @@ -14,11 +14,11 @@ if [ -x $f ]; then ldd $f | awk '/=>/ { print $1 }' fi - -done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | grep -v '4[um]lib.so' | sort -u +done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | grep -v '4[um]lib.so' | grep -v 'libGLcore.so' | sort -u for f in $liblist; do ldd $f | awk '/=>/ { print $1 }' - -done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | grep -v '4[um]lib.so' | sort -u +done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | grep -v 'libNoVersion.so' | grep -v '4[um]lib.so' | grep -v 'libGLcore.so' | sort -u perllist= for f in $scriptlist; do - ---- cut here ---- - -- James Oakley Engineering - SolutionInc Ltd. joakley@solutioninc.com http://www.solutioninc.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux) iD8DBQE++u1g+FOexA3koIgRAgFNAKChodmdI4kpU+qwpUu5oP2xN0EbVgCfSHNC U3puIEFGAUDFCKF4V+quP80= =byaW -----END PGP SIGNATURE-----