Skip to contentSkip to conversation

update-rc.d: Allow to use different initscripts provider

PATCH In review Martin Jansa 2 participants 3 messages Jun 6, 2014 – Jun 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 update-rc.d: Allow to use different initscripts provider

* until now all recipes were respecting VIRTUAL-RUNTIME_initscripts variable but commit bba835fed88c3bd5bb5bd58962034aef57c408d8 hardcoded "initscripts" runtime dependency

---
 meta/classes/update-rc.d.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/update-rc.d.bbclass +2 -1
index ca9486b..19b081d 100644
@@ -1,7 +1,8 @@
 UPDATERCPN ?= "${PN}"
 
 DEPENDS_append = " update-rc.d-native"
-DEPENDS_append_class-target = " initscripts"
+VIRTUAL-RUNTIME_initscripts ?= "initscripts"
+DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
 UPDATERCD = "update-rc.d"
 UPDATERCD_class-cross = ""
 UPDATERCD_class-native = ""
Signature · 1 line
2.0.0
#1 lore raw

Hi Martin,

Quoted 14 lines · On Friday 06 June 2014 18:57:34 Martin Jansa wrote:

* until now all recipes were respecting VIRTUAL-RUNTIME_initscripts variable but commit bba835fed88c3bd5bb5bd58962034aef57c408d8 hardcoded "initscripts" runtime dependency

---
 meta/classes/update-rc.d.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta/classes/update-rc.d.bbclass index ca9486b..19b081d 100644

meta/classes/update-rc.d.bbclass line 8

Quoted 9 lines
meta/classes/update-rc.d.bbclass +2 -1
@@ -1,7 +1,8 @@
 UPDATERCPN ?= "${PN}"
 
 DEPENDS_append = " update-rc.d-native"
-DEPENDS_append_class-target = " initscripts"
+VIRTUAL-RUNTIME_initscripts ?= "initscripts"
+DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
 UPDATERCD = "update-rc.d"
 UPDATERCD_class-cross = ""
 UPDATERCD_class-native = ""

Technically this isn't right either though - VIRTUAL-RUNTIME_initscripts is for the runtime package name not the recipe as is being added here. It just so happens that they are the same thing for initscripts.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw
Quoted 19 lines · Paul Eggleton

Hi Martin,

Quoted 16 lines · On Friday 06 June 2014 18:57:34 Martin Jansa wrote:

* until now all recipes were respecting VIRTUAL-RUNTIME_initscripts variable but commit bba835fed88c3bd5bb5bd58962034aef57c408d8 hardcoded "initscripts" runtime dependency

---
 meta/classes/update-rc.d.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta/classes/update-rc.d.bbclass index ca9486b..19b081d 100644

meta/classes/update-rc.d.bbclass +0 -0
@@ -1,7 +1,8 @@
 UPDATERCPN ?= "${PN}"
 
Quoted 11 lines

meta/classes/update-rc.d.bbclass line 8

Quoted 7 lines
meta/classes/update-rc.d.bbclass +2 -1
 DEPENDS_append = " update-rc.d-native"
-DEPENDS_append_class-target = " initscripts"
+VIRTUAL-RUNTIME_initscripts ?= "initscripts"
+DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
 UPDATERCD = "update-rc.d"
 UPDATERCD_class-cross = ""
 UPDATERCD_class-native = ""

Technically this isn't right either though - VIRTUAL-RUNTIME_initscripts is for the runtime package name not the recipe as is being added here. It just so happens that they are the same thing for initscripts.

Ah, you're right, I was blind when reading DEPENDS (I've even mentioned runtime dependency in commit message :/), sorry.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]