From a94453374a1d925bd6bcc1e26da1bcb4b71bce2d Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 14 Feb 2026 06:44:36 +0000 Subject: [PATCH] ax25-apps: fix `glibc-2.42` build failure Without the change the build fails in `master` as https://hydra.nixos.org/build/319882690: ``` io.c:22:10: fatal error: termio.h: No such file or directory 22 | #include | ^~~~~~~~~~ ``` --- pkgs/by-name/ax/ax25-apps/glibc-2.42.patch | 26 ++++++++++++++++++++++ pkgs/by-name/ax/ax25-apps/package.nix | 5 +++++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/by-name/ax/ax25-apps/glibc-2.42.patch diff --git a/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch b/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch new file mode 100644 index 000000000000..1a0c7700549e --- /dev/null +++ b/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch @@ -0,0 +1,26 @@ +--- a/ax25ipd/io.c ++++ b/ax25ipd/io.c +@@ -19,20 +19,21 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include + #include + #include + #include ++#include + #include + #include + #include + + #include "ax25ipd.h" + +-static struct termio nterm; ++static struct termios nterm; + + int ttyfd = -1; + static int udpsock = -1; diff --git a/pkgs/by-name/ax/ax25-apps/package.nix b/pkgs/by-name/ax/ax25-apps/package.nix index dc71602f686f..f92d65f2051e 100644 --- a/pkgs/by-name/ax/ax25-apps/package.nix +++ b/pkgs/by-name/ax/ax25-apps/package.nix @@ -29,6 +29,11 @@ stdenv.mkDerivation { hash = "sha256-RLeFndis2OhIkJPLD+YfEUrJdZL33huVzlHq+kGq7dA="; }; + patches = [ + # Fix build against glibc-2.42 + ./glibc-2.42.patch + ]; + configureFlags = [ "--sysconfdir=/etc" "--localstatedir=/var/lib"