diff options
authorAlexander Kanavin <>2018-03-15 13:27:06 +0200
committerRichard Purdie <>2018-03-26 15:06:25 +0100
commit31f69f8fd8a08fadee0ea288214aa33c33ad6912 (patch)
parent39202a1d0714e91dff6c18b1043fd236df25434f (diff)
ca-certificates: run postinst script only for -target package
Nativesdk package has a special arrangement where the same thing is done in do_install(). It was assumed (in the comment) that postinsts don't run when installing nativesdk packages, but this was incorrect: they are run, but any failures were previously silently ignored. Now this missing failure reporting has been fixed, and so we get to see the failures. (From OE-Core rev: 8ebb695c1429f8d57d655072a362a4f176258699) Signed-off-by: Alexander Kanavin <> Signed-off-by: Ross Burton <> Signed-off-by: Richard Purdie <> Signed-off-by: Armin Kuster <>
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-support/ca-certificates/ b/meta/recipes-support/ca-certificates/
index 7d59fa6374..e4ffbd34d5 100644
--- a/meta/recipes-support/ca-certificates/
+++ b/meta/recipes-support/ca-certificates/
@@ -64,13 +64,14 @@ do_install_append_class-target () {
-pkg_postinst_${PN} () {
+pkg_postinst_${PN}_class-target () {
SYSROOT="$D" $D${sbindir}/update-ca-certificates
CONFFILES_${PN} += "${sysconfdir}/ca-certificates.conf"
-# Postinsts don't seem to be run for nativesdk packages when populating SDKs.
+# Rather than make a postinst script that works for both target and nativesdk,
+# we just run update-ca-certificate from do_install() for nativesdk.
CONFFILES_${PN}_append_class-nativesdk = " ${sysconfdir}/ssl/certs/ca-certificates.crt"
do_install_append_class-nativesdk () {
SYSROOT="${D}${SDKPATHNATIVE}" ${D}${sbindir}/update-ca-certificates