Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image
@ 2012-06-01  9:13 xiaofeng.yan
  2012-06-01  9:13 ` [PATCH 1/3 V2] lsbinitscripts: " xiaofeng.yan
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: xiaofeng.yan @ 2012-06-01  9:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

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

This is V2. The modification is as follows by comparison with V1:
- Add extra description in section "DESCRIPTION"
- Use bbclass update-alternatives instead of command method.

The following changes since commit de4cdfd6bc1280ac7ac0559b87734d26294ef773:
  Scott Rifenbark (1):
        documentation/kernel-manual/kernel-how-to.xml: Updated to kernel 3.4

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib xiaofeng/2133
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/2133

Xiaofeng Yan (3):
  lsbinitscripts: Add initscripts to enhance init functions in an lsb
    image
  lsbinitscripts: Patch file functions for confirming to an lsb image
  task-core-lsb: Add another initscripts to an lsb image

 .../lsb/lsbinitscripts/functions.patch             |   11 ++++++++
 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb   |   26 ++++++++++++++++++++
 meta/recipes-extended/tasks/task-core-lsb.bb       |    3 +-
 3 files changed, 39 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/functions.patch
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb




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

* [PATCH 1/3 V2] lsbinitscripts: Add initscripts to enhance init functions in an lsb image
  2012-06-01  9:13 [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image xiaofeng.yan
@ 2012-06-01  9:13 ` xiaofeng.yan
  2012-06-03 18:11   ` Flanagan, Elizabeth
  2012-06-01  9:13 ` [PATCH 2/3 V2] lsbinitscripts: Patch file functions for confirming to " xiaofeng.yan
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: xiaofeng.yan @ 2012-06-01  9:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

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

The version of initscripts has more functions than the simple.
There could be some errors for current initscripts when running
some programe because of absent some functions provided by initscripts.

[YOCTO #2133]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |   26 ++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb

diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
new file mode 100644
index 0000000..8ee8636
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
@@ -0,0 +1,26 @@
+DESCRIPTION = "SysV init scripts which only is used in an LSB image"
+SECTION = "base"
+LICENSE = "GPLv2"
+PR = "r0"
+
+LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
+
+S="${WORKDIR}/initscripts-${PV}"
+SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-${PV}.tar.bz2/668fa2762b57ef75436303857847bba3/initscripts-${PV}.tar.bz2 \
+           file://functions.patch \
+          " 
+
+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
+}
-- 
1.7.0.4




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

* [PATCH 2/3 V2] lsbinitscripts: Patch file functions for confirming to an lsb image
  2012-06-01  9:13 [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image xiaofeng.yan
  2012-06-01  9:13 ` [PATCH 1/3 V2] lsbinitscripts: " xiaofeng.yan
@ 2012-06-01  9:13 ` xiaofeng.yan
  2012-06-01  9:13 ` [PATCH 3/3 V2] task-core-lsb: Add another initscripts " xiaofeng.yan
  2012-06-11 17:53 ` [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in " Flanagan, Elizabeth
  3 siblings, 0 replies; 6+ messages in thread
From: xiaofeng.yan @ 2012-06-01  9:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

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

Add the condition judgment to functions for avoiding to print error
information when system start up at first.

[YOCTO #2133]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 .../lsb/lsbinitscripts/functions.patch             |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/functions.patch

diff --git a/meta/recipes-extended/lsb/lsbinitscripts/functions.patch b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
new file mode 100644
index 0000000..aa63cec
--- /dev/null
+++ b/meta/recipes-extended/lsb/lsbinitscripts/functions.patch
@@ -0,0 +1,11 @@
+--- 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 @@
+ # Get a sane screen width
+ [ -z "${COLUMNS:-}" ] && COLUMNS=80
+ 
+-[ -z "${CONSOLETYPE:-}" ] && CONSOLETYPE="$(/sbin/consoletype)"
++[ -z "${CONSOLETYPE:-}" ] && [ -e /sbin/consoletype ] && CONSOLETYPE="$(/sbin/consoletype)"
+ 
+ if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" -a -z "${LANGSH_SOURCED:-}" ] ; then
+   . /etc/profile.d/lang.sh 2>/dev/null
-- 
1.7.0.4




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

* [PATCH 3/3 V2] task-core-lsb: Add another initscripts to an lsb image
  2012-06-01  9:13 [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image xiaofeng.yan
  2012-06-01  9:13 ` [PATCH 1/3 V2] lsbinitscripts: " xiaofeng.yan
  2012-06-01  9:13 ` [PATCH 2/3 V2] lsbinitscripts: Patch file functions for confirming to " xiaofeng.yan
@ 2012-06-01  9:13 ` xiaofeng.yan
  2012-06-11 17:53 ` [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in " Flanagan, Elizabeth
  3 siblings, 0 replies; 6+ messages in thread
From: xiaofeng.yan @ 2012-06-01  9:13 UTC (permalink / raw)
  To: openembedded-core; +Cc: Zhenfeng.Zhao

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

Initscripts with stronger functions will replace the simple one,
which will avoid error when some packages need functions which could
be absent in the simple initscripts.

[YOCTO #2133]

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
---
 meta/recipes-extended/tasks/task-core-lsb.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-extended/tasks/task-core-lsb.bb b/meta/recipes-extended/tasks/task-core-lsb.bb
index 99ca839..4faf4d7 100644
--- a/meta/recipes-extended/tasks/task-core-lsb.bb
+++ b/meta/recipes-extended/tasks/task-core-lsb.bb
@@ -3,7 +3,7 @@
 #
 
 DESCRIPTION = "Create Small Image Tasks"
-PR = "r8"
+PR = "r9"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
@@ -80,6 +80,7 @@ RDEPENDS_task-core-sys-extended = "\
     which \
     xinetd \
     zip \
+    lsbinitscripts \
     "
 
 RDEPENDS_task-core-db = "\
-- 
1.7.0.4




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

* Re: [PATCH 1/3 V2] lsbinitscripts: Add initscripts to enhance init functions in an lsb image
  2012-06-01  9:13 ` [PATCH 1/3 V2] lsbinitscripts: " xiaofeng.yan
@ 2012-06-03 18:11   ` Flanagan, Elizabeth
  0 siblings, 0 replies; 6+ messages in thread
From: Flanagan, Elizabeth @ 2012-06-03 18:11 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On Fri, Jun 1, 2012 at 2:13 AM,  <xiaofeng.yan@windriver.com> wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>
> The version of initscripts has more functions than the simple.
> There could be some errors for current initscripts when running
> some programe because of absent some functions provided by initscripts.
>

Just an FYI, this was missing a DEPENDS on popt. I've fixed that in
my consolidated pull.

-b

> [YOCTO #2133]
>
> Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
> ---
>  meta/recipes-extended/lsb/lsbinitscripts_9.03.bb |   26 ++++++++++++++++++++++
>  1 files changed, 26 insertions(+), 0 deletions(-)
>  create mode 100644 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>
> diff --git a/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> new file mode 100644
> index 0000000..8ee8636
> --- /dev/null
> +++ b/meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
> @@ -0,0 +1,26 @@
> +DESCRIPTION = "SysV init scripts which only is used in an LSB image"
> +SECTION = "base"
> +LICENSE = "GPLv2"
> +PR = "r0"
> +
> +LIC_FILES_CHKSUM = "file://COPYING;md5=ebf4e8b49780ab187d51bd26aaa022c6"
> +
> +S="${WORKDIR}/initscripts-${PV}"
> +SRC_URI = "http://pkgs.fedoraproject.org/repo/pkgs/initscripts/initscripts-${PV}.tar.bz2/668fa2762b57ef75436303857847bba3/initscripts-${PV}.tar.bz2 \
> +           file://functions.patch \
> +          "
> +
> +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
> +}
> --
> 1.7.0.4
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



-- 
Elizabeth Flanagan
Yocto Project
Build and Release



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

* Re: [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image
  2012-06-01  9:13 [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image xiaofeng.yan
                   ` (2 preceding siblings ...)
  2012-06-01  9:13 ` [PATCH 3/3 V2] task-core-lsb: Add another initscripts " xiaofeng.yan
@ 2012-06-11 17:53 ` Flanagan, Elizabeth
  3 siblings, 0 replies; 6+ messages in thread
From: Flanagan, Elizabeth @ 2012-06-11 17:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Zhenfeng.Zhao

On Fri, Jun 1, 2012 at 2:13 AM,  <xiaofeng.yan@windriver.com> wrote:
> From: Xiaofeng Yan <xiaofeng.yan@windriver.com>
>
> This is V2. The modification is as follows by comparison with V1:
> - Add extra description in section "DESCRIPTION"
> - Use bbclass update-alternatives instead of command method.
>
> The following changes since commit de4cdfd6bc1280ac7ac0559b87734d26294ef773:
>  Scott Rifenbark (1):
>        documentation/kernel-manual/kernel-how-to.xml: Updated to kernel 3.4
>
> are available in the git repository at:
>
>  git://git.pokylinux.org/poky-contrib xiaofeng/2133
>  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=xiaofeng/2133
>
> Xiaofeng Yan (3):
>  lsbinitscripts: Add initscripts to enhance init functions in an lsb
>    image
>  lsbinitscripts: Patch file functions for confirming to an lsb image
>  task-core-lsb: Add another initscripts to an lsb image
>
>  .../lsb/lsbinitscripts/functions.patch             |   11 ++++++++
>  meta/recipes-extended/lsb/lsbinitscripts_9.03.bb   |   26 ++++++++++++++++++++
>  meta/recipes-extended/tasks/task-core-lsb.bb       |    3 +-
>  3 files changed, 39 insertions(+), 1 deletions(-)
>  create mode 100644 meta/recipes-extended/lsb/lsbinitscripts/functions.patch
>  create mode 100644 meta/recipes-extended/lsb/lsbinitscripts_9.03.bb
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Merged into OE-Core

Thanks

-b


-- 
Elizabeth Flanagan
Yocto Project
Build and Release



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

end of thread, other threads:[~2012-06-11 18:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-01  9:13 [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in an lsb image xiaofeng.yan
2012-06-01  9:13 ` [PATCH 1/3 V2] lsbinitscripts: " xiaofeng.yan
2012-06-03 18:11   ` Flanagan, Elizabeth
2012-06-01  9:13 ` [PATCH 2/3 V2] lsbinitscripts: Patch file functions for confirming to " xiaofeng.yan
2012-06-01  9:13 ` [PATCH 3/3 V2] task-core-lsb: Add another initscripts " xiaofeng.yan
2012-06-11 17:53 ` [PATCH 0/3 V2]lsb: Add initscripts to enhance init functions in " Flanagan, Elizabeth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox