[OE-core] [PATCH] ca-certificates: move update-ca-certificates into separate package

Pascal Bach pascal.bach at siemens.com
Thu Oct 12 14:31:39 UTC 2017


This allows using the script in with an other certificate bundle even if
the user doesn't need all the certificates.

The scripts are still installed when the ca-certificates is installed
as it RDEPENDS ca-certificates-scripts.

Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
---
 meta/recipes-support/ca-certificates/ca-certificates_20170717.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb b/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb
index 59e7d51..0413762 100644
--- a/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb
+++ b/meta/recipes-support/ca-certificates/ca-certificates_20170717.bb
@@ -79,6 +79,10 @@ do_install_append_class-native () {
     SYSROOT="${D}${base_prefix}" ${D}${sbindir}/update-ca-certificates
 }
 
-RDEPENDS_${PN} += "openssl"
+# This contains only the update script to be used without custom certificates
+PACKAGES =+ "${PN}-scripts"
+FILES_${PN}-scripts = "${sbindir}/ ${sysconfdir}/ca-certificates"
+RDEPENDS_${PN}-scripts += "openssl"
+RDEPENDS_${PN} += "${PN}-scripts"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.1.4




More information about the Openembedded-core mailing list