autofs: fix build w/glibc-2.34

This build was also broken by a libc const that isn't a number anymore
and thus can't be used at places where a constant value is needed:

automount.c:86:37: error: initializer element is not constant

Failing Hydra build: https://hydra.nixos.org/build/153253104

+12 -1
+12 -1
pkgs/os-specific/linux/autofs/default.nix
··· 1 1 { lib, stdenv, fetchurl, flex, bison, linuxHeaders, libtirpc, mount, umount, nfs-utils, e2fsprogs 2 - , libxml2, libkrb5, kmod, openldap, sssd, cyrus_sasl, openssl, rpcsvc-proto }: 2 + , libxml2, libkrb5, kmod, openldap, sssd, cyrus_sasl, openssl, rpcsvc-proto 3 + , fetchpatch 4 + }: 3 5 4 6 stdenv.mkDerivation rec { 5 7 version = "5.1.6"; ··· 9 11 url = "mirror://kernel/linux/daemons/autofs/v5/autofs-${version}.tar.xz"; 10 12 sha256 = "1vya21mb4izj3khcr3flibv7xc15vvx2v0rjfk5yd31qnzcy7pnx"; 11 13 }; 14 + 15 + patches = [ 16 + # glibc 2.34 compat 17 + (fetchpatch { 18 + url = "https://src.fedoraproject.org/rpms/autofs/raw/cc745af5e42396d540d5b3b92fae486e232bf6bd/f/autofs-5.1.7-use-default-stack-size-for-threads.patch"; 19 + sha256 = "sha256-6ETDFbW7EhHR03xFWF+6OJBgn9NX3WW3bGhTNGodaOc="; 20 + excludes = [ "CHANGELOG" ]; 21 + }) 22 + ]; 12 23 13 24 preConfigure = '' 14 25 configureFlags="--enable-force-shutdown --enable-ignore-busy --with-path=$PATH"