Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6553 - updates for 1.2 to 1.4 systems
Summary: updates for 1.2 to 1.4 systems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-15 17:17 UTC by Spider (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
update-1.2-to-1.4.sh (update-1.2-to-1.4.sh,289 bytes, text/plain)
2002-08-15 17:20 UTC, Spider (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2002-08-15 17:17:37 UTC
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"
Comment 1 Spider (RETIRED) gentoo-dev 2002-08-15 17:20:19 UTC
Created attachment 3114 [details]
update-1.2-to-1.4.sh

bash script, incomplete.
Comment 2 Spider (RETIRED) gentoo-dev 2002-08-16 10:27:38 UTC
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?
Comment 3 Spider (RETIRED) gentoo-dev 2002-08-16 10:30:36 UTC
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 )
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2002-08-16 23:37:31 UTC
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
Comment 5 Spider (RETIRED) gentoo-dev 2002-08-17 06:06:03 UTC
referring to buf #5667
Comment 6 Spider (RETIRED) gentoo-dev 2002-08-17 06:06:20 UTC
 http://bugs.gentoo.org/show_bug.cgi?id=5667
Comment 7 Spider (RETIRED) gentoo-dev 2002-08-27 13:02:09 UTC
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? 
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2002-09-05 19:48:50 UTC
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
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2002-09-05 19:57:48 UTC
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.)
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2002-09-05 20:00:59 UTC
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.
Comment 11 Nicholas Jones (RETIRED) gentoo-dev 2002-09-08 04:26:19 UTC
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/
Comment 12 Sam 2002-09-21 16:49:39 UTC
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?
Comment 13 Spider (RETIRED) gentoo-dev 2002-10-23 14:44:26 UTC
closing this as the document is out