[oe] [PATCH 1/2] ca-certificates: unbreak do_configure of packages depending on ca-bundle.pem

Steffen Sledz sledz at dresearch.de
Wed Oct 20 11:10:06 UTC 2010


just create an empty ca-bundle file to satisfy build time
dependencies in do_configure of other packages (e.g. epiphany),
content is updated later in postinst

Signed-off-by: Steffen Sledz <sledz at dresearch.de>
---
 .../ca-certificates_20090814+nmu2.bb               |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/recipes/ca-certificates/ca-certificates_20090814+nmu2.bb b/recipes/ca-certificates/ca-certificates_20090814+nmu2.bb
index c8e4dbd..a37b01a 100644
--- a/recipes/ca-certificates/ca-certificates_20090814+nmu2.bb
+++ b/recipes/ca-certificates/ca-certificates_20090814+nmu2.bb
@@ -3,6 +3,7 @@ HOMEPAGE = "http://packages.debian.org/sid/ca-certificates"
 SECTION = "misc"
 PRIORITY = "optional"
 LICENSE = "GPL"
+PR = "r1"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/c/ca-certificates/ca-certificates_${PV}.tar.gz \
            file://remove-c-rehash.patch"
@@ -27,13 +28,21 @@ do_install_append() {
                 crt=$(echo $crt | sed -e 's/\.\///')
                 echo $crt >> ${D}/etc/ca-certificates.conf
         done
+
+	# update-ca-certificates is not able to deal with pathes,
+	# so just create an empty ca-bundle file to satisfy build time
+	# dependencies in do_configure of other packages (e.g. epiphany),
+	# content is updated later (see pkg_postinst)
+	touch ${D}/etc/ssl/ca-bundle.pem
 }
 
 PACKAGE_ARCH = "all"
 PACKAGES = "${PN}"
 
 pkg_postinst_${PN} () {
+if test -z "$D"; then
         /usr/sbin/update-ca-certificates
+fi
 }
 
 CONFFILES_${PN} = "/etc/ca-certificates.conf"
-- 
1.7.1





More information about the Openembedded-devel mailing list