From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 4F399605B3 for ; Fri, 26 Jun 2015 08:03:44 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.15.1/8.15.1) with ESMTPS id t5Q83kdU003149 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Fri, 26 Jun 2015 01:03:46 -0700 (PDT) Received: from [128.224.162.138] (128.224.162.138) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.224.2; Fri, 26 Jun 2015 01:03:46 -0700 Message-ID: <558D0760.2090304@windriver.com> Date: Fri, 26 Jun 2015 16:03:44 +0800 From: Rongqing Li User-Agent: Mozilla/5.0 (X11; Linux x86_64; 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: Fri, 26 Jun 2015 08:03:45 -0000 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit ping -R On 2015年05月26日 15:26, 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" > -- Best Reagrds, Roy | RongQing Li