Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
update old system to 10.0 or 2008.1
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Dragonlord
Guru
Guru


Joined: 22 Aug 2004
Posts: 446
Location: Switzerland

PostPosted: Mon Dec 20, 2010 11:29 pm    Post subject: Reply with quote

DaggyStyle wrote:
I can't seem to understand why people neglect kernel versions on such updates.
I think that the right path is portage->glibc->binutils->gcc->portage->glibc->binutils->kernel+header->reboot->rest

Do this over SSH and then see how you swear if the kernel doesn't come up after reset while the server is literally "in another state".
_________________
DragonDreams: Leader and Head Programmer
Back to top
View user's profile Send private message
yaplej
n00b
n00b


Joined: 15 Dec 2010
Posts: 22

PostPosted: Wed Dec 22, 2010 6:10 am    Post subject: Reply with quote

Well. I seem to have finally gotten this thing updated to the current release for about everything. I had to manually update a lot of stuff from pre-compiled packages first and was able to get to where I could emerge gcc, binutils and glibc. That seemed to be the key there but before going any further I had to compile a new kernel to prevent the new coreutils from breaking the system totally. I took some notes but had to move stuff around a little trying to figure out how to get things to install in proper order.

There might have been an easier method to doing this but loosley following this I was able to get it done.

Code:

#BASELINE
# Very outdated 2006.1 gentoo box needs updated.

#SYNCED emerge
emerge-webrsync

#UPDATE profile
cd /etc
rm /etc/make.profile
ln -s ../usr/portage/profiles/default/linux/x86/10.0 /etc/make.profile
source /etc/profile

#UPDATE python
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-lang/python-3.1.2-r4.tbz2
cd /
tar xfpj root/python-3.1.2-r4.tbz2
rm /usr/bin/python 2>/dev/null
ln -s /usr/bin/python3.1 /usr/bin/python
python-updater

#UPDATE glibc
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-libs/glibc-2.11.2-r3.tbz2
cd /
tar xfpj root/glibc-2.11.2-r3.tbz2

#UPDATE portage
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-apps/portage-2.1.9.24.tbz2
cd /
tar xfpj root/portage-2.1.9.24.tbz2

#UPDATE gcc
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/gcc-4.4.4-r2.tbz2
cd /
tar xfpj root/gcc-4.4.4-r2.tbz2
gcc-config i686-pc-linux-gnu-4.4.4
source /etc/profile
/sbin/fix_libtool_files.sh 4.4.4

#UPDATE binutils
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/binutils-2.20.1-r1.tbz2
cd /
tar xfpj root/binutils-2.20.1-r1.tbz2
binutils-config i686-pc-linux-gnu-2.20.1
source /etc/profile

#UPDATE bash
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/app-shells/bash-4.1_p7.tbz2
cd /
tar xfpj root/bash-4.1_p7.tbz2

#UPDATE libtool
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-devel/libtool-2.2.10.tbz2
cd /
tar xfpj root/libtool-2.2.10.tbz2

#UPDATE expat
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-libs/expat-2.0.1-r3.tbz2
cd /
tar xfpj root/expat-2.0.1-r3.tbz2

#UPDATE popt
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-libs/popt-1.16.tbz2
cd /
tar xfpj root/popt-1.16.tbz2

#UPDATE zlib
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/sys-libs/zlib-1.2.3-r1.tbz2
cd /
tar xfpj root/zlib-1.2.3-r1.tbz2

#UPDATE pax-utils
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/app-misc/pax-utils-0.2.1.tbz2
cd /
tar xfpj root/pax-utils-0.2.1.tbz2

#UPDATE mpfr
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-libs/mpfr-2.4.2_p3.tbz2
cd /
tar xfpj root/mpfr-2.4.2_p3.tbz2

#UPDATE gmp
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-libs/gmp-4.3.2.tbz2
cd /
tar xfpj root/gmp-4.3.2.tbz2

#UPDATE perl
cd
wget http://tinderbox.dev.gentoo.org/default-linux/x86/dev-lang/perl-5.12.2-r4.tbz2
cd /
tar xfpj root/perl-5.12.2-r4.tbz2

#EMERGE automake & autoconf
FEATURES=-sandbox emerge automake
FEATURES=-sandbox emerge autoconf

#EMERGE gcc
FEATURES=-sandbox emerge --nodeps gcc

#EMERGE binutils
FEATURES=-sandbox emerge binutils

#EMERGE timezone-data
FEATURES=-sandbox emerge --nodeps timezone-data

#EMERGE linux-headers
FEATURES=-sandbox emerge linux-headers

#EMERGE glibc
rm /etc/locales.build
FEATURES=-sandbox emerge --nodeps glibc

#EMERGE gentoo
FEATURES=-sandbox emerge -u gentoo-sources

#UPDATE kernel
cd /usr/src
ln -sfn linux-2.6.36-gentoo-r5 linux
cd /usr/src/linux
make menuconfig
make
make modules_install
mount /boot
cp /boot/BzImage-2.6.36-gentoo-r5 /boot/BzImage-2.6.36-gentoo-r5.old
cp arch/x86/boot/bzImage /boot/BzImage-2.6.36-gentoo-r5

#EMERGE sandbox
FEATURES=-sandbox emerge sandbox

#EMERGE bash
FEATURES=-sandbox emerge --nodeps bash

#EMERGE libffi
FEATURES=-sandbox emerge libffi

#EMERGE pkgconfig & popt
FEATURES=-sandbox emerge pkgconfig

#EMERGE portage
FEATURES=-sandbox emerge --nodeps portage

