public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: n952162 <n952162@web.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] override PYTHON_TARGETS to avoid a slot collision
Date: Sat, 19 Dec 2020 15:11:34 +0100	[thread overview]
Message-ID: <1ecc2885-173e-0cf9-3c78-becd87cf3e24@web.de> (raw)
In-Reply-To: <1864112.usQuhbGJ8B@lenovo.localdomain>

[-- Attachment #1: Type: text/plain, Size: 5092 bytes --]

On 12/19/20 12:35 PM, Michael wrote:
> On Saturday, 19 December 2020 10:20:26 GMT n952162 wrote:
>
>> I don't think this output or any list participant has actually
>> identified where the problem here is.  In my original posting, the only
>> difference causing the slot collision for jinja was that one had a
>> PYTHON_TARGETS of 3-7 and the other of 3-8.  I asked how to force it to
>> the correct value, but if someone explained that to me, I didn't
>> understand it.
> You have specified manually a number of python versions, you shouldn't have.


Are you saying that long lists like this:

*"python3_8 python3_9 (-pypy3) -python3_6 -python3_7*"

are relics from improper or obsolete invocations made be me?

If so, how can I get rid of them?


>
> It seems you have also added permanently into your /var/lib/portage/world a
> large number of dependencies and libraries due to your emerge syntax when
> emerging specific packages, which again, you shouldn't have.
>
> As a result with your own inputs in your portage configuration you are
> fighting against what portage is trying to do in its calculations.
>
> I would think the easiest solution would be to work with portage, rather than
> despite portage:
>
> 1. Purge from your config files any hardcoded python targets, in order to let
> portage choose which python target version it requires.


I have added or removed these definitions, either following suggestions
or attempting to provide prerequisites for packages that seem to require
them.

Absolutely, the best medicine is no medicine.


> 2. Clean your world file from any and all dependencies, libraries and packages
> you do not want to have explicitly installed.


Yes, I receive that advice a lot.  If I were to follow it aggressively,
there would only be a handful of files in my world file.  Will that work?


>
> 3. If 'emerge -uaNDv @system' gives you similar errors as above, try emerging
> one package at a time with '--oneshot', so it does not inadvertently end up in
> your world; e.g.
>
> emerge -1aNDv <package name>


I can't get *anything* to emerge, either alone, with near dependencies
(as in the orginal posting) or in sets.


>
> Do not specify a package version in the above, just a name only.  Let portage
> install the version it calculates is appropriate and update any dependencies
> needed.


I never do.



>    If your toolchain is completely borked, you could try the same by
> using a Live-CD and a latest portage snapshot as per the guide book.


Is that much different than a re-install?


>
> 4. When you finish emerging @system you should have a sound toolchain to build
> the rest of your Gentoo installation with.  Run the following:
>
> etc-update (to update your system configuration files)
>
> emerge --depclean -v -a (to unmerge packages/versions no longer needed)
>
> 5. Follow with 'emerge -uaNDv @world'.
>
> 6. When you finish all this run:
>
> etc-update
>
> emerge -v -a @preserved-rebuild --keep-going
>
> emerge --depclean -v -a
>
> revdep-rebuild -v -- -a
>
> /usr/bin/eclean-dist
>
> 7. Build the latest kernel, update grub's menu, reboot.


Yes, I perform these steps, basically, once I get an update emerge to work.

I update the /etc/portage/package.use files by hand, so I get a feeling
for how it works.  Can it be that etc-update is a "smart system" that
does more than just that?


>> /Is there  a fundamental goals issue here, when there's so much
>> incompatibility between python3_{6,7,8,9}?  Do  packages really need to
>> care?  Are these versions so fundamentally different from each other,
>> and programmers rely on those differences?  Or, is this somebody's
>> orderliness tic?/
> Portage runs on python and it is also a dependency on a large number of other
> packages and scripts.  As python upstream is gradually deprecating older
> versions, Gentoo has to follow through with the migration.  The portage tree
> is presently in a relative state of flux because of this, but it should soon
> slow down again.


/What I'm wondering is if packages aren't specifying with too fine a
granularity./


> If your system is borked for unknown reasons and following the above
> suggestions you can't arrive at a stable state, perhaps it is time for you to
> reinstall - which by the look of things it ought to take less of your time?


I was thinking I'd just re-installed this system but I guess that had
just been a painful @world update - I see that I installed it last
year.  If I continue not being able to get a single emerge, I guess
that's how I'll have to go.


I'm surprised, though, that nobody could address the reduced case I
presented in the original posting:

- is the same package being re-installed with new python target
requirements, or am I interpreting it wrongly?

- is there no way to satisfy the differing python target requirements?

- are there consequences  on other packages  to emerging this package
that make it impossible?




[-- Attachment #2: Type: text/html, Size: 7610 bytes --]

  reply	other threads:[~2020-12-19 14:10 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 10:24 [gentoo-user] override PYTHON_TARGETS to avoid a slot collision n952162
2020-12-16 10:34 ` Miles Malone
2020-12-16 10:59   ` Arve Barsnes
2020-12-19 10:20     ` n952162
2020-12-19 10:45       ` William Kenworthy
2020-12-19 11:15         ` n952162
2020-12-19 10:56       ` Arve Barsnes
2020-12-19 11:12         ` n952162
2020-12-19 11:35           ` Neil Bothwick
2020-12-19 14:19             ` n952162
2020-12-19 15:49               ` Neil Bothwick
2020-12-19 12:34           ` Arve Barsnes
2020-12-19 11:12       ` bobwxc
2020-12-19 11:33         ` n952162
2020-12-19 11:37           ` Neil Bothwick
2020-12-19 11:51             ` Michael
2020-12-19 12:02               ` Jude DaShiell
2020-12-19 11:35       ` Michael
2020-12-19 14:11         ` n952162 [this message]
2020-12-19 15:54           ` Neil Bothwick
2020-12-19 16:13             ` Dale
2020-12-20 13:58       ` Róbert Čerňanský
2020-12-16 11:07   ` n952162
2020-12-16 11:20     ` Miles Malone
2020-12-16 11:22     ` Miles Malone
2020-12-16 12:25       ` Dale
2020-12-19  9:39   ` n952162
2020-12-16 10:56 ` bobwxc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ecc2885-173e-0cf9-3c78-becd87cf3e24@web.de \
    --to=n952162@web.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox