From patchwork Sat Aug 9 08:26:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 35180 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3243C2136C for ; Sat, 9 Aug 2014 08:27:05 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id m1sf27561625oag.7 for ; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=23zsgGM1GCnVzs1m7EmXx7AsOGyp1RW40WnMeP6DkZ8=; b=D8agKt5lvrgkiKWhIIQO+SYLTTtcqI2zCvb9SA8VNGqd5tn2441qIjzPm6tf7tCqWG VObWBdDvSPYv/BWBEfPKzPxTxEsyOgqG8d9R7oSpEz4PMoQKXu3OBgmAKHw3Q98sLyo2 /CaWGZzR6b7WTgOJWKdpAJ5FhJk23GuQkEKq28Guza84NNwhHVTFH/iCrh6IZn+X1K5G Z1iokNHkN9yZjfeRow0H3T2p6Ppy/0Kl7/3eIn7Bymv4usAPfpkP+V5+fSmm1ktThBhn 7sYWDLNozm3YW2HTcvMCwcq5qt5LzZJzAnN6IUvlgKnwEBUD6RJQCbyrFtjmsDbIs+Zv oOdA== X-Gm-Message-State: ALoCoQn1un43Ncc3tF5Ut3zlsN2KNAhHHpqZGQCMLPydWZTHWqqShxWLhQU6StR4RhBetbO0YWqv X-Received: by 10.42.85.142 with SMTP id q14mr7797760icl.16.1407572824745; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.49.83 with SMTP id p77ls763220qga.97.gmail; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) X-Received: by 10.220.74.195 with SMTP id v3mr25995512vcj.23.1407572824628; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id q7si3688211vcz.47.2014.08.09.01.27.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Aug 2014 01:27:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so9456554vcb.41 for ; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) X-Received: by 10.220.144.147 with SMTP id z19mr25873011vcu.26.1407572824504; Sat, 09 Aug 2014 01:27:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp15687vcb; Sat, 9 Aug 2014 01:27:03 -0700 (PDT) X-Received: by 10.70.131.199 with SMTP id oo7mr19906147pdb.95.1407572823507; Sat, 09 Aug 2014 01:27:03 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id yq7si7942755pac.112.2014.08.09.01.27.02 for ; Sat, 09 Aug 2014 01:27:03 -0700 (PDT) Received-SPF: none (google.com: openembedded-core-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id BC32B70A6B; Sat, 9 Aug 2014 08:26:58 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mail.openembedded.org (Postfix) with ESMTP id 3528165E2B for ; Sat, 9 Aug 2014 08:26:54 +0000 (UTC) Received: by mail-wi0-f177.google.com with SMTP id ho1so2020133wib.4 for ; Sat, 09 Aug 2014 01:26:55 -0700 (PDT) X-Received: by 10.180.11.148 with SMTP id q20mr9563679wib.56.1407572815635; Sat, 09 Aug 2014 01:26:55 -0700 (PDT) Received: from localhost ([2001:610:612:0:5e51:4fff:fec8:7c15]) by mx.google.com with ESMTPSA id ex4sm16478075wic.2.2014.08.09.01.26.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Aug 2014 01:26:54 -0700 (PDT) From: Koen Kooi To: openembedded-core@lists.openembedded.org Date: Sat, 9 Aug 2014 10:26:49 +0200 Message-Id: <1407572810-26063-1-git-send-email-koen.kooi@linaro.org> X-Mailer: git-send-email 1.9.3 Cc: Koen Kooi Subject: [OE-core] [PATCH 1/2] nssmyhostname: fix runtime dependencies X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: koen.kooi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 This should fix: 19:40 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 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 --- 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*\//' \ -e 's/\(^hosts:.*\)\(\\)\(.*\)\(\\)\(.*\)/\1\2 myhostname \3\4\5/' \