Hi,

Ryan Carsten Schmidt wrote:
On Feb 24, 2025, at 02:56, Riccardo Mottola wrote:
That is what I suspect (or user error, I activated universal during some test 
manually).
Such default would be different from the build server though, I so I guess more 
it is an issue or combination of settings on my side
Can you provide evidence for this claim? When MacPorts is running on the build 
machines, it has no idea it is running in a build machine. It is doing exactly 
what it would do on a user's machine.

Perhaps I expressed myself unclearly. I intend that there is no issue on the build machine, but I have universal on my user system. So if some automatic dependency would kick in to make it universal, it should happen there too, shouldn't it?

What I know is that I never install python3.. It is always a dependency for me, so it gets installed as requested (exception is pesky python2.7 which I still need for ArcticFox and TenFourFox).

However, I tried:

port -v installed rdependentof:python310 | grep -F i386

shows nothing, so I guess nothing right now wants it i386.

also
port installed requested

shows many ports, but no python3 port shows - as I would expect.
If you do not actually want python310 installed with the universal variant, 
then install it without that variant.

There is no built-in command to reinstall all ports without the universal 
variant. You can use a shell command pipeline to get the list of ports that are 
installed with the universal variant and reinstall them without that variant. 
I've probably posted such a command pipeline to this list or the other one many 
years ago, although that probably predated the tracking of requested variants 
and thus probably will not correctly preserve them.


First, I did run a "port reclaim". Then I can redo:

$ port -v installed rdependentof:python310
The following ports are currently installed:
  py310-cairo @1.27.0_0+quartz (active) requested_variants='+quartz-x11' platform='darwin 15' archs='x86_64' date='2024-11-22T22:20:47+0100'   py310-gobject3 @3.46.0_0 (active) requested_variants='' platform='darwin 15' archs='x86_64' date='2023-10-12T01:48:38+0200'

Apparently... nothing I explicitly asked to install requires python310

sudo port uninstall python310 py310-gobject3  py310-cairo

and it is gone. Now, if all is fine, I should have nothing left that requires universal, but I have some installed ports left:

port installed | grep universal
  bzip2 @1.0.8_0+universal (active)
  expat @2.6.4_0+universal (active)
  gettext-runtime @0.22.5_0+universal (active)
  libedit @20250104-3.1_0+universal (active)
  libffi @3.4.6_1+universal (active)
  libiconv @1.17_0+universal (active)
  libomp @19.1.7_0+universal (active)
  ncurses @6.5_0+universal (active)
  openssl @3_22+universal (active)
  openssl3 @3.4.1_0+universal (active)
  sqlite3 @3.49.1_0+universal (active)
  xz @5.6.4_0+universal (active)
  zlib @1.3.1_0+universal (active)

I imagine however that they will not rebuild by themselves as non-universal? I did not enough to heal things, but the universal might propagate again, wouldn't it? I'ld like to rebuild these without breaking dependencies or rebuilding uninstalling too much...

Riccardo

Reply via email to