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

Build failure: pkgsCross.mingwW64.python3 #351007

Open
greg-hellings opened this issue Oct 24, 2024 · 0 comments
Open

Build failure: pkgsCross.mingwW64.python3 #351007

greg-hellings opened this issue Oct 24, 2024 · 0 comments
Labels
0.kind: build failure A package fails to build 6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: python 6.topic: windows Running, or buiding, packages on Windows

Comments

@greg-hellings
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build "nixpkgs#pkgsCross.mingwW64.python3 -- this builds Python 3.12.6 at the time of submission
  2. nix build "nixpkgs#pkgsCross.mingwW64.python311 -- this builds Python 3.11.10 at the time of submission

Build log

<other output>
       > patching file configure.ac
       > Hunk #1 succeeded at 940 (offset 4 lines).
       > applying patch /nix/store/vjpajc2ww5m4yypsh9yrb0im83jw01cx-mingw-python-patches/*.patch
       > /nix/store/3qg526kqkpzgd2ggaj6knzwzxsiyhck9-stdenv-linux/setup: line 1361: /nix/store/vjpajc2ww5m4yypsh9yrb0im83jw01cx-mingw-python-patches/*.patch: No such file or directory

Additional context

This stems from the package trying to do shell expansion in a Nix array:

  • in [
  • "${mingw-patch}/*.patch"
  • ]);

Notify maintainers

The whole Python team?

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.57, NixOS, 24.11 (Vicuna), 24.11.20241020.1997e4a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source`

Add a 👍 reaction to issues you find important.

@greg-hellings greg-hellings added 0.kind: build failure A package fails to build 6.topic: python 6.topic: windows Running, or buiding, packages on Windows labels Oct 24, 2024
greg-hellings added a commit to greg-hellings/nixpkgs that referenced this issue Oct 24, 2024
Windows patches were being added with a shell glob, which was dying with
an error. See NixOS#351007. Use filesystem methods to walk the patch set and
retrieve the patch names.

Also, update the patches from the Fedora project to the latest for
Python 3.11.9 and add filtering for any that are already applied to the
3.11.10 in the current cycle.

python312 still fails to cross-compile after this patch, but at least
3.11 will again be available
@FliegendeWurst FliegendeWurst added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Oct 24, 2024
greg-hellings added a commit to greg-hellings/nixpkgs that referenced this issue Oct 25, 2024
Windows patches were being added with a shell glob, which was dying with
an error. See NixOS#351007. Use filesystem methods to walk the patch set and
retrieve the patch names.

Also, update the patches from the Fedora project to the latest for
Python 3.11.9 and add filtering for any that are already applied to the
3.11.10 in the current cycle.

python312 still fails to cross-compile after this patch, but at least
3.11 will again be available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: python 6.topic: windows Running, or buiding, packages on Windows
Projects
None yet
Development

No branches or pull requests

2 participants