qrencode: fix build failure#407835
qrencode: fix build failure#407835philiptaron merged 2 commits intoNixOS:stagingfrom stefano-m:GH-407834/fix-qrencode-build
Conversation
Prince213
left a comment
There was a problem hiding this comment.
I would suggest that you arrage your commits like this:
qrencode: update src to GitHub, in which you use fetchFromGitHub and add autoreconfHook; andqrencode: remove SDL2 from nativeCheckInputs
The source tar is no more available at https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz E.g. $ curl -I 'https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz' HTTP/1.1 404 Not Found Date: Sat, 17 May 2025 07:13:20 GMT Server: Apache/2.4.62 (Debian) Strict-Transport-Security: max-age=31536000 Content-Type: text/html; charset=iso-8859- However, we can download it from the official repository on GitHub as mentioned in the project's home page[1]. To make the package build, we use autoreconfHook to mimick the repo's `autogen.sh` because the GitHub repo does not contain the configure script as mentioned in the project's README[2]: > If there is no "configure" script in the source code directory, run > "autogen.sh" at first to generate it - this is mandatory if you downloaded > the source from GitHub. [1] https://web.archive.org/web/20250413215821/https://fukuchi.org/en/works/qrencode/ [2] https://github.com/fukuchi/libqrencode/blob/50b3e5725cafccfde038c0833cdaa5b1c28491e2/README.md#compile--install
Nix fails with an infinite recursion error When running the qrencode tests with SDL2 in nativeCheckInputs. Removing the dependency fixes the error and the tests still run successfully.
|
I hope this can be backported to 24.11 |
Prince213
left a comment
There was a problem hiding this comment.
Built and tested on x86_64-linux.
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin release-24.11
git worktree add -d .worktree/backport-407835-to-release-24.11 origin/release-24.11
cd .worktree/backport-407835-to-release-24.11
git switch --create backport-407835-to-release-24.11
git cherry-pick -x 04db9fed9e8a9ef0dae2c829b0abe864e2e7f9df b8246ba626f8c122e615b239985fc340d2eed27c |
|
Successfully created backport PR for |
You'll have to manually do that -- the auto-backport failed. Also note that it needs to target staging-24.11 due to rebuild count. |
|
Created manual backport to |
|
All of the backports have been merged. Thanks for your work @stefano-m. |
Thank you @philiptaron Sorry for the late reply. Life happened 😅 |
Resolves #407834
The source tar is no more available at
https://fukuchi.org/works/qrencode/qrencode-4.1.1.tar.gz
E.g.
However, we can download it from the official repository on GitHub as mentioned
in the project's home page[1].
To make the package build, we use
autoreconfHookto mimick the repo'sautogen.shbecause the GitHub repo does not contain the configure script asmentioned in the project's README[2]:
Additionally, nix fails with an infinite recursion error When running the tests with
SDL2 in
nativeCheckInputs.Removing the dependency fixes the error and the tests still run successfully.
NOTE: I don't know to run the tests as defined in thepassthru.testsattribute. Instead, it modified the package temporarily by settingdoCheck = trueandconfigureFlags = [ "--with-tests" ]directly in the derivation and observed that the build passed with the tests running successfuly after removing the SDL2 dependency.Running
on my local checkout works
[1] https://web.archive.org/web/20250413215821/https://fukuchi.org/en/works/qrencode/
[2] https://github.com/fukuchi/libqrencode/blob/50b3e5725cafccfde038c0833cdaa5b1c28491e2/README.md#compile--install
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.