Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libtirpc: add option for RPC Database support
@ 2025-12-26 17:46 Dario Binacchi
  2025-12-26 17:59 ` Giulio Benetti
  2026-02-03 14:27 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Dario Binacchi @ 2025-12-26 17:46 UTC (permalink / raw)
  To: buildroot
  Cc: Giulio Benetti, Petr Vorel, Thomas Petazzoni, linux-amarula,
	Dario Binacchi

Commit 7cea8ad66aec ("Add conditional version script support") broke
backward compatibility for the RPC database interfaces, and indeed the
build of xinetd fails with the following errors:

buildroot/output/per-package/xinetd/host/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/14.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: confparse.o: in function `cnf_get':
buildroot/build/xinetd-2.3.15/xinetd/buildroot/build/xinetd-2.3.15/xinetd/confparse.c:990:(.text+0x34c): undefined reference to `endrpcent'
buildroot/output/per-package/xinetd/host/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/14.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: confparse.o: in function `check_entry':
buildroot/build/xinetd-2.3.15/xinetd/buildroot/build/xinetd-2.3.15/xinetd/confparse.c:752:(.text+0xeed): undefined reference to `getrpcbyname'
collect2: error: ld returned 1 exit status

Fixes: 3f3d6e43de9b ("package/libtirpc: bump to version 1.3.7")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 package/libtirpc/Config.in   | 6 ++++++
 package/libtirpc/libtirpc.mk | 8 ++++++++
 2 files changed, 14 insertions(+)

diff --git a/package/libtirpc/Config.in b/package/libtirpc/Config.in
index 31f1636ef5fd..e7ab2d9c1136 100644
--- a/package/libtirpc/Config.in
+++ b/package/libtirpc/Config.in
@@ -16,6 +16,12 @@ config BR2_PACKAGE_LIBTIRPC_GSS
 	help
 	  Enable GSSAPI support
 
+config BR2_PACKAGE_LIBTIRPC_RPCDB
+	bool "rpcdb"
+	default y
+	help
+	  Enable RPC Database support
+
 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 ab159545614a..a764526aaf1f 100644
--- a/package/libtirpc/libtirpc.mk
+++ b/package/libtirpc/libtirpc.mk
@@ -25,5 +25,13 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi
 endif
 HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
 
+ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
+LIBTIRPC_CONF_OPTS += --enable-rpcdb
+HOST_LIBTIRPC_CONF_OPTS += --enable-rpcdb
+else
+LIBTIRPC_CONF_OPTS += --disable-rpcdb
+HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-02-03 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-26 17:46 [Buildroot] [PATCH 1/1] package/libtirpc: add option for RPC Database support Dario Binacchi
2025-12-26 17:59 ` Giulio Benetti
2026-02-03 14:27 ` 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