Repository navigation
gittyup: Fix build with GCC 14 - #372123
Conversation
gittyup: Disable tests to fix build with GCC 14|
I would prefer setting NIX_CFLAGS_COMPILE to |
|
Build looks mostly good https://paste.fliegendewurst.eu/d4-v4d.log#L2789 I enabled strictDeps by default. Would be good to move cmark to nativeBuildInputs so it doesn't break in that configuration. |
10e68f3 to
62960f5
Compare
I have considered doing this, but instead have decided to simply patch the affected file. That's cleaner than silencing the error. I guess this is also easier to maintain; the patch will likely no longer apply when the next upstream release makes it into |
`cmark` is needed to generate documentation at build time.
GCC 14 turns transposed arguments to `calloc()` into an error. The affected file has been fixed upstream; patch it here to make things work until the next release of `gittyup`.
62960f5 to
e029851
Compare
|
Thanks for the review, I included your suggestions. I'd like to ping a maintainer to merge the package, but I see that it's currently unmaintained. I'm just a casual user of |
|
You can add me as maintainer, yes. It doesn't look too troublesome to take care of the package. You could also add yourself, if you would like to help out with issues and testing updates :) |
Done! In general I try to maintain less CMake-based projects, but life doesn't always go that way :D I'm happy to help out. |
The test suite of gittyup depends on a vendored version of a ZIP library (https://github.com/kuba--/zip), and the build breaks when compiled with GCC 14. This is fixed in an unreleased commit (Murmele/Gittyup@d36eba1) upstream.
Fix the build by disabling the test suite. In a future release, the test suite should be re-enabled.Patch the affected file and leave a note to remove the patch in a future release.
This fixes #371778, and (imo) supersedes #371808. @FliegendeWurst can you try and see if this the build failure you mention in #371808 (comment)?
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.