Fix post install script dependency 83/10883/7
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Wed, 13 Sep 2017 15:58:51 +0000 (17:58 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Fri, 15 Sep 2017 12:45:42 +0000 (12:45 +0000)
 * Since yocto pyro we need to declare PACKAGE_WRITE_DEPS, dependency
   for post install script
   http://www.yoctoproject.org/docs/2.3/mega-manual/mega-manual.html#var-PACKAGE_WRITE_DEPS

 * we alsa need to explicit exit 1 if post script failed

Bug-AGL: SPEC-646
Bug-AGL: SPEC-825

Change-Id: Ic15f8af884895fecacceb9886de5bebe591a2be0
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10883
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Reviewed-by: Thomas Rini <trini@konsulko.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-app-framework/recipes-core/af-main/af-main_1.0.bb
meta-app-framework/recipes-core/base-files/base-files_%.bbappend
meta-app-framework/recipes-core/security-manager/security-manager_%.bbappend

index 057f412..52a8fe2 100644 (file)
@@ -11,9 +11,11 @@ BBCLASSEXTEND = "native"
 
 SECTION = "base"
 
-DEPENDS = "openssl libxml2 xmlsec1 systemd libzip json-c systemd security-manager libcap-native af-binder"
+DEPENDS = "openssl libxml2 xmlsec1 systemd libzip json-c systemd security-manager af-binder"
 DEPENDS_class-native = "openssl libxml2 xmlsec1 libzip json-c"
 
+PACKAGE_WRITE_DEPS_append_smack = " smack-userspace-native libcap-native"
+
 EXTRA_OECMAKE_class-native  = "\
        -DUSE_LIBZIP=1 \
        -DUSE_SIMULATION=1 \
index 0e93b4d..271fe77 100644 (file)
@@ -1,5 +1,5 @@
-DEPENDS_append_smack = " smack-userspace-native"
 RDEPENDS_${PN}_append_smack = " smack-userspace"
+PACKAGE_WRITE_DEPS_append_smack = " smack-userspace-native"
 
 do_install_append() {
     install -d ${D}/${sysconfdir}/skel/app-data
index 23ceb29..bd1a43e 100644 (file)
@@ -1,5 +1,7 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/security-manager:"
 
+PACKAGE_WRITE_DEPS_append_smack = " smack-userspace-native"
+
 SRC_URI += " file://0001-Adapt-rules-to-AGL.patch \
             file://init-security-manager-db.service \
             file://init-security-manager-db.sh \