Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions srcpkgs/nfs-utils/patches/musl-includes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,22 @@ missing include for basename(3)
#include <limits.h>

#include <netlink/genl/family.h>

strerror() is declared in <string.h>. Without this header, the
function is implicitly declared as returning int instead of char *.

This causes a type mismatch when passing its return value to "%s"
format specifiers, leading to build failures on musl.

Add the missing include to provide the correct prototype.

--- a/support/nfs/fh_key_file.c 2026-04-04 11:27:07.000000000 +0200
+++ b/support/nfs/fh_key_file.c 2026-04-08 14:41:46.500051425 +0200
@@ -26,6 +26,7 @@
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
+#include <string.h>
#include <uuid/uuid.h>

#include "nfslib.h"
4 changes: 2 additions & 2 deletions srcpkgs/nfs-utils/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'nfs-utils'
pkgname=nfs-utils
version=2.8.7
version=2.9.1
revision=1
build_style=gnu-configure
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
Expand All @@ -14,7 +14,7 @@ license="GPL-2.0-or-later"
homepage="https://www.linux-nfs.org/"
changelog="https://www.kernel.org/pub/linux/utils/nfs-utils/${version}/${version}-Changelog"
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=59d0f1e17b18efaa60ea3ccf89a9cad3217f8d3b23c18d2fe34b25c8969d60ae
checksum=302846343bf509f8f884c23bdbd0fe853b7f7cbb6572060a9082279d13b21a2c
replaces="rpcgen>=0"

hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto mit-krb5-devel"
Expand Down