Repository navigation
wol: fix build with GCC 14 - #368069
wol: fix build with GCC 14#368069
Conversation
paparodeo
left a comment
There was a problem hiding this comment.
looks like getline.m4 needs to include stdlib too
|
@paparodeo Ty. Applied. (I do wonder if what is more sensible, replacing return by exit (since it's the exit that errors), or including stdlib.h (because not doing that also gives a warning for malloc). But that's really a question for someone maintaining wol, for distros either is good enough.) |
for others I usually replace exit with return but adding stdlib.h is fine too. I don't think it matters. |
|
we could also use fetchpatch here to avoid including the complete patch file to nixpkgs |
|
@makefu I hadn't originally considered that out of laziness, but I just tried and the Alpine patch is insufficient because it doesn't take care of the problem where configure finds What I tried and the resulting logdiff --git a/pkgs/by-name/wo/wol/package.nix b/pkgs/by-name/wo/wol/package.nix
index ffc0ff554326..a3d2e59526bc 100644
--- a/pkgs/by-name/wo/wol/package.nix
+++ b/pkgs/by-name/wo/wol/package.nix
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
+ fetchpatch,
autoreconfHook,
perl,
}:
@@ -15,7 +16,13 @@ stdenv.mkDerivation rec {
sha256 = "08i6l5lr14mh4n3qbmx6kyx7vjqvzdnh3j9yfvgjppqik2dnq270";
};
- patches = [ ./gcc-14.patch ];
+ patches = [
+ (fetchpatch {
+ url = "https://gitlab.alpinelinux.org/alpine/aports/-/raw/master/testing/wol/0002-gcc14-configure-c99.patch?inline=false";
+ hash = "sha256-EVmqIwyLEmmR+0SSwwX2B3CuGRwbmpm1gdGnQkyv12s=";
+ excludes = [ "configure" ];
+ })
+ ];
nativeBuildInputs = [
perl # for pod2man in order to get a manpage(See that vexing |
|
@jascase901 i am fine with including the patch if the alpine upstream patch does not work out of the box, thanks for trying 👍 |
GCC 14 (#356812) breaks this package due to various badly written autotools scripts:
checking for working malloc... no(I wouldn't know how to upstream the patch to sf and the last commit is from 2004.)
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/)nixpkgs-reviewresultGenerated using
nixpkgs-review.Command:
nixpkgs-reviewx86_64-linux✅ 1 package built:
Add a 👍 reaction to pull requests you find important.