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 E2AF175645 for ; Thu, 11 Jun 2015 07:16:18 +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 t5B7GHl6009572 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 11 Jun 2015 00:16:18 -0700 (PDT) Received: from [128.224.162.200] (128.224.162.200) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.224.2; Thu, 11 Jun 2015 00:16:17 -0700 Message-ID: <557935BF.70602@windriver.com> Date: Thu, 11 Jun 2015 15:16:15 +0800 From: Robert Yang User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Li Zhou , References: <1432625185-12163-1-git-send-email-li.zhou@windriver.com> In-Reply-To: <1432625185-12163-1-git-send-email-li.zhou@windriver.com> Subject: Re: [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg 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: Thu, 11 Jun 2015 07:16:19 -0000 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Ping. // Robert On 05/26/2015 03:26 PM, Li Zhou wrote: > When update-alternatives is moved from opkg to opkg-utils, a line in > the file is changed > from > to . > But opkglibdir doesn't equal to "/usr/lib" here, but equal to "/var/lib" > in oe-core build by configuring --with-opkglibdir. > opkg-utils can't get the var value in opkg, so here define OPKGLIBDIR to > set the path. > > Signed-off-by: Li Zhou > --- > meta/recipes-devtools/opkg-utils/opkg-utils_git.bb | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb > index 2800a5d..9c1c995 100644 > --- a/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb > +++ b/meta/recipes-devtools/opkg-utils/opkg-utils_git.bb > @@ -22,8 +22,11 @@ PYTHONRDEPS_class-native = "" > PACKAGECONFIG = "python" > PACKAGECONFIG[python] = ",,,${PYTHONRDEPS}" > > +OPKGLIBDIR ?= "/var/lib" > + > do_install() { > oe_runmake PREFIX=${prefix} DESTDIR=${D} install > + sed -i s:/usr/lib/opkg:${OPKGLIBDIR}/opkg: ${D}${bindir}/update-alternatives > } > > PACKAGES =+ "update-alternatives-opkg" >