Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

PYTHON TARGETS switch, anyone else nervous today?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
43 posts
  • Previous
  • 1
  • 2
Author
Message
krumpf
Apprentice
Apprentice
User avatar
Posts: 268
Joined: Sun Jul 15, 2018 11:21 pm

  • Quote

Post by krumpf » Thu Jun 03, 2021 6:30 am

There's only 1 package that's preventing me from removing python:3.8, app-misc/piper hasn't been updated to python:3.9. Guess I'll have to wait until the ebuild gets updated
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Thu Jun 03, 2021 6:58 am

jagdpanther wrote:

Code: Select all

Calculating dependencies... done!
  dev-lang/python-3.8.9_p2 pulled in by:
    x11-misc/menumaker-0.99.12 requires dev-lang/python:3.8
I used menumaker long ago to help set up openbox. After removing menumaker, 'emerge --depclean' removed python-3.8.
(It left one preserved libs that 'emerge @preserved-rebuild' took care of.)
Given it's maintainer-needed, added 3.9 myself in case ever want it back :)
krumpf wrote:There's only 1 package that's preventing me from removing python:3.8, app-misc/piper hasn't been updated to python:3.9. Guess I'll have to wait until the ebuild gets updated
Dropped a side-note about that one in bug #792732 few days ago, hopefully gets attention.
Top
Errelin
n00b
n00b
Posts: 23
Joined: Tue May 11, 2021 8:01 am

  • Quote

Post by Errelin » Thu Jun 03, 2021 8:01 am

I tried to replace my Python target too. Generally just about 60 pkgs to go and all succeeded except spidermonkey.

Spidermonkey, along with rust, clang and firefox, has been giving me hard times on a ~amd64 testing branch. So I masked them all for now and will upgrade them manually when I see a stable version is released.

Now I've been much used to such compile failure. I'm currently with Spidermonkey 78.10.1: 78, and the lastest is 78.11.0 : 78 which seems to be under testing: https://packages.gentoo.org/packages/de ... idermonkey

In terms of removal of Python:3.8, it seems quite some pkgs on my machine need it: readline, openssl, sqlite, zlib and so on. But if i run, say, qdepends sys-libs/readline, it depends not on Python 3.8 instead ... I'm confused.

Should I unmerge them and rebuild them using Python 3.9 or just wait for Portage to care when the ebuilds get updated?
Top
stonespheres
n00b
n00b
User avatar
Posts: 16
Joined: Fri Apr 16, 2021 12:53 am
Location: Australia

  • Quote

Post by stonespheres » Thu Jun 03, 2021 9:20 am

Errelin wrote:I tried to replace my Python target too. Generally just about 60 pkgs to go and all succeeded except spidermonkey.

Spidermonkey, along with rust, clang and firefox, has been giving me hard times on a ~amd64 testing branch. So I masked them all for now and will upgrade them manually when I see a stable version is released.

Now I've been much used to such compile failure. I'm currently with Spidermonkey 78.10.1: 78, and the lastest is 78.11.0 : 78 which seems to be under testing: https://packages.gentoo.org/packages/de ... idermonkey

In terms of removal of Python:3.8, it seems quite some pkgs on my machine need it: readline, openssl, sqlite, zlib and so on. But if i run, say, qdepends sys-libs/readline, it depends not on Python 3.8 instead ... I'm confused.

Should I unmerge them and rebuild them using Python 3.9 or just wait for Portage to care when the ebuilds get updated?
Hmm, all of those packages are specifically large. Do you have them set to compile in notmpfs/do you have enough RAM to compile those?
Every emerge is an opportunity.
Top
Errelin
n00b
n00b
Posts: 23
Joined: Tue May 11, 2021 8:01 am

  • Quote

Post by Errelin » Thu Jun 03, 2021 9:35 am

stonespheres wrote:
Hmm, all of those packages are specifically large. Do you have them set to compile in notmpfs/do you have enough RAM to compile those?
Hi, I think RAM is not a big problem since I got 64GB and was running update process in tty. I failed to compile clang, llvm, rust in the past.

I've never set PYTHON_TARGETS stuff in my make.conf so this time it seems both 3.9 and 3.10beta have been pulled in. The very question I care most now is:
How should I remove python 3.8 since depclean reports other pkgs except Python 3.8 ....

I read up the thread but found it was a bit overwhelming ... Thanks for your reply.
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Thu Jun 03, 2021 9:51 am

Errelin wrote:
stonespheres wrote:Hmm, all of those packages are specifically large. Do you have them set to compile in notmpfs/do you have enough RAM to compile those?
Hi, I think RAM is not a big problem since I got 64GB and was running update process in tty.
Well, depending on settings I wouldn't entirely rule it out. rust for one can use 8-30+GB of space on a tmpfs depending on USE, each rustc process can use something between ~1-4.5GB (perhaps more lately), and multiply that by -jX value -- can very well go over 64GB if it's high enough.

That aside, dmesg output would have mention something near the end if it's what happened in most cases.

Hard to say what else might've happened without seeing some build logs though. Hoping it's not internal compiler errors / segfaults.
Top
Errelin
n00b
n00b
Posts: 23
Joined: Tue May 11, 2021 8:01 am

  • Quote

Post by Errelin » Thu Jun 03, 2021 10:02 am

Ionen wrote:Well, depending on settings I wouldn't entirely rule it out. rust for one can use 8-30+GB of space on a tmpfs depending on USE, each rustc process can use something between ~1-4.5GB (perhaps more lately), and multiply that by -jX value -- can very well go over 64GB if it's high enough.

That aside, dmesg output would have mention something near the end if it's what happened in most cases.

Hard to say what else might've happened without seeing some build logs though. Hoping it's not internal compiler errors / segfaults.
I totally agree on this and this is the reason I set only -j8 for MAKEOPTS with 64GB ram. Nothing more. 64GB is the max my motherboard can support, sigh. I definitely desire more.

I declined to post the build.log and other USE info cuz I think such failure should be expected considering I'm on a testing branch system-wide. This time, the error looks very like the one mentioned in this thread earlier by the guy who failed at qtwebengine: emake failed or sth like that.

And since this thread is more about Python upgrade, I'll try to focus on upgrading @world with Python 3.9 (already done), and remove 3.8 (still trying to figure this out on my machine). Thanks for your reply. :D
Top
cameta
Veteran
Veteran
User avatar
Posts: 1394
Joined: Wed Aug 04, 2004 9:51 am

  • Quote

Post by cameta » Thu Jun 03, 2021 11:10 am

fedeliallalinea wrote:cameta,
maybe ran you in out of memory error? you can check with dmesg. If isn't the case post your emerge --info and the build.log.

The rebuild of many package, including qtwebengine, is due to the stabilization of icu-69 required by new libreoffice-bin version.
Yes, this was the problem. Nothing to do with the Python update.
viewtopic-t-1131918-highlight-.html
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Top
cameta
Veteran
Veteran
User avatar
Posts: 1394
Joined: Wed Aug 04, 2004 9:51 am

  • Quote

Post by cameta » Thu Jun 03, 2021 11:32 am

Errelin wrote:I tried to replace my Python target too. Generally just about 60 pkgs to go and all succeeded except spidermonkey.

Spidermonkey, along with rust, clang and firefox, has been giving me hard times on a ~amd64 testing branch. So I masked them all for now and will upgrade them manually when I see a stable version is released.

Now I've been much used to such compile failure. I'm currently with Spidermonkey 78.10.1: 78, and the lastest is 78.11.0 : 78 which seems to be under testing: https://packages.gentoo.org/packages/de ... idermonkey

In terms of removal of Python:3.8, it seems quite some pkgs on my machine need it: readline, openssl, sqlite, zlib and so on. But if i run, say, qdepends sys-libs/readline, it depends not on Python 3.8 instead ... I'm confused.

Should I unmerge them and rebuild them using Python 3.9 or just wait for Portage to care when the ebuilds get updated?
Look at this problem
viewtopic-t-1136421.html
Si algo falla LEE el jodido manual, Si sigue fallando LEE BIEN el jodido manual.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Fri Jun 04, 2021 2:58 am

Up-to-date two days ago remote x86 server updated today. Nothing python related in /etc/portage/make.conf or /etc/portage/package.use. It updated 82 packages, mostly for Python 3.9, but also gcc-10.3.0, and then Python 3.8 and one other package deplceaned away cleanly. No fuss.
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Errelin
n00b
n00b
Posts: 23
Joined: Tue May 11, 2021 8:01 am

  • Quote

Post by Errelin » Fri Jun 04, 2021 3:54 am

cameta wrote:
Look at this problem
viewtopic-t-1136421.html
Hi cameta, thanks for your information. I failed to locate /usr/lib64/rustlib on my machine however. I still believe my problem was caused by an unstable spidermonkey (the latest, under early testing). So I'm fine with the one already merged. I'll keep this in mind in case I need to look into this lib dir in the future. :D


Also I figured out why Python:3.8 gets stuck in my Gentoo:
1. run

Code: Select all

emerge -pcv python:3.8
I got a short list of ebuilds that depend on python:3.8. Among which there are portage, libxml2. At least for portage I can recall that I once updated it with --oneshot switch.

