All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg
@ 2015-05-26  7:26 Li Zhou
  2015-06-11  7:16 ` Robert Yang
  2015-06-26  8:03 ` Rongqing Li
  0 siblings, 2 replies; 4+ messages in thread
From: Li Zhou @ 2015-05-26  7:26 UTC (permalink / raw)
  To: openembedded-core

When update-alternatives is moved from opkg to opkg-utils, a line in
the file is changed
from <ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives">
to <ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives">.
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 <li.zhou@windriver.com>
---
 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"
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg
  2015-05-26  7:26 [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg Li Zhou
@ 2015-06-11  7:16 ` Robert Yang
  2015-06-26  8:03 ` Rongqing Li
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Yang @ 2015-06-11  7:16 UTC (permalink / raw)
  To: Li Zhou, openembedded-core


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 <ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives">
> to <ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives">.
> 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 <li.zhou@windriver.com>
> ---
>   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"
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg
  2015-05-26  7:26 [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg Li Zhou
  2015-06-11  7:16 ` Robert Yang
@ 2015-06-26  8:03 ` Rongqing Li
  2015-07-10  2:22   ` Rongqing Li
  1 sibling, 1 reply; 4+ messages in thread
From: Rongqing Li @ 2015-06-26  8:03 UTC (permalink / raw)
  To: Li Zhou, openembedded-core

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 <ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives">
> to <ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives">.
> 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 <li.zhou@windriver.com>
> ---
>   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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg
  2015-06-26  8:03 ` Rongqing Li
@ 2015-07-10  2:22   ` Rongqing Li
  0 siblings, 0 replies; 4+ messages in thread
From: Rongqing Li @ 2015-07-10  2:22 UTC (permalink / raw)
  To: openembedded-core

ping

-Roy

On 2015年06月26日 16:03, Rongqing Li wrote:
> 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 <ad="$OPKG_OFFLINE_ROOT@opkglibdir@/opkg/alternatives">
>> to <ad="$OPKG_OFFLINE_ROOT/usr/lib/opkg/alternatives">.
>> 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 <li.zhou@windriver.com>
>> ---
>>   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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-10  2:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26  7:26 [PATCH v3] opkg-utils: Change alternatives lib path from /usr/lib/opkg to /var/lib/opkg Li Zhou
2015-06-11  7:16 ` Robert Yang
2015-06-26  8:03 ` Rongqing Li
2015-07-10  2:22   ` Rongqing Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.