1 |
heres a script that lists all the packages that will require to be |
2 |
rebuilt once you change your profile to gcc3 instead of gcc |
3 |
|
4 |
|
5 |
it lost some formatting here, so you'll have to make sure its working |
6 |
before using it. |
7 |
|
8 |
|
9 |
emerge gentoolkit first :) |
10 |
|
11 |
//Spider |
12 |
|
13 |
|
14 |
|
15 |
#!/bin/bash |
16 |
# highly unoptimized. |
17 |
# First, find all executables that link to c++ libraries |
18 |
|
19 |
|
20 |
find / -type f -perm +o+x | while read FILE;do ldd "${FILE}" |grep |
21 |
"libstdc++" - >/dev/null && echo ${FILE} >>/root/REBUILD.files;echo |
22 |
${FILE}; done |
23 |
|
24 |
# then, get the package they belong to. |
25 |
cat /root/REBUILD.files |while read FILE; do qpkg -nc -f "${FILE}" |
26 |
>>/root/REBUILD.packs;echo ${FILE};done |
27 |
|
28 |
#Now sort the list and get only relevant issues |
29 |
cat /root/REBUILD.packs |sort |uniq >/root/REBUILD.packs.new |
30 |
|
31 |
|
32 |
-- |
33 |
begin .signature |
34 |
This is a .signature virus! Please copy me into your .signature! |
35 |
See Microsoft KB Article Q265230 for more information. |
36 |
end |