Skip to content

Python needs splicing #104135

@Ericson2314

Description

@Ericson2314

Describe the bug
Non-buildInputs that are python packages shouldn't be provided by the same package set in cross builds.

(Grep __splicedPackages so see the nasty stuff the Haskell and xorg package sets do today, that's what we need to cargo cult.)

I'm happy to help fix this, but it would be nice to do in conjunction with the python maintainers rather than pure async.

To Reproduce
On staging today fad48e3:

 $ nix-diff /nix/store/ampk9xikalzrlmcnn69jk056xnj1bfma-python2.7-PyStemmer-2.0.1.drv /nix/store/78l2xl541qn32qsv2as3zg88s6dh9qr6-python2.7-PyStemmer-2.0.1.drv
- /nix/store/ampk9xikalzrlmcnn69jk056xnj1bfma-python2.7-PyStemmer-2.0.1.drv:{out}
+ /nix/store/78l2xl541qn32qsv2as3zg88s6dh9qr6-python2.7-PyStemmer-2.0.1.drv:{out}
• The input named `python2.7-Cython-0.29.21` differs
  - /nix/store/kx6nqrm0k5vsri107pshj0ar5arawzih-python2.7-Cython-0.29.21.drv:{out}
  + /nix/store/xr0g9x2m0mhy39rhsi7vb4nzjswxzbcp-python2.7-Cython-0.29.21.drv:{out}
  • The set of input names do not match:
      - aarch64-unknown-linux-gnu-gdb-10.1
      + gdb-10.1
  • The environments do not match:
      buildInputs=''
          /nix/store/nwk8rivbjixsi9f9aghdx3940ga5px0w-glibc-locales-2.32 /nix/store/pxq11mmxrlqqmzjsv2cx8r9kqq75f8j73ap194mbw5-aarch6p2jb4-unknoy6rwn-gxqfwlinu6x-gnu-gdb-10.1
      ''
• Skipping environment comparison

Expected behavior
those two derivations are the same

Additional context

  • GDB in particular maybe could be more multi-target, but nevermind that for now.
  • Cython I suppose should be able to cross compile, so it makes sense that GDB might really need to be used with non-native binaries.

Notify maintainers
CC @FRidh

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: HUGE, but cross-only
# a list of nixos modules affected by the problem
module: probably big too

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: cross-compilationBuilding packages on a different platform than they will be used on6.topic: pythonPython is a high-level, general-purpose programming language.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions