Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-07-30 Thread Rongqing Li
On 2015年07月31日 11:20, ChenQi wrote: On 07/31/2015 10:55 AM, Rongqing Li wrote: On 2015年07月12日 06:39, Richard Purdie wrote: On Wed, 2015-05-20 at 09:31 +0800, Li Zhou wrote: When update-alternatives is moved from opkg to opkg-utils, a line in the file is changed from to . But opkglibdir do

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-07-30 Thread ChenQi
On 07/31/2015 10:55 AM, Rongqing Li wrote: On 2015年07月12日 06:39, Richard Purdie wrote: On Wed, 2015-05-20 at 09:31 +0800, 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 equ

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-07-30 Thread Rongqing Li
On 2015年07月12日 06:39, Richard Purdie wrote: On Wed, 2015-05-20 at 09:31 +0800, 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 confi

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-07-11 Thread Richard Purdie
On Wed, 2015-05-20 at 09:31 +0800, 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

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-05-21 Thread Zhou, Li
Hi, Martin: I have tried to use , but opkg-utils is built for both native and target. localstatedir will get different value in the two cases. It causes that update-alternative for native can't get the right path. I can't find a proper variable to do this by now. Do you have any sugges

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-05-19 Thread Martin Jansa
Please use the same variable with weak assignment like opkg recipes (so that it can be easily changed from distro config). This also breaks all upgrade paths, is it acceptable? In oe-classic days I've created postinst script which were migrating existing update-alternatives in the rootfs when upda

[OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-05-19 Thread Li Zhou
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 s

Re: [OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-05-13 Thread Martin Jansa
Please make it respect the variable used in opkg. On Wed, May 13, 2015 at 11:41 AM, 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

[OE-core] [PATCH] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg

2015-05-13 Thread Li Zhou
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 change back the direct