Quote |
/etc/ld.so.conf does get updated with the /opt/gtk+-2.12.9/lib directory in the most recent DSLs |
Quote |
Perhaps we need to ping Robert and see if he would consider changing this so the additions are made at the top of ld.so.conf. That sed line above for example will do it. |
Quote |
/etc/ld.so.conf can break things in base. |
Code Sample |
#!/bin/bash # Remove path to gtk libs from ld.so.conf if ! grep -q '/opt/gtk+-2.12.9/lib' /etc/ld.so.conf; then # already done exit 1; fi if [ -L /etc/ld.so.conf ]; then exit 1 fi sed -i '/\/opt\/gtk+-2.12.9\/lib/dg' /etc/ld.so.conf ldconfig exit 0 |
Quote |
Quote /etc/ld.so.conf can break things in base. If the uci is umounted, you mean an entry to /etc/ld.so.conf that no longer exists after ldconfig is run causes a problem? |
Code Sample |
#!/bin/bash DIR="/KNOPPIX/bin /KNOPPIX/usr/bin /KNOPPIX/usr/X11R6/bin /KNOPPIX/sbin /KNOPPIX/usr/sbin /KNOPPIX/usr/local/bin /KNOPPIX/usr/local/sbin" CD=$PWD for F in ${DIR}; do cd ${F} for G in *; do H="$F/$G" [ -d "$H" ] && continue if [ -x "$H" ]; then ldd "$H" 2>/dev/null | grep '/opt/gtk+-2.12.9/lib' && echo "[ $H ]" fi done done cd $CD |
Quote |
libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x4005e000) libpng12.so.0 => /opt/gtk+-2.12.9/lib/libpng12.so.0 (0x4007c000) [ /KNOPPIX/usr/bin/Ted ] libfontconfig.so.1 => /opt/gtk+-2.12.9/lib/libfontconfig.so.1 (0x4001b000) libfreetype.so.6 => /opt/gtk+-2.12.9/lib/libfreetype.so.6 (0x40045000) libexpat.so.1 => /opt/gtk+-2.12.9/lib/libexpat.so.1 (0x400c2000) libxml2.so.2 => /opt/gtk+-2.12.9/lib/libxml2.so.2 (0x40211000) [ /KNOPPIX/usr/bin/fc-cache ] libfontconfig.so.1 => /opt/gtk+-2.12.9/lib/libfontconfig.so.1 (0x4001b000) libfreetype.so.6 => /opt/gtk+-2.12.9/lib/libfreetype.so.6 (0x40045000) libexpat.so.1 => /opt/gtk+-2.12.9/lib/libexpat.so.1 (0x400c2000) libxml2.so.2 => /opt/gtk+-2.12.9/lib/libxml2.so.2 (0x40211000) [ /KNOPPIX/usr/bin/fc-list ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x4005e000) libpng12.so.0 => /opt/gtk+-2.12.9/lib/libpng12.so.0 (0x4007c000) [ /KNOPPIX/usr/bin/ted ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x402f1000) libtiff.so.3 => /opt/gtk+-2.12.9/lib/libtiff.so.3 (0x40310000) [ /KNOPPIX/usr/bin/xtdesk ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x40183000) libpng12.so.0 => /opt/gtk+-2.12.9/lib/libpng12.so.0 (0x401a2000) [ /KNOPPIX/usr/bin/xzgv ] libtiff.so.3 => /opt/gtk+-2.12.9/lib/libtiff.so.3 (0x40029000) libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x4007c000) [ /KNOPPIX/usr/X11R6/bin/xpaint ] libpng12.so.0 => /opt/gtk+-2.12.9/lib/libpng12.so.0 (0x4006b000) libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x4008e000) [ /KNOPPIX/usr/local/bin/bm_srv12 ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x4001b000) libpng12.so.0 => /opt/gtk+-2.12.9/lib/libpng12.so.0 (0x40039000) [ /KNOPPIX/usr/local/bin/dillo ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x40151000) [ /KNOPPIX/usr/local/bin/gs ] libjpeg.so.62 => /opt/gtk+-2.12.9/lib/libjpeg.so.62 (0x40042000) libtiff.so.3 => /opt/gtk+-2.12.9/lib/libtiff.so.3 (0x40060000) [ /KNOPPIX/usr/local/bin/xsri ] |
Quote |
The only issue I see is that adding to the beginning of /etc/ld.so.conf can break things in base. But that will happen whether they are added manually or automatically. So I don't know if it would be good to do that universally for all extensions. |