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 <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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Giulio Benetti
2026-01-03 14:25:48 +01:00
committed by Thomas Petazzoni
parent 7b5735cc69
commit 746dd2ad2b
2 changed files with 19 additions and 5 deletions

View File

@@ -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

View File

@@ -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))