* [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB
@ 2026-01-03 13:25 Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
` (4 more replies)
0 siblings, 5 replies; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
Hi,
this series fixes build errors introduced by the bump of libtirpc to
version 1.3.7 with buildroot commit
3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
These build errors, caused by the forementioned upstream commit, only
occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl"
As shown by our autobuilders also uclibc is affected:
https://autobuild.buildroot.net/?reason=nfs-utils-2.8.4
https://autobuild.buildroot.net/?reason=quota-4.10
https://autobuild.buildroot.net/?reason=rpcbind-1.2.8
And indeed, building this glibc-based defconfig does not show any
libtirpc-related build errors:
BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_NFS_UTILS=y
# BR2_PACKAGE_NFS_UTILS_RPC_NFSD is not set
BR2_PACKAGE_RPCBIND=y
BR2_PACKAGE_SNORT3=y
BR2_PACKAGE_QUOTA=y
# BR2_TARGET_ROOTFS_TAR is not set
so we enable rpcdb support only for non-glibc toolchains following Yocto:
https://patchwork.yoctoproject.org/project/oe-core/patch/20250812221917.3926403-1-raj.khem@gmail.com/
"Add packageconfig for rpcdb
Enable it by default on musl, these functions are needed by
packages e.g. quota, nfs-utils, snort3 on musl"
This patch series is based on v3 from Giulio:
https://patchwork.ozlabs.org/project/buildroot/list/?series=485299
with the following additions/changes:
- added quota and snort3 to the list of packages needing rpcdb support
- enable BR2_PACKAGE_LIBTIRPC_RPCDB only when needed, see individual
patch comments for details
- libtirpc: move gss comment into if-block
Building this musl-based defconfig does not show any libtirpc-related
build errors anymore with this patch series:
BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_NFS_UTILS=y
# BR2_PACKAGE_NFS_UTILS_RPC_NFSD is not set
BR2_PACKAGE_RPCBIND=y
BR2_PACKAGE_SNORT3=y
BR2_PACKAGE_QUOTA=y
# BR2_TARGET_ROOTFS_TAR is not set
The snort3 patch included in this series only fixes the libtirpc-related
configure error.
Regards, Bernd
Bernd Kuhls (2):
package/quota: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/snort3: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
Giulio Benetti (3):
package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB
package/nfs-utils: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/rpcbind: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/libtirpc/Config.in | 17 ++++++++++++-----
package/libtirpc/libtirpc.mk | 7 +++++++
package/nfs-utils/Config.in | 1 +
package/quota/Config.in | 1 +
package/rpcbind/Config.in | 1 +
package/snort3/Config.in | 1 +
6 files changed, 23 insertions(+), 5 deletions(-)
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 1/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
@ 2026-01-03 13:25 ` Bernd Kuhls
2026-01-06 22:21 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
` (3 subsequent siblings)
4 siblings, 2 replies; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Package libtirpc with commit[1] exposes --enable-rpcdb so make it
selectable to allow packages that use rpcdb functions to enable it
and build correctly.
[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
[Bernd: move gss comment into if-block]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/libtirpc/Config.in | 17 ++++++++++++-----
package/libtirpc/libtirpc.mk | 7 +++++++
2 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
index 31f1636ef5..371f7c46c1 100644
--- a/package/libtirpc/Config.in
+++ b/package/libtirpc/Config.in
@@ -7,19 +7,26 @@ config BR2_PACKAGE_LIBTIRPC
http://sourceforge.net/projects/libtirpc/
+if BR2_PACKAGE_LIBTIRPC
+
config BR2_PACKAGE_LIBTIRPC_GSS
bool "gss"
depends on BR2_USE_MMU # libkrb5
depends on !BR2_STATIC_LIBS # libkrb5
- depends on BR2_PACKAGE_LIBTIRPC
select BR2_PACKAGE_LIBKRB5
help
Enable GSSAPI support
-comment "libtirpc needs a toolchain w/ threads"
- depends on !BR2_TOOLCHAIN_HAS_THREADS
-
comment "libtirpc gss support needs a toolchain w/ dynamic library"
depends on BR2_USE_MMU
depends on BR2_STATIC_LIBS
- depends on BR2_PACKAGE_LIBTIRPC
+
+config BR2_PACKAGE_LIBTIRPC_RPCDB
+ bool "rpcdb"
+ help
+ Enable RPCDB support
+
+endif
+
+comment "libtirpc needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libtirpc/libtirpc.mk b/package/libtirpc/libtirpc.mk
index ab15954561..eadacedfcf 100644
--- a/package/libtirpc/libtirpc.mk
+++ b/package/libtirpc/libtirpc.mk
@@ -25,5 +25,12 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi
endif
HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
+ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
+LIBTIRPC_CONF_OPTS += --enable-rpcdb
+else
+LIBTIRPC_CONF_OPTS += --disable-rpcdb
+endif
+HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
@ 2026-01-03 13:25 ` Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 3/5] package/rpcbind: " Bernd Kuhls
` (2 subsequent siblings)
4 siblings, 2 replies; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Package nfs-utils requires libtirpc rpcdb option enabled. Package
libtirpc with commit [1] disabled rpcdb functions by default so let's
select it by default to enable rpcdb functions required.
[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
Fixes:
https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/nfs-utils/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in
index 02cc7e78cc..89b8b5da42 100644
--- a/package/nfs-utils/Config.in
+++ b/package/nfs-utils/Config.in
@@ -9,6 +9,7 @@ config BR2_PACKAGE_NFS_UTILS
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
select BR2_PACKAGE_LIBEVENT
select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
+ select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
select BR2_PACKAGE_SQLITE
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 3/5] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
@ 2026-01-03 13:25 ` Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 4/5] package/quota: " Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 5/5] package/snort3: " Bernd Kuhls
4 siblings, 2 replies; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
Package rpcbind requires libtirpc rpcdb option enabled. Package
libtirpc with commit [1] disabled rpcdb functions by default so let's
select it by default to enable rpcdb functions required.
[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
Fixes:
https://autobuild.buildroot.org/results/f461212605d9d5f1c38a1ffe00a83912522bf482/
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/rpcbind/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/rpcbind/Config.in b/package/rpcbind/Config.in
index 9cde7bba39..0b2c207580 100644
--- a/package/rpcbind/Config.in
+++ b/package/rpcbind/Config.in
@@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBTIRPC
+ select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
help
The rpcbind utility is a server that converts RPC program
numbers into universal addresses.
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 4/5] package/quota: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
` (2 preceding siblings ...)
2026-01-03 13:25 ` [Buildroot] [PATCH v4 3/5] package/rpcbind: " Bernd Kuhls
@ 2026-01-03 13:25 ` Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 5/5] package/snort3: " Bernd Kuhls
4 siblings, 1 reply; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
Package quota requires libtirpc rpcdb option enabled with non-glibc
toolchains since the bump of libtirpc to version 1.3.7 with buildroot
commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream
commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
These build errors, caused by the forementioned upstream commit, only
occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl"
as shown by our autobuilders:
https://autobuild.buildroot.net/?reason=quota-4.10
Fixes:
https://autobuild.buildroot.net/results/fb0/fb0adbb7687d8db4228e2fc1ce7a7272486fd3ef/
"svc_socket.c:(.text+0x2c): undefined reference to `getrpcbynumber'"
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/quota/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/quota/Config.in b/package/quota/Config.in
index 051a765570..0b7b5b8946 100644
--- a/package/quota/Config.in
+++ b/package/quota/Config.in
@@ -4,6 +4,7 @@ config BR2_PACKAGE_QUOTA
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ select BR2_PACKAGE_LIBTIRPC_RPCDB if BR2_PACKAGE_LIBTIRPC
help
Implementation of the disk quota system.
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 5/5] package/snort3: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
` (3 preceding siblings ...)
2026-01-03 13:25 ` [Buildroot] [PATCH v4 4/5] package/quota: " Bernd Kuhls
@ 2026-01-03 13:25 ` Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
4 siblings, 1 reply; 14+ messages in thread
From: Bernd Kuhls @ 2026-01-03 13:25 UTC (permalink / raw)
To: buildroot
Cc: Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen, Petr Vorel,
Thomas Petazzoni
Package snort3 requires libtirpc rpcdb option enabled with non-glibc
toolchains since the bump of libtirpc to version 1.3.7 with buildroot
commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream
commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
These build errors, caused by the forementioned upstream commit, only
occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl".
The build error during configure stage:
-- Looking for getrpcent - not found
CMake Error at cmake/sanity_checks.cmake:51 (message):
Couldn't find an RPC program number database implementation!
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
was not yet found by the autobuilders but can be reproduced by this
defconfig:
BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_SNORT3=y
# BR2_TARGET_ROOTFS_TAR is not set
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/snort3/Config.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/snort3/Config.in b/package/snort3/Config.in
index 9b96e7cb58..7171603aa3 100644
--- a/package/snort3/Config.in
+++ b/package/snort3/Config.in
@@ -17,6 +17,7 @@ config BR2_PACKAGE_SNORT3
select BR2_PACKAGE_LUAJIT
select BR2_PACKAGE_PCRE
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ select BR2_PACKAGE_LIBTIRPC_RPCDB if BR2_PACKAGE_LIBTIRPC
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_ZLIB
help
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 1/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
@ 2026-01-06 22:21 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 22:21 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen,
Petr Vorel
On Sat, 3 Jan 2026 14:25:48 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> From: Giulio Benetti <giulio.benetti@benettiengineering.com>
>
> Package libtirpc with commit[1] exposes --enable-rpcdb so make it
> selectable to allow packages that use rpcdb functions to enable it
> and build correctly.
>
> [1]:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> [Bernd: move gss comment into if-block]
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/libtirpc/Config.in | 17 ++++++++++++-----
> package/libtirpc/libtirpc.mk | 7 +++++++
> 2 files changed, 19 insertions(+), 5 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
@ 2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 22:22 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen,
Petr Vorel
On Sat, 3 Jan 2026 14:25:49 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> From: Giulio Benetti <giulio.benetti@benettiengineering.com>
>
> Package nfs-utils requires libtirpc rpcdb option enabled. Package
> libtirpc with commit [1] disabled rpcdb functions by default so let's
> select it by default to enable rpcdb functions required.
>
> [1]:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> Fixes:
> https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> [Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
This change was not correct. Building nfs-utils with musl, using a
libtirpc that doesn't have rpcdb enabled, failed miserably.
> select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
> + select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
So I changed to:
select BR2_PACKAGE_LIBTIRPC_RPCDB
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 3/5] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 3/5] package/rpcbind: " Bernd Kuhls
@ 2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 22:22 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen,
Petr Vorel
On Sat, 3 Jan 2026 14:25:50 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> diff --git a/package/rpcbind/Config.in b/package/rpcbind/Config.in
> index 9cde7bba39..0b2c207580 100644
> --- a/package/rpcbind/Config.in
> +++ b/package/rpcbind/Config.in
> @@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
> depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
> depends on BR2_USE_MMU # fork()
> select BR2_PACKAGE_LIBTIRPC
> + select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
Same as nfs-utils, dropped " if !BR2_TOOLCHAIN_USES_GLIBC", and applied.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 5/5] package/snort3: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 5/5] package/snort3: " Bernd Kuhls
@ 2026-01-06 22:22 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 22:22 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen,
Petr Vorel
On Sat, 3 Jan 2026 14:25:52 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> Package snort3 requires libtirpc rpcdb option enabled with non-glibc
> toolchains since the bump of libtirpc to version 1.3.7 with buildroot
> commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream
> commit:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> These build errors, caused by the forementioned upstream commit, only
> occur with non-glibc toolchains:
> https://patchwork.yoctoproject.org/comment/30091/
> "but I believe it breaks the build with musl".
>
> The build error during configure stage:
>
> -- Looking for getrpcent - not found
> CMake Error at cmake/sanity_checks.cmake:51 (message):
> Couldn't find an RPC program number database implementation!
> Call Stack (most recent call first):
> CMakeLists.txt:31 (include)
>
> was not yet found by the autobuilders but can be reproduced by this
> defconfig:
>
> BR2_x86_64=y
> BR2_x86_corei7=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y
> BR2_PER_PACKAGE_DIRECTORIES=y
> BR2_INIT_NONE=y
> # BR2_PACKAGE_BUSYBOX is not set
> BR2_PACKAGE_SNORT3=y
> # BR2_TARGET_ROOTFS_TAR is not set
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/snort3/Config.in | 1 +
> 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 4/5] package/quota: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 4/5] package/quota: " Bernd Kuhls
@ 2026-01-06 22:22 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-01-06 22:22 UTC (permalink / raw)
To: Bernd Kuhls
Cc: buildroot, Fabrice Fontaine, Giulio Benetti, Jarkko Sakkinen,
Petr Vorel
On Sat, 3 Jan 2026 14:25:51 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:
> Package quota requires libtirpc rpcdb option enabled with non-glibc
> toolchains since the bump of libtirpc to version 1.3.7 with buildroot
> commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream
> commit:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> These build errors, caused by the forementioned upstream commit, only
> occur with non-glibc toolchains:
> https://patchwork.yoctoproject.org/comment/30091/
> "but I believe it breaks the build with musl"
> as shown by our autobuilders:
>
> https://autobuild.buildroot.net/?reason=quota-4.10
>
> Fixes:
> https://autobuild.buildroot.net/results/fb0/fb0adbb7687d8db4228e2fc1ce7a7272486fd3ef/
> "svc_socket.c:(.text+0x2c): undefined reference to `getrpcbynumber'"
>
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
> ---
> package/quota/Config.in | 1 +
> 1 file changed, 1 insertion(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 1/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
2026-01-06 22:21 ` Thomas Petazzoni via buildroot
@ 2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-19 10:09 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot
In reply of:
> Package libtirpc with commit[1] exposes --enable-rpcdb so make it
> selectable to allow packages that use rpcdb functions to enable it
> and build correctly.
>
> [1]:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> [Bernd: move gss comment into if-block]
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2025.02.x and 2025.11.x. Thanks
> ---
> package/libtirpc/Config.in | 17 ++++++++++++-----
> package/libtirpc/libtirpc.mk | 7 +++++++
> 2 files changed, 19 insertions(+), 5 deletions(-)
>
> diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
> index 31f1636ef5..371f7c46c1 100644
> --- a/package/libtirpc/Config.in
> +++ b/package/libtirpc/Config.in
> @@ -7,19 +7,26 @@ config BR2_PACKAGE_LIBTIRPC
>
> http://sourceforge.net/projects/libtirpc/
>
> +if BR2_PACKAGE_LIBTIRPC
> +
> config BR2_PACKAGE_LIBTIRPC_GSS
> bool "gss"
> depends on BR2_USE_MMU # libkrb5
> depends on !BR2_STATIC_LIBS # libkrb5
> - depends on BR2_PACKAGE_LIBTIRPC
> select BR2_PACKAGE_LIBKRB5
> help
> Enable GSSAPI support
>
> -comment "libtirpc needs a toolchain w/ threads"
> - depends on !BR2_TOOLCHAIN_HAS_THREADS
> -
> comment "libtirpc gss support needs a toolchain w/ dynamic library"
> depends on BR2_USE_MMU
> depends on BR2_STATIC_LIBS
> - depends on BR2_PACKAGE_LIBTIRPC
> +
> +config BR2_PACKAGE_LIBTIRPC_RPCDB
> + bool "rpcdb"
> + help
> + Enable RPCDB support
> +
> +endif
> +
> +comment "libtirpc needs a toolchain w/ threads"
> + depends on !BR2_TOOLCHAIN_HAS_THREADS
> diff --git a/package/libtirpc/libtirpc.mk b/package/libtirpc/libtirpc.mk
> index ab15954561..eadacedfcf 100644
> --- a/package/libtirpc/libtirpc.mk
> +++ b/package/libtirpc/libtirpc.mk
> @@ -25,5 +25,12 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi
> endif
> HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
>
> +ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
> +LIBTIRPC_CONF_OPTS += --enable-rpcdb
> +else
> +LIBTIRPC_CONF_OPTS += --disable-rpcdb
> +endif
> +HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
> +
> $(eval $(autotools-package))
> $(eval $(host-autotools-package))
> --
> 2.47.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
@ 2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-19 10:09 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot
In reply of:
> Package nfs-utils requires libtirpc rpcdb option enabled. Package
> libtirpc with commit [1] disabled rpcdb functions by default so let's
> select it by default to enable rpcdb functions required.
>
> [1]:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> Fixes:
> https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> [Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2025.02.x and 2025.11.x. Thanks
> ---
> package/nfs-utils/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/nfs-utils/Config.in b/package/nfs-utils/Config.in
> index 02cc7e78cc..89b8b5da42 100644
> --- a/package/nfs-utils/Config.in
> +++ b/package/nfs-utils/Config.in
> @@ -9,6 +9,7 @@ config BR2_PACKAGE_NFS_UTILS
> depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
> select BR2_PACKAGE_LIBEVENT
> select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
> + select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
> select BR2_PACKAGE_SQLITE
> select BR2_PACKAGE_UTIL_LINUX
> select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
> --
> 2.47.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [Buildroot] [PATCH v4 3/5] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB
2026-01-03 13:25 ` [Buildroot] [PATCH v4 3/5] package/rpcbind: " Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
@ 2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 14+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-01-19 10:09 UTC (permalink / raw)
To: Bernd Kuhls; +Cc: Arnout Vandecappelle, buildroot
In reply of:
> Package rpcbind requires libtirpc rpcdb option enabled. Package
> libtirpc with commit [1] disabled rpcdb functions by default so let's
> select it by default to enable rpcdb functions required.
>
> [1]:
> https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193
>
> Fixes:
> https://autobuild.buildroot.org/results/f461212605d9d5f1c38a1ffe00a83912522bf482/
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
> [Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
> Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Applied to 2025.02.x and 2025.11.x. Thanks
> ---
> package/rpcbind/Config.in | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/package/rpcbind/Config.in b/package/rpcbind/Config.in
> index 9cde7bba39..0b2c207580 100644
> --- a/package/rpcbind/Config.in
> +++ b/package/rpcbind/Config.in
> @@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
> depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
> depends on BR2_USE_MMU # fork()
> select BR2_PACKAGE_LIBTIRPC
> + select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
> help
> The rpcbind utility is a server that converts RPC program
> numbers into universal addresses.
> --
> 2.47.3
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2026-01-19 10:09 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-03 13:25 [Buildroot] [PATCH v4 0/5] package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
2026-01-03 13:25 ` [Buildroot] [PATCH v4 1/5] " Bernd Kuhls
2026-01-06 22:21 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 3/5] package/rpcbind: " Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-19 10:09 ` Arnout Vandecappelle via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 4/5] package/quota: " Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
2026-01-03 13:25 ` [Buildroot] [PATCH v4 5/5] package/snort3: " Bernd Kuhls
2026-01-06 22:22 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox