* [PATCH 0/2] V3: Fix lsbinitscripts link problem
@ 2012-07-09 2:26 Kang Kai
2012-07-09 2:26 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Kang Kai @ 2012-07-09 2:26 UTC (permalink / raw)
To: sgw; +Cc: Zhenfeng.Zhao, openembedded-core
Hi Saul,
As your comment, I remove the manual rename of file functions in both of lsbinitscripts and 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 (2):
initscripts: use update-alternative to handle file functions
lsbinitscripts: increase ALTERNATIVE_PRIORITY
meta/recipes-core/initscripts/initscripts_1.0.bb | 8 +++++++-
meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 4 ++--
2 files changed, 9 insertions(+), 3 deletions(-)
--
1.7.5.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] initscripts: use update-alternative to handle file functions
2012-07-09 2:26 [PATCH 0/2] V3: Fix lsbinitscripts link problem Kang Kai
@ 2012-07-09 2:26 ` Kang Kai
2012-07-09 2:26 ` [PATCH 2/2] lsbinitscripts: increase ALTERNATIVE_PRIORITY Kang Kai
2012-07-09 16:19 ` [PATCH 0/2] V3: Fix lsbinitscripts link problem Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Kang Kai @ 2012-07-09 2:26 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 | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb
index 829694b..1d80c55 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() {
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] lsbinitscripts: increase ALTERNATIVE_PRIORITY
2012-07-09 2:26 [PATCH 0/2] V3: Fix lsbinitscripts link problem Kang Kai
2012-07-09 2:26 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
@ 2012-07-09 2:26 ` Kang Kai
2012-07-09 16:19 ` [PATCH 0/2] V3: Fix lsbinitscripts link problem Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Kang Kai @ 2012-07-09 2:26 UTC (permalink / raw)
To: sgw; +Cc: Zhenfeng.Zhao, openembedded-core
[YOCTO #2133]
Increase ALTERNATIVE_PRIORITY of file functions to be higher than
the value in package initscript. Then when lsbinitscripts installed,
file functions provided by lsbinitscripts will be used.
Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
index dd92a92..da781da 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"
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 0/2] V3: Fix lsbinitscripts link problem
2012-07-09 2:26 [PATCH 0/2] V3: Fix lsbinitscripts link problem Kang Kai
2012-07-09 2:26 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
2012-07-09 2:26 ` [PATCH 2/2] lsbinitscripts: increase ALTERNATIVE_PRIORITY Kang Kai
@ 2012-07-09 16:19 ` Saul Wold
2 siblings, 0 replies; 4+ messages in thread
From: Saul Wold @ 2012-07-09 16:19 UTC (permalink / raw)
To: Kang Kai; +Cc: Zhenfeng.Zhao, openembedded-core
On 07/08/2012 07:26 PM, Kang Kai wrote:
> Hi Saul,
>
> As your comment, I remove the manual rename of file functions in both of lsbinitscripts and 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 (2):
> initscripts: use update-alternative to handle file functions
> lsbinitscripts: increase ALTERNATIVE_PRIORITY
>
> meta/recipes-core/initscripts/initscripts_1.0.bb | 8 +++++++-
> meta/recipes-extended/lsb/lsbinitscripts_9.03.bb | 4 ++--
> 2 files changed, 9 insertions(+), 3 deletions(-)
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-09 16:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09 2:26 [PATCH 0/2] V3: Fix lsbinitscripts link problem Kang Kai
2012-07-09 2:26 ` [PATCH 1/2] initscripts: use update-alternative to handle file functions Kang Kai
2012-07-09 2:26 ` [PATCH 2/2] lsbinitscripts: increase ALTERNATIVE_PRIORITY Kang Kai
2012-07-09 16:19 ` [PATCH 0/2] V3: Fix lsbinitscripts link problem Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox