-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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: pkgsStatic.dnsperf
#370498
Comments
Looks like a warning turned error upon gcc bump. See https://discourse.nixos.org/t/error-builder-for-jack1-0-125-0-drv-failed-with-exit-code-2/58186 |
is it better to a) allow the error with env.NIX_CFLAGS_COMPILE or, b) patch the source to fix the return type? |
The source does use the correct return type in another ifdef, so the proper fix would be to activate that. |
i'm not sure if i'm doing something wrong, but this doesn't happen when building regular
the bit that gets flagged about the return type,
but even though the check is made with anyways, alpine has a patch that takes away the conditional, so would it make sense to apply that if (of course, EDIT: i think |
I suppose you can do a conditional patch. Usually we try to avoid these. Better would be to undefine _GNU_SOURCE if isMusl, I think. |
from what i can tell1 (not sure if this is the best way of sussing things out), Footnotes
|
@Azathothas if you need an overlay to get this working: # configuration.nix
nixpkgs.overlays = [
# dnsperf doesn't have support for musl
# remove when https://nixpk.gs/pr-tracker.html?pr=370881 is merged
(final: prev: {
dnsperf = prev.dnsperf.overrideAttrs {
patches = lib.optional prev.stdenv.hostPlatform.isMusl [
(prev.fetchpatch {
url = "https://gitlab.alpinelinux.org/alpine/aports/-/raw/5bd92b8f86a0bf15dddf8fa180adf14344d6cc15/testing/dnsperf/musl-perf_strerror_r.patch";
hash = "sha256-yTJHXkti/xSklmVfAV45lEsOiHy7oL1phImNTNtcPkM=";
})
];
};
})
]; |
Steps To Reproduce
Steps to reproduce the behavior:
pkgsStatic.dnsperf
Build log
Build Log
Metadata
Notify maintainers
@jtojnar
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: