View previous topic :: View next topic |
Author |
Message |
nurey n00b
Joined: 01 May 2002 Posts: 14 Location: Toronto, Canada
|
Posted: Sat Sep 28, 2002 5:45 pm Post subject: detect non gcc-3.2 compiled packages |
|
|
Is there any way to find out which packages have NOT been compiled with GCC 3.2? or vice versa: which packages have been compiled with GCC 3.2? |
|
Back to top |
|
|
carpaski Retired Dev
Joined: 04 Aug 2002 Posts: 43 Location: Chicago, IL
|
Posted: Mon Sep 30, 2002 11:33 am Post subject: |
|
|
Should find everything that compiled against non-gcc 3.2 libs. Kinda like upgrade script 4.
for FILE in $(find $(egrep -v "^#" /etc/ld.so.conf) -type f -name *.so.* 2>/dev/null) $(find $PATH -type f -perm +111 2>/dev/null); do ldd $FILE 2>&1 | grep -q 'gcc-lib' | grep -q -v '3.2' && echo -e "$FILE \n"; done
This should find everything compiled with gcc-2.95.3.
for FILE in $(find $(egrep -v "^#" /etc/ld.so.conf) -type f -name *.so.* 2>/dev/null) $(find $PATH -type f -perm +111 2>/dev/null); do egrep -q 'GCC[ a-zA-Z():]+2.95.3' $FILE && echo -e "$FILE \n"; done
That's just the list of files. you can pass that whole command to
qpkg and sort by adding to the end something like this:
| xargs qpkg -f | sort -u > myfinal.lst _________________ Nicholas Jones <carpaski@gentoo.org>
Gentoo Linux Developer |
|
Back to top |
|
|
|