Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Cannot emerge world due to python
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 657

PostPosted: Sun May 04, 2025 5:05 pm    Post subject: Reply with quote

szatox wrote:

In the meantime, I fixed video playback in palemoon. Its ebuild has a botched dependency, which allows ffmpeg-7, but then attempts to open a bunch if older versions of libavcodec and ends up not finding the one that is actually installed. So this one really was just a coincidence.


Mind tossing me that patch?
_________________
Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2982

PostPosted: Sun May 04, 2025 5:06 pm    Post subject: Reply with quote

szatox wrote:
logrusx wrote:

Yup. Definitely a misunderstanding here. Or lack of understanding.

I will repeat - some apps can use multiple python implementations, others can't. The ones that can't lock other apps with the same implementation they use. That's not some general rule you're citing, that's python specific.
We're talking about whether a certain functionality, which is not implemented, would be a good feature to have or not, and how would it work. It's the realm of what-ifs.
Are you seriously telling me that a thing that doesn't exist yet, does not work?


Single-impl packages can only import modules from a specific implementation. That brings the implication that their reverse dependencies have no way of using a different implementation, getting locked to that same implementation and effectively becoming single-impl packages. I'm not sure how far that propagates into the dependency graph, it might very well be further than I can see.

Let's pretend somebody implemented that. Very few packages would benefit from it, but that would defeat the purpose because clusters or packages would form around those single targets which would improve nothing. Packages will "spill over" from one single target cluster to another, carrying with them big amounts of rebuilds. Furthermore multiple-impl packages would get rebuilt with every new target getting added or removed. It would only cause even bigger mess and won't in any way be more convenient. Not to mention the unreasonable amount of work that the implementation of that would require. Moreover that would require extensive amount of testing the new versions too. The binhost would be overwhelmed too.

That's not going to happen any time soon, if at all, unless something fundamental changes in python. There certainly is space for improvement and it most certainly will happen, but not in the drastic way you envision it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3648

PostPosted: Sun May 04, 2025 6:56 pm    Post subject: Reply with quote

saellaven wrote:

Mind tossing me that patch?

I just solved it manually with emerge =ffmpeg-6*, but this works too:
Code:
diff --git a/www-client/palemoon/palemoon-33.7.0.ebuild b/www-client/palemoon/palemoon-33.7.0.ebuild
index 913bc89..b582956 100644
--- a/www-client/palemoon/palemoon-33.7.0.ebuild
+++ b/www-client/palemoon/palemoon-33.7.0.ebuild
@@ -59,7 +59,7 @@ RDEPEND="
    media-libs/alsa-lib
    pulseaudio? ( media-libs/libpulse )
 
-   media-video/ffmpeg[x264]
+   <media-video/ffmpeg-7[x264]
 
    necko-wifi? ( net-wireless/wireless-tools )
 "


logrusx, great, now you're bringing actual concerns. I think you're overestimating the necessary "stickiness" of single target apps, and it somehow makes things more rigid than only having one, system-wide single_target. On top of that, I think it's easier to deal with a dozen of small problems than one huge, and being able to test things out one at a time and release as they're ready fits a rolling disto better than "Every May the next python take over your @world". Would it be more work overall? I don't know.
Will it ever be implemented? Probably not. Question is: because it's a bad idea, because it's too much work to switch, or because it's a different approach, and Gentoo became a distro for old-farts, and all the cool kids hang out around Arch those days? :lol:

Oh, I almost forgot: Happy Star Wars Day, everyone!
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2326

PostPosted: Sun May 04, 2025 8:50 pm    Post subject: Reply with quote

Life is easy with no slot support.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4757
Location: Germany

PostPosted: Sun May 04, 2025 10:43 pm    Post subject: Reply with quote

@szatox
media-video/ffmpeg-compat:6[x264] Slot is probably the better way.
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3648

PostPosted: Mon May 05, 2025 9:10 am    Post subject: Reply with quote

No, it doesn't need to be 6. 4 worked on my system just fine until last week, haven't tested 5, but it will surely do as well. You can even enable outdated codecs at runtime, which I suppose would allow you to use 3 (not in portage anymore).
Only 7 is too new to to be tested for.
A better solution would be to open libavcodec.so rather than libavcodec.so.{60,59,58,57,56..} while completely ignoring libavcodec.so.61, but faking a symlink didn't cut it.
_________________
Make Computing Fun Again
Back to top
View user's profile Send private message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1020

PostPosted: Mon May 05, 2025 11:01 am    Post subject: Reply with quote

For me, I had to uninstall stellarium, aircrack, tcpreplay and android-tools. I'm not using them at this time so I didn't pin Python 3.12, but very poor handling of stable systems breakage.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2982

PostPosted: Mon May 05, 2025 11:23 am    Post subject: Reply with quote

Zarhan wrote:
For me, I had to uninstall stellarium, aircrack, tcpreplay and android-tools. I'm not using them at this time so I didn't pin Python 3.12, but very poor handling of stable systems breakage.


Don't forget to file bugs if there aren't. This helps too.

Best Regards,
Georgi
Back to top
View user's profile Send private message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 657

PostPosted: Mon May 05, 2025 11:36 am    Post subject: Reply with quote

szatox wrote:
saellaven wrote:

Mind tossing me that patch?

I just solved it manually with emerge =ffmpeg-6*, but this works too:


Thanks. Someone posted a thread in the palemoon forums on it as well.
_________________
Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc
Back to top
View user's profile Send private message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1020

PostPosted: Tue May 06, 2025 4:58 pm    Post subject: Reply with quote

Relevant bugs for my problematic packages

https://bugs.gentoo.org/952309
https://bugs.gentoo.org/952677
https://bugs.gentoo.org/952635
https://bugs.gentoo.org/952428

Have to say, these have been open since late March, why did they go forward with switching to Python 3.13 anyway?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23434

PostPosted: Tue May 06, 2025 5:50 pm    Post subject: Reply with quote

As I said above, the switch cannot be held back indefinitely. I suspect the switch date was picked with the hope that all core packages would be ready by the switch date.

For the bugs you cited, one had already been fixed, and none of the others had received even a token comment protesting about the need for more time. If the maintainer for the package neither adjusts it, nor requests more time to do so, how long would you expect the Gentoo Python team to sit by and wait?
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
Goto page Previous  1, 2, 3
Page 3 of 3

 
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



OSZAR »