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: texpresso #334648

Closed
wentasah opened this issue Aug 14, 2024 · 0 comments · Fixed by #334797
Closed

Build failure: texpresso #334648

wentasah opened this issue Aug 14, 2024 · 0 comments · Fixed by #334797
Labels
0.kind: build failure A package fails to build

Comments

@wentasah
Copy link
Contributor

Steps To Reproduce

Steps to reproduce the behavior:

  1. build texpresso or just texpresso.tectonic, e.g.: nix build nixpkgs/nixos-unstable#texpresso.tectonic

Build log

...
patching file Cargo.lock
Hunk #1 succeeded at 2369 (offset -264 lines).
Hunk #2 succeeded at 2704 (offset -231 lines).
Hunk #3 succeeded at 2727 (offset -231 lines).
patching file Cargo.toml
Hunk #1 succeeded at 102 with fuzz 2 (offset 5 lines).
calling 'postPatch' function hook 'cargoSetupPostPatchHook'
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/texpresso-tonic-0.15.0-vendor.tar.gz/Cargo.lock
2372d2371
<  "time",
2707c2706
< version = "0.3.36"
---
> version = "0.3.34"
2709c2708
< checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885"
---
> checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749"
2730c2729
< version = "0.2.18"
---
> version = "0.2.17"
2732c2731
< checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf"
---
> checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774"

ERROR: cargoHash or cargoSha256 is out of date

Cargo.lock is not the same in /build/texpresso-tonic-0.15.0-vendor.tar.gz

To fix the issue:
1. Set cargoHash/cargoSha256 to an empty string: `cargoHash = "";`
2. Build the derivation and wait for it to fail with a hash mismatch
3. Copy the "got: sha256-..." value back into the cargoHash field
   You should have: cargoHash = "sha256-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=";

Notify maintainers

@NickHu

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
 - host os: `Linux 6.6.43, NixOS, 24.05 (Uakari), 24.05.20240813.4a92571`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(wsh): `"home-manager-22.05.tar.gz"`
 - channels(root): `""`
 - nixpkgs: `/home/wsh/nix/nixpkgs-stable`

Add a 👍 reaction to issues you find important.

@wentasah wentasah added the 0.kind: build failure A package fails to build label Aug 14, 2024
wentasah added a commit to wentasah/nixpkgs that referenced this issue Aug 15, 2024
Hash mismatch was caused by NixOS#333143.

The build error message contains:

    Validating consistency between /build/source/Cargo.lock and /build/texpresso-tonic-0.15.0-vendor.tar.gz/Cargo.lock
    2372d2371
    <  "time",
    2707c2706
    < version = "0.3.36"
    ---
    > version = "0.3.34"
    ...
    ERROR: cargoHash or cargoSha256 is out of date

Fixes NixOS#334648.
@NickHu NickHu closed this as completed in 3de2aed Aug 16, 2024
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
Development

Successfully merging a pull request may close this issue.

1 participant