Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id D98D8744F2 for ; Fri, 19 Oct 2018 03:37:00 +0000 (UTC) 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 w9J3aOch021396 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Thu, 18 Oct 2018 20:36:34 -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.408.0; Thu, 18 Oct 2018 20:36:13 -0700 To: ChenQi , Dan McGregor , References: <20181018152423.24962-1-danismostlikely@gmail.com> <639a7593-3780-3ab3-0b56-44523bba448c@windriver.com> From: Kang Kai Message-ID: <443e089d-c108-75dd-ae83-eab7e97c9187@windriver.com> Date: Fri, 19 Oct 2018 11:35:31 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <639a7593-3780-3ab3-0b56-44523bba448c@windriver.com> Subject: Re: [PATCH] os-release: move to nonarch_libdir X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2018 03:37:01 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US On 2018/10/19 上午10:21, ChenQi wrote: > I suspect this is the correct fix for multilib conflict of os-release > after the allarch/multilib change. > Kai, could you please verify if the following patch could be dropped > with this patch applied? > > commit 591a11ba58ce3c2c147bb1f8202bc6a0092b70eb > Author: Kai Kang > Date:   Wed Oct 3 00:27:14 2018 +0800 > >     os-release: avoid multilib expand > >     Add os-release to NON_MULTILIB_RECIPES in multilib.conf that do > not do >     multilib expand for os-release. This commit is to fix file conflict of /etc/os-release between lib32-os-release and os-release. When install os-release to nonarch_libdir, the issue is gone. So my commit could be reverted when this commit is merged. Tested for qemux86-64. --Kai > >     (From OE-Core rev: 361382ca16c276e1e404eab58c0956a2b6d23d7e) > >     Signed-off-by: Kai Kang >     Signed-off-by: Richard Purdie > > Best Regards, > Chen Qi > > On 10/18/2018 11:24 PM, Dan McGregor wrote: >> From: Dan McGregor >> >> Even on multilib systems, /usr/lib is where systemd expects the >> os-release file to live. >> >> Signed-off-by: Dan McGregor >> --- >>   meta/recipes-core/os-release/os-release.bb | 8 ++++---- >>   1 file changed, 4 insertions(+), 4 deletions(-) >> >> diff --git a/meta/recipes-core/os-release/os-release.bb >> b/meta/recipes-core/os-release/os-release.bb >> index bf4f815a10d..7f3d9cba00c 100644 >> --- a/meta/recipes-core/os-release/os-release.bb >> +++ b/meta/recipes-core/os-release/os-release.bb >> @@ -42,9 +42,9 @@ python do_compile () { >>   do_compile[vardeps] += "${OS_RELEASE_FIELDS}" >>     do_install () { >> -    install -d ${D}${libdir} ${D}${sysconfdir} >> -    install -m 0644 os-release ${D}${libdir}/ >> -    lnr ${D}${libdir}/os-release ${D}${sysconfdir}/os-release >> +    install -d ${D}${nonarch_libdir} ${D}${sysconfdir} >> +    install -m 0644 os-release ${D}${nonarch_libdir}/ >> +    lnr ${D}${nonarch_libdir}/os-release ${D}${sysconfdir}/os-release >>   } >>   -FILES_${PN} += "${libdir}/os-release" >> +FILES_${PN} += "${nonarch_libdir}/os-release" > > > -- Regards, Neil | Kai Kang