blob: 52f0b8e80fb0d6de701faeccd2a4f8699a921f28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
if [ ! -f /usr/sbin/qpkg ]; then
if [ ! -f /usr/bin/qpkg ]; then
echo "qpkg not found, will emerge gentoolkit"
emerge gentoolkit
fi
fi
if [ -f /usr/sbin/qpkg ]; then
QPKG=/usr/sbin/qpkg
fi
if [ -f /usr/bin/qpkg ]; then
QPKG=/usr/bin/qpkg
fi
rm -f /tmp/pngstuff.*
echo "Scanning libraries. do not be alarmed of error messages"
find /usr/lib -type f -perm +u+x | while read LIB; do
ldd "${LIB}" | grep "libpng.so.2" && ${QPKG} -nc -f "${LIB}" >>/tmp/pngstuff.libs
done
cat /tmp/pngstuff.libs |sort | uniq | sed 's:\(.*/.*\)-[0-9]\+.*:\1:g' >/tmp/pngstuff.libs.rebuild
echo "You will now need to rebuild the following packages"
echo "------------"
cat /tmp/pngstuff.libs.rebuild
echo "------------"
# cat /tmp/pngstuff.libs.rebuild | while read PACK; do emerge ${PACK}; done
echo "--- Done with libraries ---"
rm -f /tmp/pngstuff.*
|