#EMERGE dhcpcd
FEATURES=-sandbox emerge dhcpcd

#EMERGE e2fsprogs
FEATURES=-sandbox emerge e2fsprogs

#EMERGE coreutils
#Make sure your running the updated kernel or things will break after doing this.
mv /bin/mktemp /bin/mktemp.bak
FEATURES=-sandbox emerge coreutils
hash -r
source /etc/source

#UNMERGE baselayout
FEATURES=-sandbox emerge -C baselayout

#EMERGE sysvinit
FEATURES=-sandbox emerge sysvinit

#EMERGE libtool
FEATURES="-collision-detect -protect-owned -sandbox" emerge libtool
revdep-rebuild

#EMERGE baselayout
FEATURES=-sandbox emerge baselayout

#EMERGE gdbm
FEATURES=-sandbox emerge gdbm

#EMERGE python
FEATURES=-sandbox emerge --nodeps python
python-updater

#EMERGE sandbox
FEATURES=-sandbox emerge sandbox

#EMERGE expat
emerge expat
revdep-rebuild

#EMERGE zlib
emerge zlib

#EMERGE pax-utils
emerge pax-utils

#EMERGE gmp
emerge gmp

#EMERGE mpfr
emerge mpfr

#EMERGE gcc-config
emerge gcc-config

#EMERGE make
emerge make

#UPDATE configurations
dispatch-conf

#UPDATE SYSTEM
emerge --keep-going -eav system
Back to top
View user's profile Send private message
mimas
n00b
n00b


Joined: 16 Jan 2008
Posts: 1

PostPosted: Fri Jan 14, 2011 1:59 pm    Post subject: Reply with quote

thanks a lot to everybody in this thread, this probably saved my life...!
i did a lot of research... but the last post from yaplej did it for me.
Back to top
View user's profile Send private message
agonyou
n00b
n00b


Joined: 30 Jan 2012
Posts: 1

PostPosted: Mon Jan 30, 2012 1:50 am    Post subject: Reply with quote

I have a similar problem, and I intend on using the above script actions to see if I can update this thing but mine is a pretty old Sparc2. It's a good box that just keeps running, but I haven't turned it on in a couple of years due to some moving and such. Now that things are in the swing again, I wanted to update and did an emerge --sync. Seemed to go ok, but emerge portage gives me this
Code:

firegeek 10.0 # emerge portage
Calculating dependencies /
!!! All ebuilds that could satisfy "portage" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/portage-2.1.6.7 (masked by: package.mask)
# Zac Medico <zmedico@gentoo.org> (09 Aug 2011)
# Bug #377907 - Use package.mask for compatibility with PMS section 5.2.7, and
# future versions of sys-apps/portage.

- sys-apps/portage-9999 (masked by: required EAPI 3, supported EAPI 0)
- sys-apps/portage-2.1.10.44 (masked by: required EAPI 2, supported EAPI 0)
- sys-apps/portage-2.1.10.41 (masked by: required EAPI 2, supported EAPI 0)
- sys-apps/portage-2.1.10.11 (masked by: required EAPI 2, supported EAPI 0)
- sys-apps/portage-2.2.0_alpha84 (masked by: required EAPI 3, supported EAPI 0)
- sys-apps/portage-2.2.0_alpha81 (masked by: required EAPI 3, supported EAPI 0)
- sys-apps/portage-2.1.6.13 (masked by: required EAPI 1, supported EAPI 0)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.


my /usr/portage profile is linked correctly, but since this is saying EAPI 0, I'm curious if I'm screwed.

Thanks in advance

Agonyou
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Mon Jan 30, 2012 5:21 pm    Post subject: Reply with quote

This thread is more than a year old. So, even those post listed will be somewhat out of date.

If at all possible re- install. It will be easier.
_________________
Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch...
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 250
Location: Arkansas

PostPosted: Wed Oct 16, 2013 6:00 pm    Post subject: Reply with quote

Now that this post is more than a year old again...I have a virtual machine at 10.0 that I wasn't able to update for a while because I had to replace a processor for one that wouldn't support a 64-bit install. I 'emerge --sync'ed it and now it won't emerge portage. It gives a lot of .py errors and doesn't even show me "what will be merged". For some reason, though it was able to start when I tried "emerge -vuNDp system". Perhaps an update to the system will re-enable an update to portage? Perhaps there are some emerge options I can enable or disable to get around some default that's causing problems? I don't know why, but I don't have python-2.7. I don't know why it would be missing.

I may have to just reinstall on the vm. Hard to do from work. Of course updating the system will probably take long enough that I'll be home before trying anything else.
_________________
Greg
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 16, 2013 6:14 pm    Post subject: Reply with quote

See Manually fixing broken portage installations. ;)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 250
Location: Arkansas

PostPosted: Wed Oct 16, 2013 6:29 pm    Post subject: Reply with quote

John R. Graham wrote:
See Manually fixing broken portage installations. ;)


That should help out a lot. Should I stop my system update to fix this first? Or is the system update ok to do with the old portage?

Thanks!
_________________
Greg
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Oct 16, 2013 6:35 pm    Post subject: Reply with quote

You'll likely only get part way without problems in any case. Since the Portage tree is now modern, running with a modern Portage would be recommended.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
trigggl
Apprentice
Apprentice


Joined: 26 Aug 2007
Posts: 250
Location: Arkansas

PostPosted: Wed Oct 16, 2013 6:37 pm    Post subject: Reply with quote

Ok. Well, I'll see if glibc will finish and then kill it.

EDIT: The manual repair worked great and even pulled in Python 2.7 automatically.
_________________
Greg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum