* [PATCH 0/3] lsbinitscripts: support multilib, link function and add the header for patch
@ 2012-06-15 9:30 xiaofeng.yan
2012-06-15 9:30 ` [PATCH 1/3] multilib.conf: Add the support of multilib for lsbinitscripts xiaofeng.yan
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: xiaofeng.yan @ 2012-06-15 9:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Add the multilib support for this package and remove the original
/etc/init.d/functions and link functions to functions.lsbinitscripts.
Add the header for patch.
The following changes since commit 3f292735407e50eebb23044fa9f579906a94e800:
gcc-configure-target: Fix sysroot option breakage I introduced (sorry) (2012-06-14 19:48:47 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib xiaofeng/lsbinitscripts
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/lsbinitscripts
Xiaofeng Yan (3):
multilib.conf: Add the support of multilib for lsbinitscripts
lsbinitscripts: Remove original /etc/init.d/functions when building
an lsb image
lsbinitscripts: Add the header for functions.patch
meta/conf/multilib.conf | 1 +
.../lsb/lsbinitscripts/functions.patch | 3 +++
meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
3 files changed, 11 insertions(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] multilib.conf: Add the support of multilib for lsbinitscripts
2012-06-15 9:30 [PATCH 0/3] lsbinitscripts: support multilib, link function and add the header for patch xiaofeng.yan
@ 2012-06-15 9:30 ` xiaofeng.yan
2012-06-15 9:30 ` [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image xiaofeng.yan
2012-06-15 9:30 ` [PATCH 3/3] lsbinitscripts: Add the header for functions.patch xiaofeng.yan
2 siblings, 0 replies; 8+ messages in thread
From: xiaofeng.yan @ 2012-06-15 9:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Add the multilib support for this package to multilib.conf because error will
appear when building an lib32-core-image-lsb without this patch.
[YOCTO #2571]
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
meta/conf/multilib.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/conf/multilib.conf b/meta/conf/multilib.conf
index 9fc5a90..cea8694 100644
--- a/meta/conf/multilib.conf
+++ b/meta/conf/multilib.conf
@@ -420,6 +420,7 @@ BBCLASSEXTEND_append_pn-lrzsz = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-lsb = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-lsbsetup = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-lsbtest = " ${MULTILIBS}"
+BBCLASSEXTEND_append_pn-lsbinitscripts = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-lsof = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-ltp = " ${MULTILIBS}"
BBCLASSEXTEND_append_pn-lttng-control = " ${MULTILIBS}"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image
2012-06-15 9:30 [PATCH 0/3] lsbinitscripts: support multilib, link function and add the header for patch xiaofeng.yan
2012-06-15 9:30 ` [PATCH 1/3] multilib.conf: Add the support of multilib for lsbinitscripts xiaofeng.yan
@ 2012-06-15 9:30 ` xiaofeng.yan
2012-06-15 14:59 ` Richard Purdie
2012-06-15 9:30 ` [PATCH 3/3] lsbinitscripts: Add the header for functions.patch xiaofeng.yan
2 siblings, 1 reply; 8+ messages in thread
From: xiaofeng.yan @ 2012-06-15 9:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
The linking will fail when an original functions exist. So remove the
original functions when building an lsb image and make functions linking to
functions.lsbinitscripts successfully.
[YOCTO #2133]
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
index dd92a92..73bea2f 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used in an LSB image"
SECTION = "base"
LICENSE = "GPLv2"
DEPENDS = "popt"
-PR = "r0"
+PR = "r1"
LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
@@ -25,3 +25,9 @@ do_install(){
install -d ${D}/etc/init.d/
install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
}
+
+pkg_postinst_${PN} () {
+ if [ -f "/etc/init.d/functions" ]; then
+ rm -f /etc/init.d/functions
+ fi
+}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] lsbinitscripts: Add the header for functions.patch
2012-06-15 9:30 [PATCH 0/3] lsbinitscripts: support multilib, link function and add the header for patch xiaofeng.yan
2012-06-15 9:30 ` [PATCH 1/3] multilib.conf: Add the support of multilib for lsbinitscripts xiaofeng.yan
2012-06-15 9:30 ` [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image xiaofeng.yan
@ 2012-06-15 9:30 ` xiaofeng.yan
2 siblings, 0 replies; 8+ messages in thread
From: xiaofeng.yan @ 2012-06-15 9:30 UTC (permalink / raw)
To: openembedded-core; +Cc: Zhenfeng.Zhao
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Add upstream-status and signed-off-by to functions.patch
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
.../lsb/lsbinitscripts/functions.patch | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
index aa63cec..6d09d05 100644
--- a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
+++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
@@ -1,3 +1,6 @@
+Upstream-Status: Inappropriate [configuration]
+
+Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
--- a/rc.d/init.d/functions 2009-12-10 05:24:11.000000000 +0800
+++ b/rc.d/init.d/functions.new 2012-06-01 16:57:12.651229387 +0800
@@ -16,7 +16,7 @@
--
1.7.9.5
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image
2012-06-15 9:30 ` [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image xiaofeng.yan
@ 2012-06-15 14:59 ` Richard Purdie
2012-06-18 2:57 ` Xiaofeng Yan
0 siblings, 1 reply; 8+ messages in thread
From: Richard Purdie @ 2012-06-15 14:59 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao
On Fri, 2012-06-15 at 17:30 +0800, xiaofeng.yan@windriver.com wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>
> The linking will fail when an original functions exist. So remove the
> original functions when building an lsb image and make functions linking to
> functions.lsbinitscripts successfully.
>
> [YOCTO #2133]
>
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> ---
> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> index dd92a92..73bea2f 100644
> --- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> @@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used in an LSB image"
> SECTION = "base"
> LICENSE = "GPLv2"
> DEPENDS = "popt"
> -PR = "r0"
> +PR = "r1"
>
> LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
>
> @@ -25,3 +25,9 @@ do_install(){
> install -d ${D}/etc/init.d/
> install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
> }
> +
> +pkg_postinst_${PN} () {
> + if [ -f "/etc/init.d/functions" ]; then
> + rm -f /etc/init.d/functions
> + fi
> +}
This looks highly suspicious to me. Shouldn't the other provider of this
be put under control for update-alternatives too or something?
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image
2012-06-15 14:59 ` Richard Purdie
@ 2012-06-18 2:57 ` Xiaofeng Yan
2012-06-18 3:08 ` Xiaofeng Yan
2012-06-21 15:38 ` Richard Purdie
0 siblings, 2 replies; 8+ messages in thread
From: Xiaofeng Yan @ 2012-06-18 2:57 UTC (permalink / raw)
To: openembedded-core
On 2012年06月15日 22:59, Richard Purdie wrote:
> On Fri, 2012-06-15 at 17:30 +0800, xiaofeng.yan@windriver.com wrote:
>> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>>
>> The linking will fail when an original functions exist. So remove the
>> original functions when building an lsb image and make functions linking to
>> functions.lsbinitscripts successfully.
>>
>> [YOCTO #2133]
>>
>> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>> ---
>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
>> 1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>> index dd92a92..73bea2f 100644
>> --- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>> @@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used in an LSB image"
>> SECTION = "base"
>> LICENSE = "GPLv2"
>> DEPENDS = "popt"
>> -PR = "r0"
>> +PR = "r1"
>>
>> LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
>>
>> @@ -25,3 +25,9 @@ do_install(){
>> install -d ${D}/etc/init.d/
>> install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
>> }
>> +
>> +pkg_postinst_${PN} () {
>> + if [ -f "/etc/init.d/functions" ]; then
>> + rm -f /etc/init.d/functions
>> + fi
>> +}
> This looks highly suspicious to me. Shouldn't the other provider of this
> be put under control for update-alternatives too or something?
Thanks for your comments.
the other provider of this is from initscripts_1.0.bb, installing all of
init-scripts in the stage of installing without using
update-alternatives. So the functions is a file instead of linking mode.
An error appear when lsbinicscritps replace initscripts if not removing
file functions. So I remove the original functions for making the latter
linking successfully. What is the purpose is for avoiding to modify the
other non-lsb bb files. The changes of this will be only in lsb image.
Thanks
Yan
> Cheers,
>
> Richard
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image
2012-06-18 2:57 ` Xiaofeng Yan
@ 2012-06-18 3:08 ` Xiaofeng Yan
2012-06-21 15:38 ` Richard Purdie
1 sibling, 0 replies; 8+ messages in thread
From: Xiaofeng Yan @ 2012-06-18 3:08 UTC (permalink / raw)
To: openembedded-core
On 2012年06月18日 10:57, Xiaofeng Yan wrote:
> On 2012年06月15日 22:59, Richard Purdie wrote:
>> On Fri, 2012-06-15 at 17:30 +0800, xiaofeng.yan@windriver.com wrote:
>>> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>>>
>>> The linking will fail when an original functions exist. So remove the
>>> original functions when building an lsb image and make functions
>>> linking to
>>> functions.lsbinitscripts successfully.
>>>
>>> [YOCTO #2133]
>>>
>>> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>>> ---
>>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
>>> 1 file changed, 7 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>>> b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>>> index dd92a92..73bea2f 100644
>>> --- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>>> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>>> @@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used
>>> in an LSB image"
>>> SECTION = "base"
>>> LICENSE = "GPLv2"
>>> DEPENDS = "popt"
>>> -PR = "r0"
>>> +PR = "r1"
>>>
>>> LIC_FILES_CHKSUM =
>>> "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
>>>
>>> @@ -25,3 +25,9 @@ do_install(){
>>> install -d ${D}/etc/init.d/
>>> install -m 0755 ${S}/rc.d/init.d/functions
>>> ${D}/etc/init.d/functions
>>> }
>>> +
>>> +pkg_postinst_${PN} () {
>>> + if [ -f "/etc/init.d/functions" ]; then
>>> + rm -f /etc/init.d/functions
>>> + fi
>>> +}
>> This looks highly suspicious to me. Shouldn't the other provider of this
>> be put under control for update-alternatives too or something?
> Thanks for your comments.
> the other provider of this is from initscripts_1.0.bb, installing all
> of init-scripts in the stage of installing without using
> update-alternatives. So the functions is a file instead of linking
> mode. An error appear when lsbinicscritps replace initscripts if not
> removing file functions. So I remove the original functions for making
> the latter linking successfully. What is the purpose is for avoiding
> to modify the other non-lsb bb files. The changes of this will be only
> in lsb image.
Can we add the removing function if not a linking when using
update-alternatives ?
> Thanks
> Yan
>> Cheers,
>>
>> Richard
>>
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image
2012-06-18 2:57 ` Xiaofeng Yan
2012-06-18 3:08 ` Xiaofeng Yan
@ 2012-06-21 15:38 ` Richard Purdie
1 sibling, 0 replies; 8+ messages in thread
From: Richard Purdie @ 2012-06-21 15:38 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2012-06-18 at 10:57 +0800, Xiaofeng Yan wrote:
> On 2012年06月15日 22:59, Richard Purdie wrote:
> > On Fri, 2012-06-15 at 17:30 +0800, xiaofeng.yan@windriver.com wrote:
> >> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
> >>
> >> The linking will fail when an original functions exist. So remove the
> >> original functions when building an lsb image and make functions linking to
> >> functions.lsbinitscripts successfully.
> >>
> >> [YOCTO #2133]
> >>
> >> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
> >> ---
> >> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 8 +++++++-
> >> 1 file changed, 7 insertions(+), 1 deletion(-)
> >>
> >> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> >> index dd92a92..73bea2f 100644
> >> --- a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> >> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> >> @@ -2,7 +2,7 @@ DESCRIPTION = "SysV init scripts which only is used in an LSB image"
> >> SECTION = "base"
> >> LICENSE = "GPLv2"
> >> DEPENDS = "popt"
> >> -PR = "r0"
> >> +PR = "r1"
> >>
> >> LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
> >>
> >> @@ -25,3 +25,9 @@ do_install(){
> >> install -d ${D}/etc/init.d/
> >> install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
> >> }
> >> +
> >> +pkg_postinst_${PN} () {
> >> + if [ -f "/etc/init.d/functions" ]; then
> >> + rm -f /etc/init.d/functions
> >> + fi
> >> +}
> > This looks highly suspicious to me. Shouldn't the other provider of this
> > be put under control for update-alternatives too or something?
> Thanks for your comments.
> the other provider of this is from initscripts_1.0.bb, installing all of
> init-scripts in the stage of installing without using
> update-alternatives. So the functions is a file instead of linking mode.
> An error appear when lsbinicscritps replace initscripts if not removing
> file functions. So I remove the original functions for making the latter
> linking successfully. What is the purpose is for avoiding to modify the
> other non-lsb bb files. The changes of this will be only in lsb image.
Right, I understand there is a conflict here. Could we not add
update-alternatives support to the initscripts recipe for this file to,
so its a link in both packages and then update-alternatives will take
care of linking the correct one into place?
Cheers,
Richard
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-06-21 15:48 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-15 9:30 [PATCH 0/3] lsbinitscripts: support multilib, link function and add the header for patch xiaofeng.yan
2012-06-15 9:30 ` [PATCH 1/3] multilib.conf: Add the support of multilib for lsbinitscripts xiaofeng.yan
2012-06-15 9:30 ` [PATCH 2/3] lsbinitscripts: Remove original /etc/init.d/functions when building an lsb image xiaofeng.yan
2012-06-15 14:59 ` Richard Purdie
2012-06-18 2:57 ` Xiaofeng Yan
2012-06-18 3:08 ` Xiaofeng Yan
2012-06-21 15:38 ` Richard Purdie
2012-06-15 9:30 ` [PATCH 3/3] lsbinitscripts: Add the header for functions.patch xiaofeng.yan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox