Skip to contentSkip to conversation

package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB

PATCH In review Giulio Benetti 2 participants 7 messages Dec 13, 2025 – Dec 14, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB

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

---
V1->V2:
* added patch to series
V2->V3:
* renamed BR2_PACKAGE_LIBTIRPC_RPCDB and added section BR2_PACKAGE_LIBTIRPC as suggested by Thomas Petazzoni.
* improved commit log with commit as suggested by Petr Vorel and Thomas Petazzoni

---
 package/libtirpc/Config.in   | 10 +++++++++-
 package/libtirpc/libtirpc.mk |  7 +++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
package/libtirpc/Config.in +9 -1
index 31f1636ef5..61fb23af5e 100644
@@ -7,15 +7,23 @@ 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
 
+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
 
package/libtirpc/libtirpc.mk +7 -0
index ab15954561..eadacedfcf 100644
@@ -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))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v3 2/3 package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

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/

---
V1->V2:
* no changes
V2->V3:
* improved commit log with libtirpc commit as suggested by Petr Vorel and Thomas Petazzoni

---
 package/nfs-utils/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/nfs-utils/Config.in +1 -0
index 02cc7e78cc..419b605667 100644
@@ -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
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v3 2/3
#2 lore raw

Re: [Buildroot] [PATCH v3 2/3] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Hi Giulio,

Quoted 3 lines

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.

Kind regards,
Petr
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

PATCH v3 3/3 package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Giulio Benetti

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/

---
V1->V2:
* no changes
V2->V3:
* improved commit log with libtirpc commit as suggested by Petr Vorel and Thomas Petazzoni

---
 package/rpcbind/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/rpcbind/Config.in +1 -0
index 9cde7bba39..ec8f8ee1b5 100644
@@ -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
 	help
 	  The rpcbind utility is a server that converts RPC program
 	  numbers into universal addresses.
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v3 3/3
#4 lore raw

Re: [Buildroot] [PATCH v3 3/3] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Hi Giulio,

Quoted 3 lines

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.

Kind regards,
Petr
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw
In reply to Giulio Benetti

Hi,

Quoted 3 lines

Il giorno 13 dic 2025, alle ore 22:41, Giulio Benetti <[email protected]> ha scritto:

Package libtirpc with commit[1] exposes --enable-rpcdb

and disables it by default differently from before that commit.

Quoted 9 lines

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

---

Would it be possible to reword by a maintainer with the change above?

Best regards
Giulio

Quoted 56 lines

V1->V2:
* added patch to series
V2->V3:
* renamed BR2_PACKAGE_LIBTIRPC_RPCDB and added section BR2_PACKAGE_LIBTIRPC as suggested by Thomas Petazzoni.
* improved commit log with commit as suggested by Petr Vorel and Thomas Petazzoni
---
package/libtirpc/Config.in | 10 +++++++++-
package/libtirpc/libtirpc.mk | 7 +++++++

2 files changed, 16 insertions(+), 1 deletion(-)
package/libtirpc/Config.in +2 -0
index 31f1636ef5..61fb23af5e 100644
@@ -7,15 +7,23 @@ 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

package/libtirpc/Config.in +7 -1
-    depends on BR2_PACKAGE_LIBTIRPC
   select BR2_PACKAGE_LIBKRB5
   help
     Enable GSSAPI support
 
+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

package/libtirpc/libtirpc.mk +0 -0
index ab15954561..eadacedfcf 100644
@@ -25,5 +25,12 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi

endif
HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi

package/libtirpc/libtirpc.mk +7 -0
+ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
+LIBTIRPC_CONF_OPTS += --enable-rpcdb
+else
+LIBTIRPC_CONF_OPTS += --disable-rpcdb
+endif
+HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
+
Quoted 5 lines

$(eval $(autotools-package))
$(eval $(host-autotools-package))
--
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Reviewed-by
#6 lore raw

Hi all,

Quoted 5 lines

Hi,

Quoted 3 lines

Il giorno 13 dic 2025, alle ore 22:41, Giulio Benetti <[email protected]> ha scritto:

Package libtirpc with commit[1] exposes --enable-rpcdb

very nit: looks like your editor uses BOM. Not a big deal, but if you have time It'd be nice to configure it not to add it when you modify patches.

Quoted 1 line

and disables it by default differently from before that commit.

+1

Quoted 11 lines
Quoted 9 lines

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

---

Would it be possible to reword by a maintainer with the change above?

Kind regards,
Petr

Quoted 2 lines

Best regards
Giulio

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot