Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pls somebody enlighten regarding rebuilding of packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 118
Location: Somewhere Over There!

PostPosted: Tue May 02, 2023 1:57 am    Post subject: Pls somebody enlighten regarding rebuilding of packages Reply with quote

Apologize for this as I dont quite understand

Last april, after receiving news regarding drop support of pythons older than 3.11. So I have set all python use flags to 3.11 which causes lots of packages being rebuild... thats fine and dandy... no issues

Today, when I ran update, lots of packages are being rebuilt and it is simply removing python 3.9.

I mean whats the point of setting only to 3.11, build only with 3.11?

I just couldnt get around this as packages are built with 3.11 only and now causing a huge update with lots of packages again being rebuild
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 472

PostPosted: Tue May 02, 2023 4:37 am    Post subject: Reply with quote

I think your question needs clarification. Correct me if I am wrong:
After Gentoo Repo News of Python 3.11 to become the default on 2023-05-01, you chose to force the upgrade early, explicitly setting the Python 3.11 targets in package.use:

Code:
    */* PYTHON_TARGETS: -* python3_11
    */* PYTHON_SINGLE_TARGET: -* python3_11

Afterwards, all of the affected packages were successfully rebuilt using the new python target, 3.11.
Now after the switch was officially made in Gentoo, you found that portage wants to rebuild the packages all over again to build against the same target they were already rebuilt against, 3.11. Why did this occur if you already forced the upgrade to 3.11?
Back to top
View user's profile Send private message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 118
Location: Somewhere Over There!

PostPosted: Tue May 02, 2023 7:11 am    Post subject: Reply with quote

sorry if my post was confusing...

But it is what you said...

If packages were already rebuilt, why this update again needs rebuild? And this time to remove the python 3.9...

I dont understand it because packages were not build with python 3.9
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2892

PostPosted: Tue May 02, 2023 7:17 am    Post subject: Reply with quote

Are you using -N/--newuse? This cause (often unnecessary) rebuilds when flags are added or removed, including if the flag was already disabled when a flag is removed (aka disabled 3.9 -> removed 3.9 = rebuild despite not really changing anything, it's more like a state nitpick)

Using -U/--changed-use instead won't rebuild in this case, but still would if e.g. enabled 3.9 -> removed 3.9 -- so I recommend it instead.
Back to top
View user's profile Send private message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 118
Location: Somewhere Over There!

PostPosted: Tue May 02, 2023 7:51 am    Post subject: Reply with quote

I have used changed use (U)

Code:
sudo emerge -avDuU @world                                                                                                                                                                                                                          130 ↵
Password:

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

Calculating dependencies   ... done!           
Dependency resolution took 18.73 s.

[ebuild     U  ] sys-apps/sysvinit-3.07::gentoo [3.06-r1::gentoo] USE="nls (-ibm) (-selinux) -static -verify-sig" 0 KiB
[ebuild     U  ] dev-python/setuptools-67.7.2::gentoo [67.6.1::gentoo] USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 (-python3_9%)" 0 KiB
[ebuild     U  ] dev-util/meson-1.1.0::gentoo [1.0.1::gentoo] USE="(-test)" PYTHON_TARGETS="python3_11 -python3_10 (-python3_9%)" 0 KiB
[ebuild     U  ] dev-util/gdbus-codegen-2.76.2::gentoo [2.76.1::gentoo] PYTHON_SINGLE_TARGET="python3_11 -python3_10 (-python3_9%)" 0 KiB
[ebuild     U  ] dev-python/pygments-2.15.1::gentoo [2.15.0::gentoo] USE="-test" PYTHON_TARGETS="python3_11 -pypy3 -python3_10 (-python3_9%)" 0 KiB
[ebuild     U  ] media-libs/fontconfig-2.14.2-r2:1.0::gentoo [2.14.2:1.0::gentoo] USE="nls -doc -test" ABI_X86="(64) -32 (-x32)" 0 KiB
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2892

PostPosted: Tue May 02, 2023 8:03 am    Post subject: Reply with quote

These are just normal updates (new versions), not rebuilds.

Shows the 3_9 change, but it's not the cause of it scheduled.
Back to top
View user's profile Send private message
Ja.KooLit
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2022
Posts: 118
Location: Somewhere Over There!

PostPosted: Tue May 02, 2023 8:27 am    Post subject: Reply with quote

Dang Im an idiot... I attached with U....

heres the one with R

https://imgur.com/a/RpIrHPb


this is now on my laptop

https://imgur.com/iHMYrth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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