From 746dd2ad2ba4acda80f4572a5082c4f8d4b2f9c6 Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Sat, 3 Jan 2026 14:25:48 +0100 Subject: [PATCH] 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 Signed-off-by: Giulio Benetti Reviewed-by: Petr Vorel [Bernd: move gss comment into if-block] Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- 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))