Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] libnfs: Without native RPC use libtirpc
@ 2015-04-26 12:54 Maxime Hadjinlian
  2015-04-26 12:54 ` [Buildroot] [PATCH 2/2] kodi: " Maxime Hadjinlian
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Maxime Hadjinlian @ 2015-04-26 12:54 UTC (permalink / raw)
  To: buildroot

As it's done with nfs-utils, use libtirpc when no native rpc support
exists in the toolchain.

Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
 package/libnfs/Config.in | 5 +----
 package/libnfs/libnfs.mk | 4 ++++
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/package/libnfs/Config.in b/package/libnfs/Config.in
index 6642fe4..e9b939f 100644
--- a/package/libnfs/Config.in
+++ b/package/libnfs/Config.in
@@ -1,10 +1,7 @@
 config BR2_PACKAGE_LIBNFS
 	bool "libnfs"
-	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	help
 	  nfs userspace implementation.
 
 	  http://github.com/sahlberg/libnfs
-
-comment "libnfs needs a toolchain w/ RPC"
-	depends on !BR2_TOOLCHAIN_HAS_NATIVE_RPC
diff --git a/package/libnfs/libnfs.mk b/package/libnfs/libnfs.mk
index 0c8c4f5..fb95e21 100644
--- a/package/libnfs/libnfs.mk
+++ b/package/libnfs/libnfs.mk
@@ -13,4 +13,8 @@ LIBNFS_LICENSE = LGPLv2.1+
 LIBNFS_LICENSE_FILES = LICENCE-LGPL-2.1.txt
 LIBNFS_DEPENDENCIES = host-pkgconf
 
+ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
+LIBNFS_DEPENDENCIES += libtirpc
+endif
+
 $(eval $(autotools-package))
-- 
2.1.4

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

end of thread, other threads:[~2015-08-06  7:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-26 12:54 [Buildroot] [PATCH 1/2] libnfs: Without native RPC use libtirpc Maxime Hadjinlian
2015-04-26 12:54 ` [Buildroot] [PATCH 2/2] kodi: " Maxime Hadjinlian
2015-04-26 12:59 ` [Buildroot] [PATCH 1/2] libnfs: " Baruch Siach
2015-04-26 16:13   ` Maxime Hadjinlian
2015-04-26 17:08     ` Thomas Petazzoni
2015-08-06  7:16 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox