Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to break the cycle?
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
ferdish
n00b
n00b


Joined: 11 Jun 2024
Posts: 2

PostPosted: Tue Jun 11, 2024 7:31 am    Post subject: how to break the cycle? Reply with quote

PC hadn't executed
Quote:
emerge --sync
for 4.5 years.
I got almost all packages updated and switched profile from 17.0 to 17.1. After the finishing steps (rebuilding the toolchain) I ran
Quote:
emerge --sync
and with the next command I got a surprise:
Code:

# emerge --verbose --update --pretend portage
...
!!! The following update has been skipped due to unsatisfied dependencies:

sys-apps/portage:0

  selected: (sys-apps/portage-2.3.79:0/0::gentoo, installed)
  skipped: (sys-apps/portage-3.0.63-r1:0/0::gentoo, ebuild scheduled for merge) (see unsatisfied dependency below)

!!! All ebuilds that could satisfy "dev-lang/python:3.12[bzip2(+),threads(+)]" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-lang/python-3.13.0_beta2::gentoo (masked by: EAPI 8)
- dev-lang/python-3.13.0_beta1_p3::gentoo (masked by: EAPI 8)
- dev-lang/python-3.13.0_beta1_p2::gentoo (masked by: EAPI 8)
- dev-lang/python-3.13.0_beta1_p1::gentoo (masked by: EAPI 8)
- dev-lang/python-3.12.4::gentoo (masked by: EAPI 8)
- dev-lang/python-3.12.3-r1::gentoo (masked by: EAPI 8)
- dev-lang/python-3.12.3::gentoo (masked by: EAPI 8)
- dev-lang/python-3.11.9-r1::gentoo (masked by: EAPI 8)
- dev-lang/python-3.11.9::gentoo (masked by: EAPI 8)
- dev-lang/python-3.10.14_p1-r1::gentoo (masked by: EAPI 8)
- dev-lang/python-3.10.14_p1::gentoo (masked by: EAPI 8)
- dev-lang/python-3.9.19_p3::gentoo (masked by: EAPI 8)
- dev-lang/python-3.9.19_p2::gentoo (masked by: EAPI 8)
- dev-lang/python-3.8.19_p2::gentoo (masked by: EAPI 8)
- dev-lang/python-3.8.19_p1::gentoo (masked by: EAPI 8)

The current version of portage supports EAPI '7'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.
(dependency required by "sys-apps/portage-3.0.63-r1::gentoo[python_targets_python3_12]" [ebuild])


# emerge --verbose --nodeps --pretend portage
...
These are the packages that would be merged, in order:

[ebuild     U  ] sys-apps/portage-3.0.63-r1::gentoo [2.3.79::gentoo] USE="(ipc) native-extensions rsync-verify xattr -apidoc% -build -doc -gentoo-dev (-selinux) -test% (-epydoc%)" PYTHON_TARGETS="python3_12%* (-pypy3) -python3_10% -python3_11% (-pypy%) (-python2_7%*) (-python3_5%) (-python3_6%*) (-python3_7%) (-python3_8%)" 1,161 KiB

# python --version
Python 3.6.9


Is it safe to execute
Code:
emerge --verbose --nodeps --oneshot portage
?

Would the updated portage work with Python 3.6.9 while ebuild requires
Quote:
PYTHON_COMPAT=( pypy3 python3_{10..12} )
?
Is there any other way to get python/portage (and then the whole system) updated without breaking it?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 11, 2024 8:46 am    Post subject: Reply with quote

ferdish,

Welcome to the forums.

It looks like you have been a user for some time but your install has been a bit neglected.
There are two or three ways to fix this.

1. HOWTO Update Old Gentoo
2. Get an old portage snapshot from https://distfiles.gentoo.org/snapshots/squashfs. Add squashfs support to your kernel and update to that.
Essentially, you update in baby steps until your install is current.
3. Install a newer python and portage in /root, so that they understand EAPI8 and call them directly. Upgrading Portage.

Lastly, you could reinstall but that would rob you of a wonderful learning opportunity.
_________________
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
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21924

PostPosted: Tue Jun 11, 2024 12:15 pm    Post subject: Reply with quote

To expand on Neddy's welcome, could you tell us a bit about your experience level? There are two ways people bring us this problem:
  • The user installs Gentoo, sets it aside for some time, then comes back and hits this problem.
  • User A installs Gentoo, neglects it, and eventually user B inherits the neglected system. User B then comes to us with this problem. (This problem is particularly likely in corporate environments, where user A left the company.)
In the first case, you probably know your way around Gentoo, and just need us to help with some of the more exotic points. In the second case, user B may be a complete novice to Gentoo, and will need guidance even for managing a system that is relatively current. Throwing such a user into a badly outdated system is a recipe for frustration, so if you are the second case, please tell us up front so that we do not gloss over points that a veteran user would just know. We can help you in either case, but we can better tailor our advice if we know how much you already know.
Back to top
View user's profile Send private message
ferdish
n00b
n00b


Joined: 11 Jun 2024
Posts: 2

PostPosted: Wed Jun 12, 2024 4:00 am    Post subject: Reply with quote

Thank you NeddySeagoon for the warm welcome.

You provided great links - exactly what I was looking for (and even more).

Third suggestion looked interesting until I realized that EAPI 8 requires bash v5 (which I don't have yet) and most likely some other packages/utilities updated.

Currently I'm trying second approach (I didn't know there were portage snapshots out there. Nice finding for me). Some packages (distfiles) from them aren't available though. Doing a lot of manual work and having progress here. Basically I want to get bash v5, python 3.10+ and then I should be able to use the current portage snapshot and current portage package.

Reinstall suggestion is kind of troublesome as this system is so old that it cannot boot from USB. And I agree with you on this option - a lot of opportunities to learn would be missed.

Thank you very much for the options and links. Learning a lot from them and related pages.

Hu, I think I'm in the first category. This is my old system, that was put aside for a long time but now I think it could be useful and trying to bring it up to life.
I'm having some progress already - options from this topic are very useful.

If I hit some wall or have some good progress - I'll share it with you guys. Back to burning CPU for now ;-)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jun 12, 2024 7:25 am    Post subject: Reply with quote

ferdish,

All my distfiles from mid 2006 are at https://bloodnoc.org/~roy/olde-distfiles/ This is about 600G of stuff there so the page is very slow to autoindex.

Try
Code:
GENTOO_MIRRORS="https://bloodnoc.org/~roy/olde-distfiles" emerge ....

Also
Code:
GENTOO_MIRRORS="" emerge ....
tells portage not to use the gentoo mirror system at all but go straight to the SRC_URI in the ebuild.
That's considered antisocial for everyday use but portage would get to the SRC_URI eventually anyway.

Lastly, you can do
Code:
emerge -fp ...
That will spit out a list of required files.
Hunt them down manually with the aid of the search engine of your choice. There are other distfiles archives out there. Not just mine.
_________________
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