Gentoo Archives: gentoo-user

From: Rich Freeman <rich0@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] EAPI packages
Date: Wed, 10 Aug 2016 20:07:37
Message-Id: CAGfcS_kSDpRdJR65mKc3-5ej8PouKB1uWEP0coEayN5=fhASjQ@mail.gmail.com
In Reply to: Re: [gentoo-user] EAPI packages by Michael Orlitzky
1 On Wed, Aug 10, 2016 at 10:45 AM, Michael Orlitzky <mjo@g.o> wrote:
2 > On 08/10/2016 06:54 AM, hw wrote:
3 >>
4 >> Hi,
5 >>
6 >> I´m trying to upgrade portage because I´m getting a message that it
7 >> needs to be able to work with EAPI 6 packages and can only do EAPI 5.
8 >>
9 >> I´m running into merge conflicts when trying to update portage, and
10 >> apparently one of the packages (dev-python/cryptography) I could try
11 >> to update first to be able to update portage requires a version of
12 >> portage that can handle EAPI 6 packages.
13 >>
14 >
15 > Try the other suggestions first -- but as a last resort -- you can
16 > always grab a new stage3 that should contain an updated version of
17 > portage and simply overwrite the portage files on your machine. A
18 > quickpkg from another Gentoo machine (or the liveCD?) would also work.
19 >
20
21 A cleaner solution would be to just sync a snapshot of the Gentoo repo
22 from the past.
23
24 Pick snapshots every few months and emerge -u @system, and repeat that
25 until you're caught up. The only issue is if it needs to download a
26 patch that is no longer available.
27
28 In general Gentoo does not support infrequently updating systems. You
29 don't need to update every day, or even every month. However, when
30 you're going more than six months at a time without an update you're
31 almost certain to have problems.
32
33 EAPI6 support was available in stable portage in Jan 2016. The
34 version of portage you're running predates the git migration which was
35 a year ago, but fortunately by not a whole lot more than that.
36
37 Here is a guide:
38 cd /usr
39 mv portage portage-old # for safekeeping - you can go
40 back to rsync later if you want
41 mkdir portage
42 cd portage
43 git clone --no-checkout https://github.com/gentoo/gentoo.git .
44 git checkout 56bd759df1d0c750a065b8c845e93d5dfa6b549d # Aug 8 2015
45 emerge -u @system
46 git checkout 1e65133983f404ea64079df0933dd820619a9b44 # Nov 1 2015
47 emerge -u @system
48 git checkout 47b868a553171134807fc949d2b84c2dc31b0477 # Feb 2 2016
49 emerge -u @system
50
51 By now you're into EAPI6 territory. Hopefully you can get to the
52 present directly, but I can give you a few more commits if necessary.
53 I didn't test those out on an old system, so you might still run into
54 issues. I won't promise that this won't be a bumpy ride.
55
56 When you're done you can swap out portage and portage-old.
57
58 And try to stay more current with updates... If you really know what
59 you're doing you can update ancient systems, but it sounds like you
60 want something that "just works" and on Gentoo this is not something
61 that just works.
62
63 --
64 Rich

Replies

Subject Author
Re: [gentoo-user] EAPI packages hw <hw@×××××.de>