From patchwork Sat Oct 3 14:24:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 525920 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 5AB4D1402F0 for ; Sun, 4 Oct 2015 00:24:41 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=Nhwl7auu; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 901168BB92; Sat, 3 Oct 2015 14:24:40 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VQ-cqTveujPS; Sat, 3 Oct 2015 14:24:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3D7CA8B9B7; Sat, 3 Oct 2015 14:24:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id BECA61C08FE for ; Sat, 3 Oct 2015 14:24:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BA3208BA9B for ; Sat, 3 Oct 2015 14:24:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k1rWEXoe8aUU for ; Sat, 3 Oct 2015 14:24:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id A9FE28B99C for ; Sat, 3 Oct 2015 14:24:36 +0000 (UTC) Received: by wicfx3 with SMTP id fx3so66681234wic.1 for ; Sat, 03 Oct 2015 07:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=JpkFdeuC8twV8ovMkq7Y4f4elhGo3h2EOhZuu3YUaE0=; b=Nhwl7auulZ4LhZkjsrJH3yIMzvV/zRy7UHqoOjGdAMPqeLRzP2dfJLQvntYlVJppjK oREii2dTwOldk0nzP7gH/XI+CHifSIxqOiWOLaYhlksMa4KewUkbyobvOV2Aycm9skrP e7EMfSdcOJB70VtK1I/l9GrJImoLr6Ft7qjF732oC8yJVaP39kB9gv+dkak5Eb4dFMd3 jIlVx/xdbVbIXc9i1lcZQoUYVNBz4Pr95fGadqK3IMz0qXuv36//0v6TMeMuE5WhNjnB a1FigBIJ03YU2UFOKu23yTlVFhDK4y2RSdPtUuwJgXcxtQ8w+M9h70PxXnbXqVNIG4hJ FAIg== X-Received: by 10.194.8.227 with SMTP id u3mr21347148wja.38.1443882275392; Sat, 03 Oct 2015 07:24:35 -0700 (PDT) Received: from localhost.localdomain (LPoitiers-656-1-204-92.w80-11.abo.wanadoo.fr. [80.11.219.92]) by smtp.gmail.com with ESMTPSA id i10sm16700772wjz.41.2015.10.03.07.24.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 07:24:34 -0700 (PDT) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 3 Oct 2015 16:24:28 +0200 Message-Id: <1443882268-9737-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 2.5.3 Subject: [Buildroot] [PATCH] libnfs: Without native RPC use libtirpc X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by Maxime Hadjinlian --- RFC: A few packages uses libtirpc if there's no native RPC support *BUT* they don't propagate the BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2. It was probably added later on in libtirpc, so the questions here, is what do we do with that ? Should we add the dependencies to the other packages ? Do we need some kind of mechanisms to handle that ? --- package/libnfs/.Config.in.swp | Bin 0 -> 12288 bytes package/libnfs/Config.in | 8 +++++--- package/libnfs/libnfs.mk | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 package/libnfs/.Config.in.swp diff --git a/package/libnfs/.Config.in.swp b/package/libnfs/.Config.in.swp new file mode 100644 index 0000000000000000000000000000000000000000..c737cd335751e1a7082f17205d29e1b6f8eb3318 GIT binary patch literal 12288 zcmeI&y>8P`6bJBAHX}-_GP2yHQbm!7(|`o(f}AuZR)bsROC69b+qsFa@R#fx!BD|V z@DjWO6O23n6DxwJfa4~WAke@F=zpcZY|F>?xxX#S@#`b|vAAEmN4z$P>K`{oed7(i zzfBZ-&s8kT8>?3!b5;C7-HZ7P&4VzEE-rC^00bZa0SG_<0uX=z1Rwwb2teQ;6!6AGU)PC_ zu5!g(w`29)LFb2(-U)h|V|QCHfmV4I(D%BldMJ6Hkm0k{1z?p$%NhFRO*w~s`UVbg$W#CT literal 0 HcmV?d00001 diff --git a/package/libnfs/Config.in b/package/libnfs/Config.in index 6642fe4..0081548 100644 --- a/package/libnfs/Config.in +++ b/package/libnfs/Config.in @@ -1,10 +1,12 @@ config BR2_PACKAGE_LIBNFS bool "libnfs" - depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC + depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || \ + (BR2_TOOLCHAIN_HAS_THREADS && !BR2_TOOLCHAIN_EXTERNAL_BLACKFIN_UCLINUX_2012R2)# libtirpc + 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 +comment "libnfs needs a toolchain w/ threads" + depends on !(BR2_TOOLCHAIN_HAS_THREADS || 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))