2. run

Code: Select all

emerge -pv portage
or any ebuild listed as a result of the above step, I saw PYTHON_TARGETS="python3_8 python3_9"!

Since I'm using a directory package.use, rather than a single file, and the global PYTHON_TARGETS stuff was not in my make.conf, but in /etc/portage/package.use/world. Thus, the updated targets will not be applied to any ebuild that is not included in @world, and consequently updating @world will not affect those outside of the set ...

Hope whoever has the same confusion can check in the way suggested and remove python3_8 as needed.
Top
Hu
Administrator
Administrator
Posts: 24400
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jun 04, 2021 4:02 pm

Errelin wrote:Since I'm using a directory package.use, rather than a single file, and the global PYTHON_TARGETS stuff was not in my make.conf, but in /etc/portage/package.use/world. Thus, the updated targets will not be applied to any ebuild that is not included in @world, and consequently updating @world will not affect those outside of the set ...
Assuming that your setting in /etc/portage/package.use/world is:

Code: Select all

*/* PYTHON_TARGETS: python_targets_my_favorite_version
Then it will affect all packages that are rebuilt, regardless of whether they are in @world. However, as you hinted at, if a package is not in @world, then depending on the Portage options used, the package may not be scheduled for a rebuild. If it does not rebuild, it cannot have its settings changed.
Top
pietinger
Administrator
Administrator
Posts: 6631
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Jun 04, 2021 4:08 pm

figueroa wrote:[...] Nothing python related in /etc/portage/make.conf or /etc/portage/package.use. It updated [X] packages, mostly for Python 3.9, but also gcc-10.3.0, and then Python 3.8 and one other package deplceaned away cleanly. No fuss.
+ 1

X=135 (+ gentoo-sources-5.10.42 + qtwebengine + libreoffice ... :lol: )

All perfect !
Top
Errelin
n00b
n00b
Posts: 23
Joined: Tue May 11, 2021 8:01 am

  • Quote

Post by Errelin » Sat Jun 05, 2021 4:55 am

Hu wrote:Assuming that your setting in /etc/portage/package.use/world is:

Code: Select all

*/* PYTHON_TARGETS: python_targets_my_favorite_version
Then it will affect all packages that are rebuilt, regardless of whether they are in @world. However, as you hinted at, if a package is not in @world, then depending on the Portage options used, the package may not be scheduled for a rebuild. If it does not rebuild, it cannot have its settings changed.
Yes, creating a file called "world" or "base" is something I learned while searching through this forum for topics/discussions on package.use: a file or a dir? And I have just done that. The last thing I found about python:3.8 was a few dependencies pulled in by vim still had python_targets_python3_8 flag, so I removed all such flags and then --depclean again. This time only python:3.8 was to be cleaned. Thanks for pointing out that in this thread. It is quite a useful technique for those who like to use a dir as the USE control switch. :D
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Mon Jun 07, 2021 9:30 am

Look like that black sheep for me is fio, else 3.8 would no longer be a dep on my machine.
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Mon Jun 07, 2021 4:38 pm

This fio?

Code: Select all

$ emerge -p sys-block/fio

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-block/fio-3.20-r2  USE="gtk zlib -aio -curl -glusterfs -gnuplot -io-uring -numa -python -rbd -rdma (-static) -tcmalloc -test -zbc" PYTHON_TARGETS="-python3_8" 
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi -wayland
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Mon Jun 07, 2021 4:44 pm

Code: Select all

Calculating dependencies... done!
[ebuild     U  ] sys-block/fio-3.27::gentoo [3.20-r2::gentoo] USE="zlib -aio -curl -glusterfs -gnuplot -gtk -io-uring -numa -python -rbd -rdma (-static) -tcmalloc -test -zbc" PYTHON_TARGETS="python3_9%* -python3_8 (-python3_7%)" 938 KiB
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
eccerr0r
Watchman
Watchman
Posts: 10239
Joined: Thu Jul 01, 2004 6:51 pm
Location: almost Mile High in the USA
Contact:
Contact eccerr0r
Website

  • Quote

Post by eccerr0r » Mon Jun 07, 2021 4:55 pm

Oh wait nevermind, yeah fio-3.20-r2 requires python 3.7 or 3.8, fio-3.27 is ~amd64 on my machine and can be used with python3.9. hmm... Either way it shouldn't be too bad to workaround...
Intel Core i7 2700K/Radeon Firepro W2100/24GB DDR3/800GB SSD
What am I supposed watching?
Top
Post Reply

43 posts
  • Previous
  • 1
  • 2

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic