From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mail.openembedded.org (Postfix) with ESMTP id 382886F249 for ; Wed, 26 Feb 2014 13:51:37 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 26 Feb 2014 05:51:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,548,1389772800"; d="scan'208";a="490107710" Received: from unknown (HELO localhost.localdomain) ([10.255.12.179]) by orsmga002.jf.intel.com with ESMTP; 26 Feb 2014 05:51:37 -0800 From: Saul Wold To: openembedded-core@lists.openembedded.org Date: Wed, 26 Feb 2014 15:51:31 +0200 Message-Id: <1393422692-28184-2-git-send-email-sgw@linux.intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1393422692-28184-1-git-send-email-sgw@linux.intel.com> References: <1393422692-28184-1-git-send-email-sgw@linux.intel.com> Subject: [PATCH 2/3] base-passwd: sed installed file instead of original X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Feb 2014 13:51:37 -0000 When we change the ROOT_HOME the sed regex does not match if we are running the do_install() a second time, so sed the installed file and preserve the original so that the sed regex is matched correctly in the original [YOCTO #5765] Signed-off-by: Saul Wold --- meta/recipes-core/base-passwd/base-passwd_3.5.29.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb index 0205f2e..59bd413 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.29.bb @@ -28,8 +28,8 @@ do_install () { ${D}${mandir}/pl/man8/update-passwd.8 gzip -9 ${D}${mandir}/man8/* ${D}${mandir}/pl/man8/* install -d -m 755 ${D}${datadir}/base-passwd - sed -i 's#:/root:#:${ROOT_HOME}:#' ${S}/passwd.master install -o root -g root -p -m 644 ${S}/passwd.master ${D}${datadir}/base-passwd/ + sed -i 's#:/root:#:${ROOT_HOME}:#' ${D}${datadir}/base-passwd/passwd.master install -o root -g root -p -m 644 ${S}/group.master ${D}${datadir}/base-passwd/ install -d -m 755 ${D}${docdir}/${BPN} -- 1.8.3.1