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: python3Packages.pypdfium2 #378154

Open
3 tasks done
sarahec opened this issue Jan 30, 2025 · 1 comment · May be fixed by #378177
Open
3 tasks done

Build failure: python3Packages.pypdfium2 #378154

sarahec opened this issue Jan 30, 2025 · 1 comment · May be fixed by #378177
Assignees
Labels
0.kind: build failure A package fails to build

Comments

@sarahec
Copy link
Contributor

sarahec commented Jan 30, 2025

Nixpkgs version

  • Unstable (25.05)

Steps to reproduce

❯ hydra-check python312Packages.pypdfium2
Build Status for nixpkgs.python312Packages.pypdfium2.x86_64-linux on jobset nixos/trunk-combined
https://hydra.nixos.org/job/nixos/trunk-combined/nixpkgs.python312Packages.pypdfium2.x86_64-linux
✖ (Dependency failed)  python3.12-pypdfium2-4.30.1  2025-01-29  https://hydra.nixos.org/build/287220104
❯ nix-build -A python312Packages.pypdfium2
these 4 derivations will be built:
  /nix/store/3fmxn0ja02qlzglmlmbdllhgizq5ca80-public.tar.gz.drv
  /nix/store/njrxm67l0js9nv205zzh51nw5n8nnyl3-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30.drv
  /nix/store/zdjpjzy7fiqnkvsjz8bci7dl2hr0y86a-version.json.drv
  /nix/store/nj61w6cn7lqhqfxb2gzs7xi5cylvfgbi-python3.12-pypdfium2-4.30.1.drv
...elided...
error: hash mismatch in fixed-output derivation '/nix/store/3fmxn0ja02qlzglmlmbdllhgizq5ca80-public.tar.gz.drv':
         specified: sha256-vKfs4Jd8LEtA3aTI+DcJMS0VOErq1IR1eThnMlxiER0=
            got:    sha256-+VD0nq5B2W/oss+lPRZWiRDPpnQ+QhkKv3nlh1lDfD8=
error: 1 dependencies of derivation '/nix/store/nj61w6cn7lqhqfxb2gzs7xi5cylvfgbi-python3.12-pypdfium2-4.30.1.drv' failed to build

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/287220104

Relevant log output

Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30
checking for references to /build/ in /nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30...
patching script interpreter paths in /nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30
stripping (with command strip and flags -S -p) in  /nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30/lib /nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30/bin
shrinking RPATHs of ELF executables and libraries in /nix/store/5cgfkr2h33z6lb4ah12k75n5p6bv3fbr-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30-dist
checking for references to /build/ in /nix/store/5cgfkr2h33z6lb4ah12k75n5p6bv3fbr-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30-dist...
patching script interpreter paths in /nix/store/5cgfkr2h33z6lb4ah12k75n5p6bv3fbr-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30-dist
Rewriting #!/nix/store/qrc496n6fsqp4p5m5h8wmw5d5jwyw5mr-python3-3.12.8/bin/python3.12 to #!/nix/store/qrc496n6fsqp4p5m5h8wmw5d5jwyw5mr-python3-3.12.8
wrapping `/nix/store/zfa2v089f2fjljpibmdv03as3gg6q3bj-python3.12-ctypesgen-1.1.1+g848e9fbb1374f7f58a7ebf5e5da5c33292480b30/bin/ctypesgen'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
100 73513    0 73513    0     0  90977      0 --:--:-- --:--:-- --:--:-- 90981
error: hash mismatch in fixed-output derivation '/nix/store/3fmxn0ja02qlzglmlmbdllhgizq5ca80-public.tar.gz.drv':
         specified: sha256-vKfs4Jd8LEtA3aTI+DcJMS0VOErq1IR1eThnMlxiER0=
            got:    sha256-+VD0nq5B2W/oss+lPRZWiRDPpnQ+QhkKv3nlh1lDfD8=
error: 1 dependencies of derivation '/nix/store/nj61w6cn7lqhqfxb2gzs7xi5cylvfgbi-python3.12-pypdfium2-4.30.1.drv' failed to build

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.11, NixOS, 25.05 (Warbler), 25.05.20250126.852ff1d
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos-23.05"
  • channels(sec): ""
  • nixpkgs: /nix/store/wshnc0kqk1qz7iffb1yqri8a5cy6v7w5-source

Notify maintainers

@booxter

Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@sarahec
Copy link
Contributor Author

sarahec commented Jan 31, 2025

Root cause: the headers aren't being downloaded from a fixed commit. See #378156 (comment)

@dotlambda dotlambda changed the title Build failure: python3Packages.pypdfium Build failure: python3Packages.pypdfium2 Jan 31, 2025
@booxter booxter linked a pull request Jan 31, 2025 that will close this issue
13 tasks
booxter added a commit to booxter/nixpkgs that referenced this issue Jan 31, 2025
Previously, we were fetching headers from a branch, not a fixed
revision, so a new patch in the branch broke the build because hashes
changed.

Closes NixOS#378154

Signed-off-by: Ihar Hrachyshka <[email protected]>
@booxter booxter self-assigned this Jan 31, 2025
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
Projects
None yet
2 participants