NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.49k stars 13.67k forks source link

Build failure: rubiks #252930

Closed zeuner closed 1 year ago

zeuner commented 1 year ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build rubiks

Build log

building '/nix/store/bb6ai7mn37881im72lr2xhgk576f1yaa-dietz-cu2-Makefile.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba.drv'...

trying https://git.sagemath.org/sage.git/plain/build/pkgs/rubiks/patches/dietz-cu2-Makefile.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0  9115    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404
error: cannot download dietz-cu2-Makefile.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba from any mirror

Additional context

Since all these URLs on git.sagemath.org seem to fail, I changed them to corresponding raw.githubusercontent.com URLs: https://github.com/zeuner/nixpkgs/tree/rubiks-download-fix . However, this leads to a hash mismatch:

trying https://raw.githubusercontent.com/sagemath/sage/develop/build/pkgs/rubiks/patches/dietz-cu2-Makefile.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1059  100  1059    0     0   3845      0 --:--:-- --:--:-- --:--:--  3850
error: hash mismatch in fixed-output derivation '/nix/store/a6xxf5q9bh1xfhq2jk8izd14f5xw0mam-dietz-cu2-Makefile.patch?id=07d6c37d18811e2b377a9689790a7c5e24da16ba.drv':
         specified: sha256-uOKUWM6P/krhalRJdyFplN4Y2wpK0R9Sw5LgNGvgw+c=
            got:    sha256-bRU7MJ/6BgCp2PUqZOragJhm38Q3E8ShStXQIYwIjvw=

Unfortunately, I don't have the previous patch available, so I can't check what change leads to the hash mismatch. This one particular patch doesn't look unreasonable. I don't know how to update the hash entry, though, because it does not follow the sha-256- notation: https://github.com/zeuner/nixpkgs/commit/0ca86d970642a81cfeb9b3d19e944861c4abb8f5#diff-fd1b8a8025457c6f8c2fc29431ea1e4fc177a47d5ab85fc5c63bd198ff04a430L32

Notify maintainers

@timokau @omasanori @raskin @collares

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.0-78-generic, Ubuntu, 22.04.3 LTS (Jammy Jellyfish), nobuild`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.6.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/root/.nix-defexpr/channels/nixpkgs`
collares commented 1 year ago

On it! Thanks for the report.