Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4F2ADE00CE8; Thu, 25 Apr 2019 19:04:31 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, * medium trust * [192.103.53.11 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8B5D9E00C14 for ; Thu, 25 Apr 2019 19:04:29 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id x3Q23qDZ030260 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 25 Apr 2019 19:04:03 -0700 Received: from [128.224.162.179] (128.224.162.179) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Apr 2019 19:03:42 -0700 To: "Slater, Joseph" , Bruce Ashfield References: <20190417075133.84331-1-kai.kang@windriver.com> <007BD92917A2324FA403BCF9A464CF84F37827F3@ALA-MBD.corp.ad.wrs.com> From: Kang Kai Message-ID: <73c95992-adff-61ff-3472-4750e02f3717@windriver.com> Date: Fri, 26 Apr 2019 10:00:58 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <007BD92917A2324FA403BCF9A464CF84F37827F3@ALA-MBD.corp.ad.wrs.com> Cc: "meta-virtualization@yoctoproject.org" Subject: Re: [m-c-s][PATCH] glusterfs/librdmacm: fix dependency issue with libibverbs X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Apr 2019 02:04:31 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 2019/4/19 上午9:18, Slater, Joseph wrote: > Comments inline, preceded by [Joe Slater]. Sorry, but I'm using outlook... > > -----Original Message----- > From: Bruce Ashfield [mailto:bruce.ashfield@gmail.com] > Sent: Thursday, April 18, 2019 6:13 AM > To: Kang, Kai > Cc: meta-virtualization@yoctoproject.org; Slater, Joseph > Subject: Re: [meta-virtualization][m-c-s][PATCH] glusterfs/librdmacm: fix dependency issue with libibverbs > > On Wed, Apr 17, 2019 at 3:51 AM wrote: >> From: Kai Kang >> >> glusterfs and librdmacm depend on libibverbs. But libibverbs has been >> set imcompatible with mipsarch and arm. Update glusterfs and librdmacm >> accordingly. >> >> Signed-off-by: Kai Kang >> --- >> recipes-extended/glusterfs/glusterfs.inc | 3 +++ >> recipes-extended/librdmacm/librdmacm_1.1.0.bb | 3 +++ >> 2 files changed, 6 insertions(+) >> >> diff --git a/recipes-extended/glusterfs/glusterfs.inc b/recipes-extended/glusterfs/glusterfs.inc >> index 5843d7c6..3fc04ffb 100644 >> --- a/recipes-extended/glusterfs/glusterfs.inc >> +++ b/recipes-extended/glusterfs/glusterfs.inc >> @@ -51,6 +51,9 @@ EXTRA_OECONF = "ac_cv_file__etc_debian_version=no \ >> " >> >> PACKAGECONFIG ??= "georeplication libibverbs" >> +PACKAGECONFIG_remove_mipsarch = "libibverbs" >> +PACKAGECONFIG_remove_arm = "libibverbs" > [Joe Slater] > Because this removes libibverbs from all PACKAGECONG's, I think it would be better to set the lazy default via a local variable. Hi Joe, It seems just remove "libibverbs" for _arm and _mipsarch,  isn't it? > >> + >> PACKAGECONFIG[bd-xlator] = "--enable-bd-xlator,--disable-bd-xlator,lvm2," >> PACKAGECONFIG[debug] = "--enable-debug,--disable-debug,," >> PACKAGECONFIG[georeplication] = "--enable-georeplication,--disable-georeplication,,rsync" >> diff --git a/recipes-extended/librdmacm/librdmacm_1.1.0.bb b/recipes-extended/librdmacm/librdmacm_1.1.0.bb >> index 30a0c943..edf92f01 100644 >> --- a/recipes-extended/librdmacm/librdmacm_1.1.0.bb >> +++ b/recipes-extended/librdmacm/librdmacm_1.1.0.bb >> @@ -39,3 +39,6 @@ do_install_append() { >> rm -f ${D}${libdir}/librdmacm.la >> rm -f ${D}${libdir}/rsocket/librspreload.la >> } >> + >> +COMPATIBLE_HOST_mipsarch = "none" >> +COMPATIBLE_HOST_arm = "none" > [Joe Slater] > Maybe an exclusion for world would be better, because this restriction will be gone when the libibverbs provider is fixed. It depends on what strategy we perfer. If set COMPATIBLE_HOST, when build librdmacm, it shows error message: ERROR: Nothing PROVIDES 'librdmacm' librdmacm was skipped: incompatible with host arm-wrs-linux-gnueabi (not in COMPATIBLE_HOST) If set exclude from world, run 'bitbake librdmacm' shows following errors: NOTE: Resolving any missing task queue dependencies ERROR: Nothing PROVIDES 'virtual/libibverbs' (but /home/kkang/buildarea/wrlx-201902/repo/layers/meta-cloud-services/recipes-extended/librdmacm/librdmacm_1.1.0.bb DEPENDS on or otherwise requires it) libibverbs PROVIDES virtual/libibverbs but was skipped: incompatible with host arm-wrs-linux-gnueabi (not in COMPATIBLE_HOST) ERROR: Required build target 'librdmacm' has no buildable providers. Missing or unbuildable dependency chain was: ['librdmacm', 'virtual/libibverbs'] I prefer COMPATIBLE_HOST way myself because the error message is a little clear. Regards, Kai > > This should be a separate commit. We shouldn't mix the default > packageconfig change > and the marking of librdmacm as incompatible with mips/arm into the same commit. > > In particular, since I'd like the error message you get if librdmacm > is compiled for arm/mips > to be logged in the commit where we make it incompatible. > > Bruce > >> -- >> 2.20.0 >> > -- Kai Kang