Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fours years without upgrade - how to upgrade Portage now?:-)
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
Januszzz
Guru
Guru


Joined: 04 Feb 2006
Posts: 367
Location: Opole, Poland

PostPosted: Wed Oct 10, 2012 6:13 pm    Post subject: Fours years without upgrade - how to upgrade Portage now?:-) Reply with quote

Hello!

last updates:

Quote:
Wed Nov 5 02:40:35 2008 >>> dev-lang/php-5.2.6-r7
Sat Jan 3 01:16:55 2009 >>> app-misc/pax-utils-0.1.19
Sat Jan 3 01:19:05 2009 >>> dev-libs/libxml2-2.7.2-r1
Sat Jan 3 01:19:14 2009 >>> app-admin/eselect-1.0.11-r1
Sat Jan 3 01:19:23 2009 >>> app-misc/ca-certificates-20080809
Sat Jan 3 01:19:27 2009 >>> app-admin/eselect-news-20080320
Sat Jan 3 01:19:42 2009 >>> sys-apps/portage-2.1.6.4
Sat Jan 3 01:20:08 2009 >>> sys-devel/automake-1.10.2
Sat Jan 3 01:20:53 2009 >>> net-misc/rsync-3.0.4
Sat Jan 3 01:38:47 2009 >>> dev-db/mysql-5.0.70-r1
Wed Jan 14 23:13:33 2009 >>> app-admin/eselect-vi-1.1.5
Wed Jan 14 23:13:40 2009 >>> app-admin/eselect-ctags-1.5
Wed Jan 14 23:14:03 2009 >>> dev-util/ctags-5.7
Wed Jan 14 23:14:54 2009 >>> app-editors/vim-core-7.2
Wed Jan 14 23:16:34 2009 >>> app-editors/vim-7.2
Wed Jan 14 23:16:48 2009 >>> app-vim/gentoo-syntax-20070506
Wed Jan 14 23:28:40 2009 >>> net-mail/uw-mailutils-2007b
Wed Jan 14 23:30:38 2009 >>> mail-client/pine-4.64-r5
Thu Jan 15 00:59:59 2009 >>> app-arch/unzip-5.52-r2
Thu Jan 15 01:54:08 2009 >>> media-libs/libpng-1.2.33
Thu Jan 15 01:55:39 2009 >>> net-libs/c-client-2007e
Thu Jan 15 02:10:32 2009 >>> dev-lang/php-5.2.8-r1
Fri Feb 27 11:54:04 2009 >>> net-analyzer/mtr-0.73-r2
Mon Mar 16 15:17:23 2009 >>> net-dns/bind-9.4.3_p1
Thu Jun 18 15:16:01 2009 >>> sys-apps/portage-2.1.6.13
Wed Oct 7 00:14:01 2009 >>> sys-libs/glibc-2.8_p20080602-r1
Wed Oct 7 08:40:07 2009 >>> media-gfx/imagemagick-6.5.2.9
Thu Oct 8 13:45:09 2009 >>> net-analyzer/mtr-0.73-r2
Mon Apr 19 11:15:08 2010 >>> app-antivirus/clamav-0.95.3
Wed Jun 30 21:31:51 2010 >>> www-client/links-2.2
Sun Feb 26 23:22:22 2012 >>> net-dns/dnstop-20090128


its been a while, now cannot install portage and upgrade Postgresql and most of the system as some packages require EAPI 3 or (oh Lord!) EAPI4.

After masking some Python and others I have:

Quote:
emerge portage -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=dev-lang/python-2.7" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/python-3.3.0 (masked by: EAPI 3)
- dev-lang/python-3.2.3-r1 (masked by: EAPI 3)
- dev-lang/python-3.2.3 (masked by: EAPI 3)
- dev-lang/python-3.1.5 (masked by: EAPI 3)
- dev-lang/python-2.7.3-r2 (masked by: package.mask)

The current version of portage supports EAPI '2'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "sys-apps/portage-2.1.11.9" [ebuild])
(dependency required by "portage" [argument])



What now?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32315
Location: 56N 3W

PostPosted: Wed Oct 10, 2012 6:21 pm    Post subject: Reply with quote

Januszzz,

Get python and portage from the tinderbox.dev.gentoo.org to suit your arch.
These are portage binary packages intended for use by
Code:
emerge -K <package>


You can't do that, so treat them as mini stage3 files and use
Code:
tar xpf <file>  -C /

Ignore the extra garbage at end warning.

You are at the beginning of a very painful but very educational experience.
A reinstall will be much faster as you will have to pass through some of the intermediate stages the everyone else took in their stride.
e.g. glibc and gcc mutual blocks ... expat and others.

There are several threads on the forums that can help you out.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pigeon768
l33t
l33t


Joined: 02 Jan 2006
Posts: 669

PostPosted: Wed Oct 10, 2012 9:10 pm    Post subject: Reply with quote

Try:
Code:
USE="threads ssl" emerge -1 dev-lang/python:2.6
USE="python2 -python3" emerge -1 =sys-apps/portage-2.1.11.9
If I'm reading the ebuild right, and I like to think that I am, python:2.6 requires EAPI 2, and portage-2.1.11.9 requires either python:2.7 with threads or python:2.6 with threads and ssl. portage-2.1.11.9 supports EAPI 3, so once you get that you're golden.

You shouldn't need to muck around with manually masking packages, just specify the versions exactly.

If that doesn't work, what is the output from 'emerge --info'?
_________________
My political bias.
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Thu Oct 11, 2012 1:23 am    Post subject: Reply with quote

It's not entirely impossible… I just recently updated my install that hadn't been touched since Oct. 2010:

Code:
     Fri Oct  1 17:06:26 2010 >>> net-im/pidgin-2.7.3
     Fri Oct  1 17:08:10 2010 >>> gnome-extra/yelp-2.30.2
     Fri Oct  1 18:42:27 2010 >>> media-plugins/gst-plugins-mad-0.10.13
     Fri Oct  1 18:46:21 2010 >>> media-video/mplayer-1.0_rc4_p20091026-r1
     Mon Aug 13 00:11:47 2012 >>> sys-apps/portage-2.1.11.9
     Mon Aug 13 00:15:03 2012 >>> app-shells/push-1.5
     Mon Aug 13 00:16:17 2012 >>> app-portage/eix-0.25.5


Had some fun with the libpng update and stuff, but overall, it wasn't too painful, really.
Back to top
View user's profile Send private message
dol-sen
Developer
Developer


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

PostPosted: Thu Oct 11, 2012 2:03 am    Post subject: Reply with quote

yeah, but he'll have a lot more pain than you did. His is 4 years out of date. He'll probably have some kernel blocker too.

Januszzz There is one system package that won't work with older kernels. I don't recall which. Check out the sticky post in this forum about it. You will likely find it helpful.
_________________
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
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3209

PostPosted: Thu Oct 11, 2012 11:36 am    Post subject: Reply with quote

Also search Planet Gentoo for some posts regarding upgrading old installations. There has been a post or two over the past few months.
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde4 :-/
Back to top
View user's profile Send private message
steveL
Advocate
Advocate


Joined: 13 Sep 2006
Posts: 2923
Location: The Peanut Gallery

PostPosted: Fri Oct 12, 2012 10:38 am    Post subject: Reply with quote

F*ck all that, just reinstall. Spend the time you'd spend tearing your hair out to get past all the crap that's happened in the last 4 years, on tweaking the new install instead.

Backup your /home if it's not a separate partition (why not? change that on new install) /etc and /var/lib/portage/world. Forget about any sort of keywords et al, as it's all from years ago. Don't blindly copy anything from old /etc into new /etc, just have it there as reference. Same with world file, til your machine is booting and running again (ie before X.) Then bring up X and your DE, and once that's working, start looking at installing the apps you like.

Also, it's /etc/portage/make.conf this time around.

If you must upgrade, then update will help you get past those blockers. /etc/warning still has the detail about how to get past the dev-libs/expat-2 upgrade, as well as libpng and others. (Use the git version.)
Back to top
View user's profile Send private message
Januszzz
Guru
Guru


Joined: 04 Feb 2006
Posts: 367
Location: Opole, Poland

PostPosted: Sat Oct 13, 2012 9:04 pm    Post subject: Reply with quote

thank you guys very much!

The installation happens to be an old openvz container installed by me, and it is posssible to clone it more-or-less (reinstall and move services). Anyway this *will* also be pain in the ass as the container was very carefully designed and has waay to many services, gotchas here and there, some custom scripts and php code, some software is unsupported.... yuck :-)

Surprisingly, the host itself is fine. It seems someone was upgrading it blindly using Portage and allwent smoothly through those years. I wonder if he knew that it includes several containers (more zombies here!).

Again thank you very much, up until now I've moved some easier services from this sinking ship :-)
Back to top
View user's profile Send private message
Januszzz
Guru
Guru


Joined: 04 Feb 2006
Posts: 367
Location: Opole, Poland

PostPosted: Sat Oct 13, 2012 10:40 pm    Post subject: Reply with quote

Pigeon768, this is for reference:

USE="threads ssl" emerge -1 dev-lang/python:2.6

dies with:


These are the packages that would be merged, in order:

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=dev-libs/libffi-3.0.11" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-libs/libffi-3.0.11 (masked by: EAPI 4)

The current version of portage supports EAPI '2'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "dev-lang/python-2.6.8" [ebuild])
(dependency required by "dev-lang/python:2.6" [argument])

I've decided to reinstall remotely, but its nice to know of course :-) regards.
Back to top
View user's profile Send private message
Januszzz
Guru
Guru


Joined: 04 Feb 2006
Posts: 367
Location: Opole, Poland

PostPosted: Mon Nov 26, 2012 5:31 pm    Post subject: Reply with quote

Just to close the subject: I've ended moving services, all went surprisingly fine - Postfix, Amavis, OpenLDAP, dovecot, mysql, postgres, bind, apache, webapps, ipsec, and many more didn't need so much tweaking. Especially Postfix didn't need any change :-) All services' problems were correctly in logs, it took exactly 4 hours and one night to clean some minor things like php code throwing errors due to versions change.

What happened to the container? well, after all was set up on shiny new gentoo in container, I took maany packages from tinderbox and sucesfully upgraded the old machine. No kernel blockers (there were no kernel dependent packages), all services more or less were able to start. But to be sure I had to spin emerge -e world. All upgrades took two days compilation, so it was rather wise to start from the beginning, especially there is no bloat here and there.

Thank you.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 32315
Location: 56N 3W

PostPosted: Mon Nov 26, 2012 7:35 pm    Post subject: Reply with quote

Januszzz,

Both glibc and udev depend on the kernel, to name but two.

However you don't get hard blocks because it OK to build udev and glibc against a kernel you don't have running.
Next boot, if you forget, you get to pick up the pieces.

How would you cross compile things that depend on the kernel otherwise.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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