Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge new portage and failed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rovdyr
n00b
n00b


Joined: 15 Jan 2003
Posts: 26
Location: Flensburg

PostPosted: Tue Dec 20, 2005 1:11 pm    Post subject: emerge new portage and failed Reply with quote

hi,

after 'emerge sync' portage told me there is a new update, so i emerged portage. now i got an errormessage with the following content:
Code:

 emerge sync
/usr/bin/emerge:2761: Warning: 'yield' will become a reserved keyword in the future
  File "/usr/bin/emerge", line 2761
    yield y
          ^
SyntaxError: invalid syntax


i tried to turn to some old versions of portage,
Code:

rm -r /usr/portage/*
tar -xvjf portage-$version.tar.bz2 -C /usr

but its failed.

any ideas?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9242
Location: beyond the rim

PostPosted: Tue Dec 20, 2005 6:05 pm    Post subject: Reply with quote

What python version?
Back to top
View user's profile Send private message
sgaap
l33t
l33t


Joined: 16 Aug 2002
Posts: 754
Location: Enschede, The Netherlands

PostPosted: Thu Dec 22, 2005 5:04 pm    Post subject: Reply with quote

same problem here after the most recent update, python version 2.2.2
_________________
In "old" Europe we already have a word for "pre-emptive strikes" mr Bush: its called "war"
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Dec 22, 2005 5:19 pm    Post subject: Reply with quote

In /usr/portage/sys-apps/portage/portage-2.0.53.ebuild
Code:
DEPEND=">=dev-lang/python-2.2.1"

Should be changed to:
Code:
DEPEND=">=dev-lang/python-2.4.2"
Back to top
View user's profile Send private message
sgaap
l33t
l33t


Joined: 16 Aug 2002
Posts: 754
Location: Enschede, The Netherlands

PostPosted: Thu Dec 22, 2005 7:28 pm    Post subject: Reply with quote

anyway to fix this after already installing this ebuild?

maybe manually installing a new python version?
_________________
In "old" Europe we already have a word for "pre-emptive strikes" mr Bush: its called "war"
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Dec 22, 2005 11:44 pm    Post subject: Reply with quote

sgaap wrote:
anyway to fix this after already installing this ebuild?

Install the new python, then run python-updater.
Back to top
View user's profile Send private message
sgaap
l33t
l33t


Joined: 16 Aug 2002
Posts: 754
Location: Enschede, The Netherlands

PostPosted: Fri Dec 23, 2005 4:28 pm    Post subject: Reply with quote

so, i can just get python from their website, and build/exract it into my root? doesnt that get me more problems if that is going to conflict with the python version that portage has installed?
_________________
In "old" Europe we already have a word for "pre-emptive strikes" mr Bush: its called "war"
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Dec 23, 2005 7:56 pm    Post subject: Reply with quote

Installing python means emerge python. Who would be installing python without using portage :?:
Back to top
View user's profile Send private message
sgaap
l33t
l33t


Joined: 16 Aug 2002
Posts: 754
Location: Enschede, The Netherlands

PostPosted: Sun Dec 25, 2005 6:18 pm    Post subject: Reply with quote

Euuh, and how can I emerge python when emerge isnt working anymore because of the wrong dependency?

so either there is a quick hack which let's emerge work again ;) or I probably have to install python manually i guess
_________________
In "old" Europe we already have a word for "pre-emptive strikes" mr Bush: its called "war"
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Dec 25, 2005 6:33 pm    Post subject: Reply with quote

sgaap wrote:
Euuh, and how can I emerge python when emerge isnt working anymore because of the wrong dependency?

Good point. See /usr/portage/sys-apps/portage/files/README.RESCUE and rescue binaries.
Back to top
View user's profile Send private message
jstubbs
Retired Dev
Retired Dev


Joined: 05 Jul 2003
Posts: 126
Location: Tokyo

PostPosted: Mon Dec 26, 2005 10:18 am    Post subject: Reply with quote

There is no usage of "yield" in portage-2.0.53. It seems that the upgrade was to 2.1_pre{1,2}. I'll update the dependency tonight. (It could have been done quicker if there was a bug filed for this).

To fix it,
# wget http://distfiles.gentoo.org/distfiles/portage-2.0.53.tar.bz2
# tar jxf portage-2.0.53.tar.bz2
# rm -rf /usr/lib/portage/{bin,pym}
# mv portage-2.0.53/{bin,pym} /usr/lib/portage
# FEATURES="-buildpkg" emerge =portage-2.0.53
Back to top
View user's profile Send private message
sgaap
l33t
l33t


Joined: 16 Aug 2002
Posts: 754
Location: Enschede, The Netherlands

PostPosted: Mon Dec 26, 2005 7:53 pm    Post subject: Reply with quote

Thanks, gonne try that, next time ill file a bug report then ;)
_________________
In "old" Europe we already have a word for "pre-emptive strikes" mr Bush: its called "war"
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
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