Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
detect non gcc-3.2 compiled packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nurey
n00b
n00b


Joined: 01 May 2002
Posts: 14
Location: Toronto, Canada

PostPosted: Sat Sep 28, 2002 5:45 pm    Post subject: detect non gcc-3.2 compiled packages Reply with quote

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
View user's profile Send private message
carpaski
Retired Dev
Retired Dev


Joined: 04 Aug 2002
Posts: 43
Location: Chicago, IL

PostPosted: Mon Sep 30, 2002 11:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum