!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

518 Members
108 Servers

Load older messages


SenderMessageTime
24 Aug 2025
@artturin:matrix.orgArtturin* Nvm you meant the normal issue, not the cross issue18:35:13
@tpw_rules:matrix.orgtpw_rulesyeah this is broken somewhere in python hell18:36:30
@dramforever:matrix.orgdramforever

what on earth is going on

$ pyvenv/bin/meson --version
1.5.0
18:41:18
@dramforever:matrix.orgdramforeverqemu-user is being built with meson 1.5.018:41:28
@qyliss:fairydust.spaceAlyssa RossIs it using QEMU's vendored Meson?18:46:46
@qyliss:fairydust.spaceAlyssa RossWe set a flag to ask it not to, but maybe it is anyway18:46:54
@qyliss:fairydust.spaceAlyssa Rossactually I don't see that flag any more18:47:30
@qyliss:fairydust.spaceAlyssa Rossmaybe there's some other way we need to be doing that18:48:35
@qyliss:fairydust.spaceAlyssa RossQEMU 10.0.0 vendors 1.8.1 though18:49:40
@dramforever:matrix.orgdramforeveri forced enableDocs to true and that seems to have fixed it???18:49:40
@dramforever:matrix.orgdramforever(haven't built rest of qemu)18:49:46
@qyliss:fairydust.spaceAlyssa Ross * QEMU 10.0.0 vendors 1.8.1 though 18:49:54
@qyliss:fairydust.spaceAlyssa Ross10.1.0 does, sorry18:50:01
@qyliss:fairydust.spaceAlyssa RossSo https://github.com/NixOS/nixpkgs/pull/428258 might also fix it18:50:12
@qyliss:fairydust.spaceAlyssa RossBut we should figure out how to stop using the vendored Meson if that's what's happening18:50:22
@dramforever:matrix.orgdramforeverso https://github.com/NixOS/nixpkgs/pull/431074 did actually break it18:51:13
@dramforever:matrix.orgdramforever

status: trying this

     # Don't change this to python3 and python3.pkgs.*, breaks cross-compilation
-    (python3Packages.python.withPackages (ps: with ps; [ distlib ]))
+    python3Packages.python
+    python3Packages.distlib
18:51:35
@qyliss:fairydust.spaceAlyssa RossMaybe there's just no way to not use vendored Meson any more?18:52:01
@dramforever:matrix.orgdramforeverno, qemu is built with non-vendored fine18:52:33
@dramforever:matrix.orgdramforeverat least it's 1.8.318:52:38
@qyliss:fairydust.spaceAlyssa Ross
If a package is available for the chosen interpreter, ``configure``
prepares a small script that invokes it from the venv itself\ [#distlib]_.
If not, ``configure`` can also optionally install dependencies in the
virtual environment with ``pip``, either from wheels in ``python/wheels``
or by downloading the package with PyPI.  Downloading can be disabled with
``--disable-download``; and anyway, it only happens when a ``configure``
option (currently, only ``--enable-docs``) is explicitly enabled but
the dependencies are not present.
18:52:42
@qyliss:fairydust.spaceAlyssa RossSo docs does make a difference?18:52:50
@qyliss:fairydust.spaceAlyssa Ross *
If a package is available for the chosen interpreter, ``configure``
prepares a small script that invokes it from the venv itself\ [#distlib]_.
If not, ``configure`` can also optionally install dependencies in the
virtual environment with ``pip``, either from wheels in ``python/wheels``
or by downloading the package with PyPI.  Downloading can be disabled with
``--disable-download``; and anyway, it only happens when a ``configure``
option (currently, only ``--enable-docs``) is explicitly enabled but
the dependencies are not present.
18:52:58
@qyliss:fairydust.spaceAlyssa Ross does --disable-download make a difference then? 18:53:15
@dramforever:matrix.orgdramforeveryes, this fixes qemu-user18:54:40
@dramforever:matrix.orgdramforevertesting full qemu rn18:54:43
@dramforever:matrix.orgdramforeversorry, i meant https://github.com/nixos/nixpkgs/commit/e651d115d5f2a6d37661578370993d345d97c71c did break it18:55:31
@dramforever:matrix.orgdramforeverappliable diff https://fars.ee/B0XU18:56:48
@dramforever:matrix.orgdramforeveri suspect hexa just did not see the python3Packages below18:57:53
@dramforever:matrix.orgdramforeverand decided to just wrap it while not knowing what's going on18:58:03

Show newer messages


Back to Room ListRoom Version: 6