Skip to contentSkip to conversation

ca-certificates: support running update-ca-certificates during do_rootfs

PATCH In review Andreas Oberritter 2 participants 3 messages Mar 19, 2013 – Mar 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ca-certificates: support running update-ca-certificates during do_rootfs

---
 .../ca-certificates/ca-certificates-20130119.inc   |   15 ++++++
 .../ca-certificates-cross_20130119.bb              |   12 +++++
 .../0002-update-ca-certificates-use-SYSROOT.patch  |   56 ++++++++++++++++++++
 .../ca-certificates/ca-certificates_20130119.bb    |   20 ++-----
 4 files changed, 87 insertions(+), 16 deletions(-)
 create mode 100644 meta-oe/recipes-support/ca-certificates/ca-certificates-20130119.inc
 create mode 100644 meta-oe/recipes-support/ca-certificates/ca-certificates-cross_20130119.bb
 create mode 100644 meta-oe/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch
meta-oe/recipes-support/ca-certificates/ca-certificates-20130119.inc new file +15 -0
new file mode 100644
index 0000000..ac993bc
@@ -0,0 +1,15 @@
+DESCRIPTION = "Common CA certificates"
+HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
+SECTION = "misc"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://debian/copyright;md5=6135800ff6d893c7904d7aad90972eb5"
+PR = "r1"
+
+SRC_URI = "${DEBIAN_MIRROR}/main/c/ca-certificates/ca-certificates_${PV}.tar.gz \
+           file://0001-update-ca-certificates-remove-c-rehash.patch \
+           file://0002-update-ca-certificates-use-SYSROOT.patch"
+
+SRC_URI[md5sum] = "1fbbec2028a33cf865b79c204aa2e626"
+SRC_URI[sha256sum] = "fb51ec9a2c551838cc1646a0b3c9e6bea5c1bb20ff5d71c542451fac4b191c22"
+
+inherit allarch
meta-oe/recipes-support/ca-certificates/ca-certificates-cross_20130119.bb new file +12 -0
new file mode 100644
index 0000000..8e344fd
@@ -0,0 +1,12 @@
+require ca-certificates-${PV}.inc
+
+do_install() {
+        install -d ${D}${bindir_crossscripts}
+        install -m755 ${S}/sbin/update-ca-certificates ${D}${bindir_crossscripts}
+}
+
+SYSROOT_PREPROCESS_FUNCS += "ca_certificates_sysroot_preprocess"
+
+ca_certificates_sysroot_preprocess() {
+        sysroot_stage_dir ${D}${bindir_crossscripts} ${SYSROOT_DESTDIR}${bindir_crossscripts}
+}
meta-oe/recipes-support/ca-certificates/ca-certificates/0002-update-ca-certificates-use-SYSROOT.patch new file +56 -0

56 lines not on this page · raw message

meta-oe/recipes-support/ca-certificates/ca-certificates_20130119.bb +4 -16
index 5ad4485..a1eb1c4 100644
@@ -1,16 +1,8 @@
-DESCRIPTION = "Common CA certificates"
-HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
-SECTION = "misc"
-LICENSE = "GPLv2+"
-LIC_FILES_CHKSUM = "file://debian/copyright;md5=6135800ff6d893c7904d7aad90972eb5"
+DEPENDS = "ca-certificates-cross"
 
-SRC_URI = "${DEBIAN_MIRROR}/main/c/ca-certificates/ca-certificates_${PV}.tar.gz \
-           file://0001-update-ca-certificates-remove-c-rehash.patch"
+require ca-certificates-${PV}.inc
 
-SRC_URI[md5sum] = "1fbbec2028a33cf865b79c204aa2e626"
-SRC_URI[sha256sum] = "fb51ec9a2c551838cc1646a0b3c9e6bea5c1bb20ff5d71c542451fac4b191c22"
-
-inherit autotools allarch
+inherit autotools
 
 do_install_prepend() {
         mkdir -p ${D}/usr/share/ca-certificates
@@ -32,11 +24,7 @@ do_install_append() {
 }
 
 pkg_postinst_${PN} () {
-if [ -n "$D" ] ; then
-	exit 1
-fi
-
-${sbindir}/update-ca-certificates
+SYSROOT="$D" update-ca-certificates
 }
 
 CONFFILES_${PN} = "/etc/ca-certificates.conf"
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 2/2 layer.conf: add ca-certificates to SIGGEN_EXCLUDERECIPES_ABISAFE

---
 meta-oe/conf/layer.conf |    1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/layer.conf +1 -0
index b8a53d2..68f7823 100644
@@ -29,4 +29,5 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   fbset-modes \
   gpsd-machine-conf \
   distro-feed-configs \
+  ca-certificates \
 "
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [meta-oe][PATCH 2/2] layer.conf: add ca-certificates to SIGGEN_EXCLUDERECIPES_ABISAFE

Quoted 1 line · Andreas Oberritter

Both applied, thanks!

Quoted 22 lines
---
 meta-oe/conf/layer.conf |    1 +
 1 file changed, 1 insertion(+)
meta-oe/conf/layer.conf +1 -0
index b8a53d2..68f7823 100644
@@ -29,4 +29,5 @@ SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   fbset-modes \
   gpsd-machine-conf \
   distro-feed-configs \
+  ca-certificates \
 "
Signature · 7 lines
1.7.10.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]