iwd: get rid of readline segfault (#429221)

This commit is contained in:
Franz Pletz 2025-07-30 18:46:28 +02:00 committed by GitHub
commit cf8071bfe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchgit,
fetchpatch,
autoreconfHook,
pkg-config,
ell,
@ -13,6 +14,24 @@
gitUpdater,
}:
let
# fix segfault in iwctl with readline-8.3
# https://lists.gnu.org/archive/html/bug-readline/2025-07/msg00007.htmlP
readline-patch = fetchpatch {
url = "https://lists.gnu.org/archive/html/bug-readline/2025-07/txtmA7rksnmmi.txt";
hash = "sha256-QSS1GUJ2i/bF2ksvUtw27oqFHuTHALi+7QwxMFt9ZaM=";
stripLen = 2;
};
myreadline = (
readline.overrideAttrs (
_final: prev: {
patches = (prev.patches or [ ]) ++ [ readline-patch ];
}
)
);
in
stdenv.mkDerivation (finalAttrs: {
pname = "iwd";
version = "3.9";
@ -47,7 +66,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
ell
python3Packages.python
readline
myreadline
];
nativeCheckInputs = [ openssl ];