Re: [gentoo-user] Upgrade an old system
On Mon, Dec 14, 2020 at 02:57:22PM -0700, the...@sys-concept.com wrote: > [snip] > > emerge --update --oneshot portage > > !!! All ebuilds that could satisfy > ">=app-crypt/openpgp-keys-gentoo-release-20180706" have been masked. > !!! One of the following masked packages is required to complete your request: > - app-crypt/openpgp-keys-gentoo-release-20200704::gentoo (masked by: EAPI 7) > > The current version of portage supports EAPI '6'. You must upgrade to a > newer version of portage before EAPI masked packages can be installed. > (dependency required by > "sys-apps/portage-2.3.99-r2::gentoo[rsync-verify,-build]" [ebuild]) > (dependency required by "portage" [argument]) > > I don't even have "app-crypt/openpgp-keys-gentoo-release" installed why is it > complaining? > I've done a similar update recently, it's definitely possible if you know what you're doing. A few things: First, you need to update portage. To do so, you'll need to manually downgrade the portage ebuild from EAPI 7 to EAPI 6 (simply change the number in the ebuild). First, emerge it without rsync-verify. Once you have portage up to date, it'll support EAPI 7 and life'll be easier. You can then reemerge it with rsync-verify, as the EAPI 7 dependencies will be installable this time. Then, I'd recommend upgrading the toolchain (binutils, gcc, glibc), otherwise you might run into compilation issues. After that, you can update packages. For big updates like this, I like to do it by chunks as it's easier (and it makes reading the emerge plan less painful). Like all the perl packages, then all the python packages, and so on. For that, the "emerge by path" feature is convenient; for example to update python packages: emerge -au /usr/lib/python3.7 In case force-unmerging python modules makes the update easier (resolving blocks), you can do so. That's actually safe to do, portage will still be able to emerge packages. Python itself (the interpreter) is the only hard dependency of portage. Hope this helps, and good luck with your update!
Re: [gentoo-user] Upgrade an old system
在 2020/12/15 上午3:38, the...@sys-concept.com 写道: I'm having similar problem as "n952162" upgrading an old (last updated 1.8-year ago) It sync OK, updated the profile. Looking instruction on this page: https://wiki.gentoo.org/wiki/Upgrading_Gentoo root #mv /usr/portage /usr/portage.latest root #tar xjpf /path/to/portage-20090720.tar.bz2 -C /usr root #emerge --update --oneshot portage but that portage "portage-20090720.tar.bz2" seems old; what is the latest one? go to the http://www.gentoo.org/downloads/mirrors/ and find a mirror, the snapshots will have lastest portage. Like https://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2 It always update. And update a old system may cause a log of problems, be careful. -- bobwxc OpenPGP_0x36E94EABB53E516B.asc Description: application/pgp-keys OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-user] Upgrade an old system
On 14/12/2020 22:35, Neil Bothwick wrote: On Mon, 14 Dec 2020 15:18:19 -0700, the...@sys-concept.com wrote: Moving forward like a snail. Unmerged portage to local directory and running: ./portage-portage-3.0.12/bin/emerge -1 portage gives me two blockers: [blocks B ] Probably not. It looks like you need to update python, try iirc, gentoolkit is an add-on that helps with portage. As such it would be safe to remove ... Read the handbook and see if it *recommends* installing gentoolkit. If it does (as I seem to remember), it isn't *necessary* and can be removed. Cheers, Wol
Re: [gentoo-user] Upgrade an old system
On Mon, 14 Dec 2020 15:18:19 -0700, the...@sys-concept.com wrote: > Moving forward like a snail. > Unmerged portage to local directory and running: > ./portage-portage-3.0.12/bin/emerge -1 portage > > gives me two blockers: > [blocks B ] (" [blocks B ] <=dev-lang/python-2.7.18-r3:2.7 > ("<=dev-lang/python-2.7.18-r3:2.7" is blocking > dev-lang/python-exec-2.4.6-r2) > > I can remove app-portage/gentoolkit but is it safe to remove: > dev-lang/python-2.7.18-r3:2.7 Probably not. It looks like you need to update python, try emerge -1a portage python:2.7 Or simply emerge -1ua @system -- Neil Bothwick Artificial Intelligence usually beats real stupidity. pgp0jcDEhIuG4.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Upgrade an old system
On 12/14/2020 02:58 PM, Arve Barsnes wrote: > On Mon, 14 Dec 2020 at 22:20, wrote: >> Looking at this directory: >> https://github.com/gentoo/portage/releases/tag/portage-3.0.12 >> >> file: portage-portage-3.0.12.tar.gz has totally different structure >> If I run: tar xzf portage-portage-3.0.12.tar.gz -C /usr >> it will create directory /usr/portage-portage-3.0.12 > > That is a release of the portage *application*, you need snapshots of > the portage *tree*. > > I could find some a year old here: > https://mirrors.sohu.com/gentoo/snapshots/ > > You might need to look for even older ones, but worth a try. > > Regards, > Arve Moving forward like a snail. Unmerged portage to local directory and running: ./portage-portage-3.0.12/bin/emerge -1 portage gives me two blockers: [blocks B ]
Re: [gentoo-user] Upgrade an old system
On Mon, 14 Dec 2020 at 22:20, wrote: > Looking at this directory: > https://github.com/gentoo/portage/releases/tag/portage-3.0.12 > > file: portage-portage-3.0.12.tar.gz has totally different structure > If I run: tar xzf portage-portage-3.0.12.tar.gz -C /usr > it will create directory /usr/portage-portage-3.0.12 That is a release of the portage *application*, you need snapshots of the portage *tree*. I could find some a year old here: https://mirrors.sohu.com/gentoo/snapshots/ You might need to look for even older ones, but worth a try. Regards, Arve
Re: [gentoo-user] Upgrade an old system
[snip] emerge --update --oneshot portage !!! All ebuilds that could satisfy ">=app-crypt/openpgp-keys-gentoo-release-20180706" have been masked. !!! One of the following masked packages is required to complete your request: - app-crypt/openpgp-keys-gentoo-release-20200704::gentoo (masked by: EAPI 7) The current version of portage supports EAPI '6'. You must upgrade to a newer version of portage before EAPI masked packages can be installed. (dependency required by "sys-apps/portage-2.3.99-r2::gentoo[rsync-verify,-build]" [ebuild]) (dependency required by "portage" [argument]) I don't even have "app-crypt/openpgp-keys-gentoo-release" installed why is it complaining?
Re: [gentoo-user] Upgrade an old system
On 12/14/2020 12:52 PM, Arve Barsnes wrote: > On Mon, 14 Dec 2020 at 20:38, wrote: >> but that portage "portage-20090720.tar.bz2" seems old; what is the >> latest one? > > They're generated every day, so pick your poison. Notice it mentions > updating the portage tree 3-4 months at a time, so just pick some > dates at reasonable intervals from your starting point. > > Regards, > Arve Looking at this directory: https://github.com/gentoo/portage/releases/tag/portage-3.0.12 file: portage-portage-3.0.12.tar.gz has totally different structure If I run: tar xzf portage-portage-3.0.12.tar.gz -C /usr it will create directory /usr/portage-portage-3.0.12 emerge --update --oneshot portage can not fine it as it is looking for /usr/portage
Re: [gentoo-user] Upgrade an old system
On Mon, 14 Dec 2020 at 20:38, wrote: > but that portage "portage-20090720.tar.bz2" seems old; what is the > latest one? They're generated every day, so pick your poison. Notice it mentions updating the portage tree 3-4 months at a time, so just pick some dates at reasonable intervals from your starting point. Regards, Arve