Here's a short preliminary script to update the system from 1.2 to 1.4 and (hopefully)retain compability only works on x86 and needs lots of work to be "proper"
Created attachment 3114 [details] update-1.2-to-1.4.sh bash script, incomplete.
combine it with something of this line : for i in /usr/lib/*.so /usr/bin/* /usr/sbin/* ; do ldd ${i} 2>&1 |grep "not found" - >/dev/null && qpkg -f -nc -v $i; done |sort |uniq |while read PACK;do emerge -p \=${PACK};done Now... I just need a way to remerge those packages in the "right" order of dependency... hairy problem?
sed s/"not found"/"2.95.3"/g if you want to update from 2.95.3 to 3.2 .. this one was the version from gcc 3.2_pre to 3.2 sharp .( not found ldd errors )
for i in /usr/lib/*.so /usr/bin/* /usr/sbin/* ; do ldd ${i} 2>&1 | grep "not found" - >/dev/null && qpkg -f -nc -v $i; done | sort -u | sed 's:\(.*\):\\=\1:' | xargs emerge --oneshot -p
referring to buf #5667
http://bugs.gentoo.org/show_bug.cgi?id=5667
hmm.. would something like this be good as well? find / -type f -iname \*.so ; do ldd ${i} 2>&1 | grep "not found" - >/dev/null && qpkg -f -nc -v $i; done | sort -u | sed 's:\(.*\):\\=\1:' | xargs emerge --oneshot -p combined with : find /usr -type f -perm +x ; do ldd ${i} 2>&1 | grep "not found" - >/dev/null && qpkg -f -nc -v $i; done | sort -u | sed 's:\(.*\):\\=\1:' | xargs emerge --oneshot -p to find the binaries , including KDE?
had to change the script to the following - had a few packages that reported back extra chars and broke the process otherwise (related to the \= in the original version of the script...original to me anyway...)... #!/bin/bash for i in /usr/lib/*.so /usr/bin/* /usr/sbin/* ; do ldd ${i} 2>&1 |grep "not found" - >/dev/null && qpkg -f -nc -v $i; done |sort |uniq | sed 's/-[0-9].*//g' |while read PACK;do emerge "${PACK}";do ne
Ok. I've got a large script in progress for this... I'm planning on finishing it shortly. I've got the first 3 parts done which should be plenty to consume your time with until I'm finished. I'm pretty happy with parts 1-3 -- They do what they are supposed to without complaint. Part 4 is marginally Ok, but I have a plan to make it nicer, or unnecessary. You'll probably have to reboot your box, or you might be able to get away with doing an 'init u 3' but I haven't tested this. http://gentoo.twobit.net/misc/system_update All are scripts, so make sure you chmod +x I STRONGLY recommend doing and 'emerge -u world' prior to my scripts. It will make life easier for parts 4,5,6 (some of which might go away.)
Another note... There is an ARCH variable at the tops of the scripts that is defaulted to 'x86' ... Any other arch needs to change that to they respective ARCH. It's only used for the profile symlink.
Ok. The scripts are COMPLETELY done -- At least I hope so... They seem to work well and are friendlier. Directions, scripts, et al.: http://www.gentoo.org/~carpaski/system_update/
Is it possible to edit the script so it will fetch stuff at the last moment before it needs them and deletes the file (source) when done emerging ?? That way the needed size will go down dramatically I expect?
closing this as the document is out