]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
initscripts: add initscripts-functions-dev package ChenQi/initscripts-functions-rework
authorChen Qi <Qi.Chen@windriver.com>
Thu, 23 Jan 2014 11:54:23 +0000 (06:54 -0500)
committerChen Qi <Qi.Chen@windriver.com>
Thu, 23 Jan 2014 12:09:27 +0000 (20:09 +0800)
Add initscripts-functions-dev package to avoid initscripts package
being installed unexpected via the dependency of initscripts-dev package.

Before this patch, if we have 'dev-pkgs' in IMAGE_FEATURES, the initscripts
package would be installed once the initscripts-functions package is installed,
which is not what we need.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/recipes-core/initscripts/initscripts_1.0.bb

index d1644a3204fbcdd4fac9e116798d2bdf28fd1cac..db310a630db52c96ed529c5dd07bb0ab09e00d14 100644 (file)
@@ -42,9 +42,11 @@ KERNEL_VERSION = ""
 inherit update-alternatives
 DEPENDS_append = " update-rc.d-native"
 
-PACKAGES =+ "${PN}-functions"
+PACKAGES =+ "${PN}-functions ${PN}-functions-dev"
 RDEPENDS_${PN} = "${PN}-functions"
 FILES_${PN}-functions = "${sysconfdir}/init.d/functions*"
+RDEPENDS_${PN}-functions-dev += "${PN}-functions"
+ALLOW_EMPTY_${PN}-functions-dev = "1"
 
 ALTERNATIVE_PRIORITY_${PN}-functions = "90"
 ALTERNATIVE_${PN}-functions = "functions"