busybox: more nails in the coffin
PATCH 1/1 busybox: more nails in the coffin
Create packagegroup-busybox and modify packagegroup-core-boot to conditionally use it.
--- .../packagegroups/packagegroup-busybox.bb | 23 ++++++++++++++++++++ .../packagegroups/packagegroup-core-boot.bb | 17 ++++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 meta/recipes-core/packagegroups/packagegroup-busybox.bb
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +23 -0
@@ -0,0 +1,23 @@ +# +# Copyright (C) 2015 Wind River Inc. +# + +SUMMARY = "Busybox related information" +DESCRIPTION = "Busybox packages and variables" +LICENSE = "MIT" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +# Do not ever, ever override LOCAL variables. +# +LOCAL_sysvinit = " \ + ${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ + " + +RDEPENDS_${PN} = "\ + busybox \ + ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${LOCAL_sysvinit}", "", d)} \ + " +
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +9 -8
@@ -17,14 +17,17 @@ inherit packagegroup MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" -# Distro can override the following VIRTUAL-RUNTIME providers: +# These can be overridden in any .conf file. +# VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_login_manager ?= "busybox" -VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps" +VIRTUAL-RUNTIME_busybox ?= "packagegroup-busybox" -SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ +# Do not ever, ever override LOCAL variables. +# +LOCAL_sysvinit = " \ + sysvinit \ modutils-initscripts \ init-ifupdown \ ${VIRTUAL-RUNTIME_initscripts} \
@@ -33,12 +36,10 @@ SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwc RDEPENDS_${PN} = "\ base-files \ base-passwd \ - busybox \ - ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \ + ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${LOCAL_sysvinit}", "", d)} \ ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ netbase \ - ${VIRTUAL-RUNTIME_login_manager} \ - ${VIRTUAL-RUNTIME_init_manager} \ + ${VIRTUAL-RUNTIME_busybox} \ ${VIRTUAL-RUNTIME_dev_manager} \ ${VIRTUAL-RUNTIME_update-alternatives} \ ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
Signature · 1 line
1.7.9.5
Quoted 2 lines · Joe Slater
Create packagegroup-busybox and modify packagegroup-core-boot to conditionally use it.
This says what it goes but not why. I'm also less than keen on the subject line :/.
Quoted 17 lines
Signed-off-by Joe Slater <[email protected]>--- .../packagegroups/packagegroup-busybox.bb | 23 ++++++++++++++++++++ .../packagegroups/packagegroup-core-boot.bb | 17 ++++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 meta/recipes-core/packagegroups/packagegroup-busybox.bbmeta/recipes-core/packagegroups/packagegroup-busybox.bb new file +4
-0@@ -0,0 +1,23 @@ +# +# Copyright (C) 2015 Wind River Inc. +# +
meta/recipes-core/packagegroups/packagegroup-busybox.bb line 14
Quoted 10 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +10
-0+SUMMARY = "Busybox related information" +DESCRIPTION = "Busybox packages and variables" +LICENSE = "MIT" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +# Do not ever, ever override LOCAL variables. +#
Why?
Quoted 16 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +9
-0+LOCAL_sysvinit = " \ + ${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ + " + +RDEPENDS_${PN} = "\ + busybox \ + ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${LOCAL_sysvinit}", "", d)} \ + " +meta/recipes-core/packagegroups/packagegroup-core-boot.bb +0
-0@@ -17,14 +17,17 @@ inherit packagegroup MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
meta/recipes-core/packagegroups/packagegroup-core-boot.bb inherit packagegroup · line 25
Quoted 10 lines
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +3
-3-# Distro can override the following VIRTUAL-RUNTIME providers: +# These can be overridden in any .conf file. +# VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_login_manager ?= "busybox" -VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps" +VIRTUAL-RUNTIME_busybox ?= "packagegroup-busybox"
What about anyone who actually use these existing VIRTUAL-RUNTIME variables?
Cheers,
Richard
Quoted 9 lines
-----Original Message-----
From: Richard Purdie [mailto:[email protected]]
Sent: Friday, September 04, 2015 10:33 PM
To: Slater, Joseph
Cc: [email protected]
Subject: Re: [OE-core] [oe-core][PATCH 1/1] busybox: more nails in the coffin
Quoted 6 lines
Quoted 2 lines · Joe Slater
Create packagegroup-busybox and modify packagegroup-core-boot to conditionally use it.
This says what it goes but not why. I'm also less than keen on the subject line :/.
Yes, the why should be there. I kind of like the subject line, but it won't be the same when I re-submit this.
Quoted 23 lines
meta/recipes-
Quoted 9 lines
Signed-off-by Joe Slater <[email protected]>--- .../packagegroups/packagegroup-busybox.bb | 23 ++++++++++++++++++++ .../packagegroups/packagegroup-core-boot.bb | 17 ++++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 meta/recipes-core/packagegroups/packagegroup-busybox.bbmeta/recipes- renamed from meta/recipes-core/packagegroups/packagegroup-busybox.bb +0
-0core/packagegroups/packagegroup-busybox.bb
Quoted 13 lines
new file mode 100644
index 0000000..acf0791meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +8
-0@@ -0,0 +1,23 @@ +# +# Copyright (C) 2015 Wind River Inc. +# + +SUMMARY = "Busybox related information" +DESCRIPTION = "Busybox packages and variables" +LICENSE = "MIT" +
Quoted 8 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb line 14
Quoted 6 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +6
-0+PACKAGE_ARCH = "${MACHINE_ARCH}" + +inherit packagegroup + +# Do not ever, ever override LOCAL variables. +#Why?
The comment should not be there. I'll remove it. Maybe there is a naming convention, but I'd like recipes to have truly local variables.
Quoted 20 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb line 16
Quoted 3 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +2
-0+LOCAL_sysvinit = " \ + ${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock','', d)} \
meta/recipes-
Quoted 8 lines
meta/recipes-core/packagegroups/packagegroup-busybox.bb new file +7
-0+ " + +RDEPENDS_${PN} = "\ + busybox \ + ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${LOCAL_sysvinit}", "", d)} \ + " +meta/recipes- renamed from meta/recipes-core/packagegroups/packagegroup-core-boot.bb +0
-0core/packagegroups/packagegroup-core-boot.bb
Quoted 7 lines
index 09f5373..b2d0775 100644
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +0
-0@@ -17,14 +17,17 @@ inherit packagegroup MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
Quoted 12 lines
meta/recipes-core/packagegroups/packagegroup-core-boot.bb inherit packagegroup · line 25
Quoted 9 lines
meta/recipes-core/packagegroups/packagegroup-core-boot.bb +3
-3-# Distro can override the following VIRTUAL-RUNTIME providers: +# These can be overridden in any .conf file. +# VIRTUAL-RUNTIME_dev_manager ?= "udev" -VIRTUAL-RUNTIME_login_manager ?= "busybox" -VIRTUAL-RUNTIME_init_manager ?= "sysvinit" VIRTUAL-RUNTIME_initscripts ?= "initscripts" VIRTUAL-RUNTIME_keymaps ?= "keymaps" +VIRTUAL-RUNTIME_busybox ?= "packagegroup-busybox"What about anyone who actually use these existing VIRTUAL-RUNTIME variables?
This could break things, but maybe not in a bad way. VIRTUAL-RUNTIME_init_manager seems to conflict with the DISTRO_FEATURES sysvinit/systemd. Maybe _busybox could be eliminated and _login_manager be preserved and set to packagegroup-busybox.
Joe
Quoted 5 lines
Cheers,
Richard