From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 1ED2660557 for ; Tue, 18 Aug 2015 03:33:21 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.1/8.15.1) with ESMTPS id t7I3XDTg018769 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 17 Aug 2015 20:33:16 -0700 (PDT) Received: from [128.224.162.158] (128.224.162.158) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.235.1; Mon, 17 Aug 2015 20:33:12 -0700 Message-ID: <55D2A776.4020701@windriver.com> Date: Tue, 18 Aug 2015 11:33:10 +0800 From: Rongqing Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: References: <1439868248-25769-1-git-send-email-joe_macdonald@mentor.com> In-Reply-To: <1439868248-25769-1-git-send-email-joe_macdonald@mentor.com> Subject: Re: [meta-networking][PATCH] netcf: support multilib builds X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 03:33:22 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit On 2015年08月18日 11:24, Joe MacDonald wrote: > When doing a multilib build, /usr/lib is still created but not collected > into FILES_${PN} by default, resulting in a QA error. Adding both > ${libdir} and ${nonarch_libdir} catches all scenarios. > > It also turns out that the previous do_install_append would throw an error > in a multilib build since systemd always installs to .../lib/... but > ${libdir] would point at .../lib64/... > > Signed-off-by: Joe MacDonald > --- > meta-networking/recipes-support/netcf/netcf_git.bb | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > > diff --git a/meta-networking/recipes-support/netcf/netcf_git.bb b/meta-networking/recipes-support/netcf/netcf_git.bb > index d47bb3b..8a8963e 100644 > --- a/meta-networking/recipes-support/netcf/netcf_git.bb > +++ b/meta-networking/recipes-support/netcf/netcf_git.bb > @@ -32,12 +32,22 @@ do_configure_prepend() { > do_install_append() { > if ${@base_contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then > install -d ${D}${systemd_unitdir}/system > - mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ > - rm -rf ${D}${libdir}/systemd/ > + if [ -d "${D}${libdir}/systemd/system" ]; then > + mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ > + rm -rf ${D}${libdir}/systemd/ > + else > + mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/ > + rm -rf ${D}${nonarch_libdir}/systemd/ > + fi > else > mv ${D}${sysconfdir}/rc.d/init.d/ ${D}${sysconfdir} > rm -rf ${D}${sysconfdir}/rc.d/ > fi > } > > +FILES_${PN} += " \ > + ${libdir} \ > + ${nonarch_libdir} \ > + " > + a similar fix has been submitted, 【oe] [PATCH][meta-networking] netcf: align the systemd file path with Makefile -Roy > SYSTEMD_SERVICE_${PN} = "netcf-transaction.service" > -- Best Reagrds, Roy | RongQing Li