This should fix:

19:40 <fabo> ERROR: Unable to install packages. Command 
'/mnt/ci_build/workspace/tmp/sysroots/x86_64-linux/usr/bin/opkg-cl -f 
/mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/opkg.conf
 -o
             
/mnt/ci_build/workspace/tmp/work/genericarmv8-oe-linux/linaro-image-minimal/1.0-r0/rootfs
 --force_postinstall --prefer-arch-to-version   install opkg-collateral stress 
libnss-myhostname2 run-postinsts auto-serial-console
             util-linux-fsck stress-dbg packagegroup-co
19:41 <fabo> sed: can't read 
/mnt/ci_build/workspace/tmp/work/aarch64-oe-linux/nss-myhostname/0.3-r0/image/etc/nsswitch.conf:
 No such file or directory

Signed-off-by: Koen Kooi <koen.k...@linaro.org>
---
 meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb 
b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
index d8ec863..b9ddeaf 100644
--- a/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
+++ b/meta/recipes-support/nss-myhostname/nss-myhostname_0.3.bb
@@ -13,6 +13,9 @@ SRC_URI[sha256sum] = 
"2ba744ea8d578d1c57c85884e94a3042ee17843a5294434d3a7f6c4d67
 
 inherit autotools
 
+# /etc/nsswitch.conf needs to be present
+RDEPENDS_${PN} = "base-files"
+
 pkg_postinst_${PN} () {
        sed -e '/^hosts:/s/\s*\<myhostname\>//' \
                -e 's/\(^hosts:.*\)\(\<files\>\)\(.*\)\(\<dns\>\)\(.*\)/\1\2 
myhostname \3\4\5/' \
-- 
1.9.3

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to