Skip to content

crypthography cross build produces host's rust library #205807

@Cynerd

Description

@Cynerd

Describe the bug

By attempting to cross-compile python cryptography I get build but rust bindings are build for host architecture.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build .#legacyPackages.x86_64-linux.pkgsCross.aarch64-multiplatform.python3Packages.cryptography
  2. file result/lib/python3.10/site-packages/cryptography/hazmat/bindings/_rust.abi3.so gives x86-64
  3. file result/lib/python3.10/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so gives aarch64

Expected behavior

The rust should be cross compiled as well.

Additional context

Add any other context about the problem here.

I tried to look into it and discovered this PyO3/setuptools-rust#294 but nothing more.

Notify maintainers

@SuperSandro2000

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.10, NixOS, 23.05 (Stoat), 23.05.20221209.9e4a15b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

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: rustGeneral-purpose programming language emphasizing performance, type safety, and concurrency.
    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