Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.rtmixer: convert to pyproject, fix cross #351972

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

SFrijters
Copy link
Member

Before this change the build process fails for nix build .#pkgsCross.aarch64-multiplatform.python3Packages.rtmixer, but adding cffi to nativeBuildInputs fixes it.

I've tested this change at runtime as well by cross-compiling a Python env with this package, copying the closure to a Raspberry Pi, and importing the module on the Raspberry Pi. The build machine is x86_64 and binfmt is disabled (checked by trying to run the cross-compiled environment, and I correctly got "cannot execute binary file: Exec format error"). nix path-info -r ./result | grep -v aarch returns no results so it looks clean to me.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@SFrijters
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 351972


x86_64-linux

✅ 6 packages built:
  • friture
  • friture.dist
  • python311Packages.rtmixer
  • python311Packages.rtmixer.dist
  • python312Packages.rtmixer
  • python312Packages.rtmixer.dist

@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10 labels Oct 28, 2024
@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 1, 2024
Fixes

> ModuleNotFoundError: No module named '_cffi_backend'

during the build.
@SFrijters SFrijters changed the title python3Packages.rtmixer: 0.1.4 -> 0.1.7, convert to pyproject, fix cross python3Packages.rtmixer: convert to pyproject, fix cross Nov 6, 2024
@SFrijters SFrijters removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Nov 6, 2024
@SFrijters
Copy link
Member Author

Version was bumped in #345326, rebased and resolved merge conflict.

@mweinelt mweinelt merged commit 4f6df22 into NixOS:master Nov 6, 2024
15 of 16 checks passed
@SFrijters SFrijters deleted the python3-rtmixer branch November 6, 2024 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: python 10.rebuild-darwin: 1-10 10.rebuild-linux: 1-10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants