All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix lsbinitscripts link problem
@ 2012-06-28  9:35 Kang Kai
  2012-06-28  9:35 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Kang Kai @ 2012-06-28  9:35 UTC (permalink / raw)
  To: sgw; +Cc: Zhenfeng.Zhao, openembedded-core

Hi Saul,

I update the initscripts to use update alternative way to install file functions.
That make file functions provided by lsbinitscripts will be used instead of initscripts.

Regards,
Kai

The following changes since commit 8ce8d25bcda0e2e0b62204d5ca5875dedcaacf7d:

  sanity.bbclass: Increase LAYER_CONF_VERSION to match bblayers change (2012-06-25 17:20:54 +0100)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib kangkai/distro
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/distro

Kang Kai (1):
  initscripts: use update-alternative to handle file functions

Xiaofeng Yan (1):
  lsbinitscripts: Add a linking for functions.lsbinitscripts

 meta/recipes-core/initscripts/initscripts_1.0.bb |   10 ++++++++--
 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |    6 +++---
 2 files changed, 11 insertions(+), 5 deletions(-)

-- 
1.7.5.4




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

* [PATCH 1/2] initscripts: use update-alternative to handle file functions
  2012-06-28  9:35 [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
@ 2012-06-28  9:35 ` Kang Kai
  2012-07-03 13:53   ` Richard Purdie
  2012-06-28  9:35 ` [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts Kang Kai
  2012-07-03  1:42 ` [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
  2 siblings, 1 reply; 9+ messages in thread
From: Kang Kai @ 2012-06-28  9:35 UTC (permalink / raw)
  To: sgw; +Cc: Zhenfeng.Zhao, openembedded-core

lsb need a more abundant /etc/init.d/functions file to handle lsb test.
Use update-alternative to install file funtions in package initscripts,
when package lsbinitscripts installed the file functions of
lsbinitscripts will be used.

Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
 meta/recipes-core/initscripts/initscripts_1.0.bb |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 829694b..78c27a3 100644
--- a/meta/recipes-core/initscripts/initscripts_1.0.bb
+++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
 SECTION = "base"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
-PR = "r134"
+PR = "r135"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
@@ -37,6 +37,12 @@ SRC_URI_append_arm = " file://alignment.sh"
 
 KERNEL_VERSION = ""
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "90"
+ALTERNATIVE_${PN} = "functions"
+ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
+
 HALTARGS ?= "-d -f"
 
 do_configure() {
@@ -60,7 +66,7 @@ do_install () {
 	install -d ${D}${sysconfdir}/default
 	install -d ${D}${sysconfdir}/default/volatiles
 
-	install -m 0644    ${WORKDIR}/functions		${D}${sysconfdir}/init.d
+	install -m 0644    ${WORKDIR}/functions		${D}${sysconfdir}/init.d/functions.${BPN}
 	install -m 0755    ${WORKDIR}/bootmisc.sh	${D}${sysconfdir}/init.d
 	install -m 0755    ${WORKDIR}/checkroot.sh	${D}${sysconfdir}/init.d
 #	install -m 0755    ${WORKDIR}/finish.sh		${D}${sysconfdir}/init.d
-- 
1.7.5.4




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

* [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts
  2012-06-28  9:35 [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
  2012-06-28  9:35 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
@ 2012-06-28  9:35 ` Kang Kai
  2012-07-07  0:43   ` Saul Wold
  2012-07-03  1:42 ` [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
  2 siblings, 1 reply; 9+ messages in thread
From: Kang Kai @ 2012-06-28  9:35 UTC (permalink / raw)
  To: sgw; +Cc: Zhenfeng.Zhao, openembedded-core

From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

Increase ALTERNATIVE_PRIORITY of functions to be higher than the
value of package initscript. When lsbinitscripts installed, file
functions provided by lsbinitscripts will be used.

[YOCTO #2133]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
index dd92a92..f324994 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"
 
@@ -15,7 +15,7 @@ SRC_URI[md5sum] = "668fa2762b57ef75436303857847bba3"
 SRC_URI[sha256sum] = "d56547a68ce223a7413b2676650b042125f047c8d6d139c5b970e118b3dc958a"
 inherit update-alternatives
 
-ALTERNATIVE_PRIORITY = "10"
+ALTERNATIVE_PRIORITY = "100"
 ALTERNATIVE_${PN} = "functions"
 ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
 
@@ -23,5 +23,5 @@ do_configure[noexec] = "1"
 
 do_install(){
 	install -d ${D}/etc/init.d/
-	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
+	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions.${BPN}
 }
-- 
1.7.5.4




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

* Re: [PATCH 0/2] Fix lsbinitscripts link problem
  2012-06-28  9:35 [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
  2012-06-28  9:35 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
  2012-06-28  9:35 ` [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts Kang Kai
@ 2012-07-03  1:42 ` Kang Kai
  2012-07-03  4:04   ` Saul Wold
  2 siblings, 1 reply; 9+ messages in thread
From: Kang Kai @ 2012-07-03  1:42 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On 2012年06月28日 17:35, Kang Kai wrote:
> Hi Saul,
>
> I update the initscripts to use update alternative way to install file functions.
> That make file functions provided by lsbinitscripts will be used instead of initscripts.

Could anyone give comments of these two patches?
Thanks.

Regards,
Kai

>
> Regards,
> Kai
>
> The following changes since commit 8ce8d25bcda0e2e0b62204d5ca5875dedcaacf7d:
>
>    sanity.bbclass: Increase LAYER_CONF_VERSION to match bblayers change (2012-06-25 17:20:54 +0100)
>
> are available in the git repository at:
>    git://git.pokylinux.org/poky-contrib kangkai/distro
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/distro
>
> Kang Kai (1):
>    initscripts: use update-alternative to handle file functions
>
> Xiaofeng Yan (1):
>    lsbinitscripts: Add a linking for functions.lsbinitscripts
>
>   meta/recipes-core/initscripts/initscripts_1.0.bb |   10 ++++++++--
>   meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |    6 +++---
>   2 files changed, 11 insertions(+), 5 deletions(-)
>




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

* Re: [PATCH 0/2] Fix lsbinitscripts link problem
  2012-07-03  1:42 ` [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
@ 2012-07-03  4:04   ` Saul Wold
  2012-07-03  5:49     ` Kang Kai
  0 siblings, 1 reply; 9+ messages in thread
From: Saul Wold @ 2012-07-03  4:04 UTC (permalink / raw)
  To: Kang Kai; +Cc: Zhenfeng.Zhao, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 1253 bytes --]

On 07/02/2012 06:42 PM, Kang Kai wrote:
> On 2012年06月28日 17:35, Kang Kai wrote:
>> Hi Saul,
>>
>> I update the initscripts to use update alternative way to install file
>> functions.
>> That make file functions provided by lsbinitscripts will be used
>> instead of initscripts.
>
> Could anyone give comments of these two patches?

Kai,

I commented on this patch already on 6/27, please see attached email

Sau!

> Thanks.
>
> Regards,
> Kai
>
>>
>> Regards,
>> Kai
>>
>> The following changes since commit
>> 8ce8d25bcda0e2e0b62204d5ca5875dedcaacf7d:
>>
>> sanity.bbclass: Increase LAYER_CONF_VERSION to match bblayers change
>> (2012-06-25 17:20:54 +0100)
>>
>> are available in the git repository at:
>> git://git.pokylinux.org/poky-contrib kangkai/distro
>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/distro
>>
>> Kang Kai (1):
>> initscripts: use update-alternative to handle file functions
>>
>> Xiaofeng Yan (1):
>> lsbinitscripts: Add a linking for functions.lsbinitscripts
>>
>> meta/recipes-core/initscripts/initscripts_1.0.bb | 10 ++++++++--
>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 6 +++---
>> 2 files changed, 11 insertions(+), 5 deletions(-)
>>
>
>
>

[-- Attachment #2: Attached Message --]
[-- Type: message/rfc822, Size: 3590 bytes --]

From: Saul Wold <sgw@linux.intel.com>
To: Patches and discussions about the oe-core layer <openembedded-core@lists.openembedded.org>
Cc: Kang Kai <kai.kang@windriver.com>, Zhenfeng.Zhao@windriver.com
Subject: Re: [OE-core] [PATCH 1/1] lsbinitscripts: Add a linking for functions.lsbinitscripts
Date: Wed, 27 Jun 2012 09:53:15 -0700
Message-ID: <4FEB3A7B.2030605@linux.intel.com>

On 06/26/2012 11:04 PM, Kang Kai wrote:
> From: Xiaofeng Yan<xiaofeng.yan@windriver.com>
>
> The linking will fail when an original file "functions" exists.
> So using the new linking replace the previous "functions".
>
> [YOCTO #2133]
>
> Signed-off-by: Xiaofeng Yan<xiaofeng.yan@windriver.com>
> ---
>   meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |   11 ++++-------
>   1 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> index dd92a92..990da2e 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"
>
> @@ -13,15 +13,12 @@ SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-${PV}
>
>   SRC_URI[md5sum] = "668fa2762b57ef75436303857847bba3"
>   SRC_URI[sha256sum] = "d56547a68ce223a7413b2676650b042125f047c8d6d139c5b970e118b3dc958a"
> -inherit update-alternatives
> -
> -ALTERNATIVE_PRIORITY = "10"
> -ALTERNATIVE_${PN} = "functions"
> -ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
>
>   do_configure[noexec] = "1"
>
>   do_install(){
>   	install -d ${D}/etc/init.d/
> -	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
> +	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions.lsbinitscripts
> +        cd ${D}/etc/init.d/
> +        ln -sf functions.lsbinitscripts functions
>   }

This is still not correct, you are disabling the usage update 
ALTERNATIVE here.  What you should really be doing is adding that 
support to the original initscripts_1.0.bb recipes for the function file 
and give this a higher ALTERNATIVE_PRIORITY, so that when it is 
installed it will do the right thing (tm) via the update alternative 
functionality.

Sau!



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

* Re: [PATCH 0/2] Fix lsbinitscripts link problem
  2012-07-03  4:04   ` Saul Wold
@ 2012-07-03  5:49     ` Kang Kai
  0 siblings, 0 replies; 9+ messages in thread
From: Kang Kai @ 2012-07-03  5:49 UTC (permalink / raw)
  To: Saul Wold; +Cc: Zhenfeng.Zhao, Patches and discussions about the oe-core layer

On 2012年07月03日 12:04, Saul Wold wrote:
> On 07/02/2012 06:42 PM, Kang Kai wrote:
>> On 2012年06月28日 17:35, Kang Kai wrote:
>>> Hi Saul,
>>>
>>> I update the initscripts to use update alternative way to install file
>>> functions.
>>> That make file functions provided by lsbinitscripts will be used
>>> instead of initscripts.
>>
>> Could anyone give comments of these two patches?
>
> Kai,
>
> I commented on this patch already on 6/27, please see attached email

Hi Saul,

I saw your comments and updated initscripts with update-alternatives too.
Sorry for didn't add "V2".
Please help to review them.

Thanks,
Kai

>
> Sau!
>
>> Thanks.
>>
>> Regards,
>> Kai
>>
>>>
>>> Regards,
>>> Kai
>>>
>>> The following changes since commit
>>> 8ce8d25bcda0e2e0b62204d5ca5875dedcaacf7d:
>>>
>>> sanity.bbclass: Increase LAYER_CONF_VERSION to match bblayers change
>>> (2012-06-25 17:20:54 +0100)
>>>
>>> are available in the git repository at:
>>> git://git.pokylinux.org/poky-contrib kangkai/distro
>>> http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/distro
>>>
>>> Kang Kai (1):
>>> initscripts: use update-alternative to handle file functions
>>>
>>> Xiaofeng Yan (1):
>>> lsbinitscripts: Add a linking for functions.lsbinitscripts
>>>
>>> meta/recipes-core/initscripts/initscripts_1.0.bb | 10 ++++++++--
>>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 6 +++---
>>> 2 files changed, 11 insertions(+), 5 deletions(-)
>>>
>>
>>
>>




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

* Re: [PATCH 1/2] initscripts: use update-alternative to handle file functions
  2012-06-28  9:35 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
@ 2012-07-03 13:53   ` Richard Purdie
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2012-07-03 13:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On Thu, 2012-06-28 at 17:35 +0800, Kang Kai wrote:
> lsb need a more abundant /etc/init.d/functions file to handle lsb test.
> Use update-alternative to install file funtions in package initscripts,
> when package lsbinitscripts installed the file functions of
> lsbinitscripts will be used.
> 
> Signed-off-by: Kang Kai <kai.kang@windriver.com>
> ---
>  meta/recipes-core/initscripts/initscripts_1.0.bb |   10 ++++++++--
>  1 files changed, 8 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
> index 829694b..78c27a3 100644
> --- a/meta/recipes-core/initscripts/initscripts_1.0.bb
> +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb
> @@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip
>  SECTION = "base"
>  LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
> -PR = "r134"
> +PR = "r135"
>  
>  INHIBIT_DEFAULT_DEPS = "1"
>  
> @@ -37,6 +37,12 @@ SRC_URI_append_arm = " file://alignment.sh"
>  
>  KERNEL_VERSION = ""
>  
> +inherit update-alternatives
> +
> +ALTERNATIVE_PRIORITY = "90"
> +ALTERNATIVE_${PN} = "functions"
> +ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
> +
>  HALTARGS ?= "-d -f"
>  
>  do_configure() {
> @@ -60,7 +66,7 @@ do_install () {
>  	install -d ${D}${sysconfdir}/default
>  	install -d ${D}${sysconfdir}/default/volatiles
>  
> -	install -m 0644    ${WORKDIR}/functions		${D}${sysconfdir}/init.d
> +	install -m 0644    ${WORKDIR}/functions		${D}${sysconfdir}/init.d/functions.${BPN}
>  	install -m 0755    ${WORKDIR}/bootmisc.sh	${D}${sysconfdir}/init.d
>  	install -m 0755    ${WORKDIR}/checkroot.sh	${D}${sysconfdir}/init.d
>  #	install -m 0755    ${WORKDIR}/finish.sh		${D}${sysconfdir}/init.d

Won't the code in the class handling this renaming itself?

Cheers,

Richard





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

* Re: [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts
  2012-06-28  9:35 ` [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts Kang Kai
@ 2012-07-07  0:43   ` Saul Wold
  2012-07-09  1:33     ` Kang Kai
  0 siblings, 1 reply; 9+ messages in thread
From: Saul Wold @ 2012-07-07  0:43 UTC (permalink / raw)
  To: Kang Kai; +Cc: Zhenfeng.Zhao, openembedded-core

On 06/28/2012 02:35 AM, Kang Kai wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>
> Increase ALTERNATIVE_PRIORITY of functions to be higher than the
> value of package initscript. When lsbinitscripts installed, file
> functions provided by lsbinitscripts will be used.
>
> [YOCTO #2133]
>
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> Signed-off-by: Kang Kai <kai.kang@windriver.com>
> ---
>   meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> index dd92a92..f324994 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"
>
> @@ -15,7 +15,7 @@ SRC_URI[md5sum] = "668fa2762b57ef75436303857847bba3"
>   SRC_URI[sha256sum] = "d56547a68ce223a7413b2676650b042125f047c8d6d139c5b970e118b3dc958a"
>   inherit update-alternatives
>
> -ALTERNATIVE_PRIORITY = "10"
> +ALTERNATIVE_PRIORITY = "100"
>   ALTERNATIVE_${PN} = "functions"
>   ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
>
> @@ -23,5 +23,5 @@ do_configure[noexec] = "1"
>
>   do_install(){
>   	install -d ${D}/etc/init.d/
> -	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
> +	install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions.${BPN}
>   }
>
As Richard already pointed out, this rename during install is not 
needed, it happens automagically via the update-alternatives bbclass, 
this is true with the initscripts recipe also, please fix these two 
issues and we can move forward with this patch.

Thanks
	Sau!




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

* Re: [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts
  2012-07-07  0:43   ` Saul Wold
@ 2012-07-09  1:33     ` Kang Kai
  0 siblings, 0 replies; 9+ messages in thread
From: Kang Kai @ 2012-07-09  1:33 UTC (permalink / raw)
  To: Saul Wold; +Cc: Zhenfeng.Zhao, openembedded-core

On 2012年07月07日 08:43, Saul Wold wrote:
> On 06/28/2012 02:35 AM, Kang Kai wrote:
>> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>>
>> Increase ALTERNATIVE_PRIORITY of functions to be higher than the
>> value of package initscript. When lsbinitscripts installed, file
>> functions provided by lsbinitscripts will be used.
>>
>> [YOCTO #2133]
>>
>> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>> Signed-off-by: Kang Kai <kai.kang@windriver.com>
>> ---
>> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 6 +++---
>> 1 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb 
>> b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>> index dd92a92..f324994 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"
>>
>> @@ -15,7 +15,7 @@ SRC_URI[md5sum] = "668fa2762b57ef75436303857847bba3"
>> SRC_URI[sha256sum] = 
>> "d56547a68ce223a7413b2676650b042125f047c8d6d139c5b970e118b3dc958a"
>> inherit update-alternatives
>>
>> -ALTERNATIVE_PRIORITY = "10"
>> +ALTERNATIVE_PRIORITY = "100"
>> ALTERNATIVE_${PN} = "functions"
>> ALTERNATIVE_LINK_NAME[functions] = "${sysconfdir}/init.d/functions"
>>
>> @@ -23,5 +23,5 @@ do_configure[noexec] = "1"
>>
>> do_install(){
>> install -d ${D}/etc/init.d/
>> - install -m 0755 ${S}/rc.d/init.d/functions ${D}/etc/init.d/functions
>> + install -m 0755 ${S}/rc.d/init.d/functions 
>> ${D}/etc/init.d/functions.${BPN}
>> }
>>
> As Richard already pointed out, this rename during install is not 
> needed, it happens automagically via the update-alternatives bbclass, 
> this is true with the initscripts recipe also, please fix these two 
> issues and we can move forward with this patch.
Saul,

Thanks. I'll update them.

Regards,
Kai

>
> Thanks
> Sau!
>
>




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

end of thread, other threads:[~2012-07-09  1:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-28  9:35 [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
2012-06-28  9:35 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
2012-07-03 13:53   ` Richard Purdie
2012-06-28  9:35 ` [PATCH 2/2] lsbinitscripts: Add a linking for functions.lsbinitscripts Kang Kai
2012-07-07  0:43   ` Saul Wold
2012-07-09  1:33     ` Kang Kai
2012-07-03  1:42 ` [PATCH 0/2] Fix lsbinitscripts link problem Kang Kai
2012-07-03  4:04   ` Saul Wold
2012-07-03  5:49     ` Kang Kai

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.