Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrading from 2004.2 to current release woes...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 12:03 pm    Post subject: Upgrading from 2004.2 to current release woes... Reply with quote

Hi.
I have just decided to update a amd64 server that has an ancient install of 2004.2 on it, but running emerge --sync seems to have clobbered my /usr/portage/profiles/default-amd64-2004.2 - it is no more:)

What should I do to update this machine as portage is now complaining about the orphaned /etc/make.profile?

daniel
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 11, 2005 12:11 pm    Post subject: Reply with quote

Hi.

I think that you could start by updating /etc/make.profile to point to the 2005.0 profile. Then you will probably need to do
Code:
# emerge -e system

twice. I don't know however if you're not going to have a whole bunch of problems. The first I'm expecting is some problem compiling the new gcc with your old gcc, as well as problems compiling your new glibc. Oh and you may have some problems with changing from gentoo-dev-sources to gentoo-sources if you used the 2.6 kernel.
I would try using emwrap.sh instead of the emerge -e system, but even so, I wish you good luck. Perhaps, in the future you should not take so long to update your system! :wink:

PS - Don't forget updating your files, preferably with dispatch-conf, as I expect that many files have changed substantially. You might want to take this opportunity to update your CFLAGS, in particular if you're updating from gcc-3.3 to gcc-3.4.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 12:16 pm    Post subject: Reply with quote

yeah first thing I tried was linking to the 2004.3 profile, that gives me this:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)

Linking to the 2005 gives me the same error, so I can't emerge anything at the moment.
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 11, 2005 12:18 pm    Post subject: Reply with quote

Can you post the following output?
Code:
# ls -l /etc/make.profile

_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 12:19 pm    Post subject: Reply with quote

currently:

ls -l /etc/make.profile
lrwxrwxrwx 1 root root 48 Jul 11 13:03 /etc/make.profile -> /usr/portage/profiles/default-linux/amd64/2005.0
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Mon Jul 11, 2005 12:32 pm    Post subject: Reply with quote

In my AMD64 system I have
Code:
atl64 ~ # ls -l /etc/make.profile
lrwxrwxrwx  1 root root 50 Abr 22 10:33 /etc/make.profile -> ../usr/portage/profiles/default-linux/amd64/2005.0
atl64 ~ # 

so I don't know what else to do.
By the way, I've just recalled that another issue that you're going to have is with multilib, at least if you installed support for 32bits. You should wait for other opinions and even ask the moderators to move this thread to Gentoo on AMD64, but is it a solution for you to install again, instead of updating? I think it would be more simple and would avoid some possible problems related to the update.

PS - To ask the moderators to move this thread, place a post here.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 12:39 pm    Post subject: Reply with quote

I don't think it is specifically an amd issue apart from the fact that there is a default-???-2004.2 for x86 and ppc and not for amd. And it is a server so no 32bit support.

I can't find any docs on how to upgrade from a version of gentoo that doesn't have a listed profile, a solution to that is surely universal...
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1158

PostPosted: Mon Jul 11, 2005 2:20 pm    Post subject: Reply with quote

The only way I know goes like this:
Code:
# rm /etc/make.profile
# ln -s /usr/portage/profiles/<path_to_new_profile> /etc/make.profile
# env-update && source /etc/profile
The last line is NOT optional. After that portage should work and emerge --sync should run happily. On the other hand some things might have beeb borked on your system and the above may not necessarily fix it.

Good luck, :)
_________________
Regards,
Mick
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 6:38 pm    Post subject: Reply with quote

Code:
env-update


Gives me the dreaded:

Code:

!!! 'str' object has no attribute 'insert'
!!! 'rm -Rf /usr/portage/profiles; emerge sync' may fix this. If it does
!!! not then please report this to bugs.gentoo.org and, if possible, a dev
!!! on #gentoo (irc.freenode.org)



The server I am trying it on has a bog standard minimum install of 2004.2, I have three other indentical machines in the rack with dupes of that install and env-update works fine on them, the only difference is I have run emerge-webrsync on the first.

The gentoo install was stuck on them before they went into a colo, the idea being that I could just do an update when they were actually needed - it's not so cool if after less than a year later they can't be upgraded....
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1158

PostPosted: Mon Jul 11, 2005 7:24 pm    Post subject: Reply with quote

Out of interest did you do: 'rm -Rf /usr/portage/profiles; emerge sync'

to see if it fixes it?
_________________
Regards,
Mick
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 7:28 pm    Post subject: Reply with quote

MickKi wrote:
Out of interest did you do: 'rm -Rf /usr/portage/profiles; emerge sync'

to see if it fixes it?


Yup:)
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jul 11, 2005 7:43 pm    Post subject: Reply with quote

I don't know how old your portage version is, but it may not be able to cope with cascading profiles. Unfortunately all the non-cascading profiles for amd64 seem to have been removed from the tree, so I think you're going to need to untar a binary package of the latest stable version of portage over your current setup and you should be able to fix things from there. I can create one for you, if you need one.

Moved from Installing Gentoo to Portage & Programming.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 8:04 pm    Post subject: Reply with quote

Ahhhhh ok, makes sense.

OK, what I have done is copied the original profile from one of the other servers, and updated portage. Then I was able to do the normal rm make.profile and new link to 2005.0 and it looks like I am back in business:)

I'll report back if it works as this might be useful for someone else.
Back to top
View user's profile Send private message
tokka
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 99

PostPosted: Mon Jul 11, 2005 11:48 pm    Post subject: Reply with quote

Success:)

Ok, what I did to upgrade from a amd 2004.2 was:

emerge --sync

Then copied the original profile back over from a back up.

Emerged a new Portage.

Set my profile to 2004.3 and emerged GCC and glibc

Set my profile to 2005.0 and updated the entire installation.

Thanks Maedhros, if you ever are in Slough I owe you a beer:)
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Tue Aug 30, 2005 9:24 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads in favour of this topic.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
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