From patchwork Tue Feb 12 05:47:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 158095 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3445351jaa; Mon, 11 Feb 2019 21:48:20 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaoy32YExDkis8LboZ6hq7elSFEG+Wl8Bd9nlERGf11BvnNVU49X7HONvmd+DtrQDHpnGak X-Received: by 2002:a63:125a:: with SMTP id 26mr2090611pgs.314.1549950500801; Mon, 11 Feb 2019 21:48:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549950500; cv=none; d=google.com; s=arc-20160816; b=F0Z+FKXtBbO9jjah9eYBhg7tBo5SrmBI42+alv365upam9em80khKvqXMzHxIo4a+a FnmQ0k0oRrEcj2O4PYqSWMD76SVSMPjq6edcr38w86Oqpiq1DLbN0USlbotsYSTCnlZu 1l0RpdfghgfslSyIWGrSkcagp06orZWSb+myl1dlt9YWkJw86+oKzNskQvrLlkKBs9J7 /pNy1LP1czQwL0A9DWe5+nr+BzfYFCDCN0RxjHGoKnZKfE72g5mNDUJFZAFqGgbkaseJ 5MaGmiQPAX6iAquSTTNF+TmOV71JidCm3HLSk7t5dZiTjPI9Ri9jkG62tePtHuDq79YC 2mMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=UdIRcz5LF1JDHUbBndXZFqcNEc4wWMK+o1xMGBmYV+8=; b=bSNjXzeNS7fihjNH0zGddHCKyO/uw51z3oPFWQyVis22p6e2B4cQ5aBdmwaY81R0qD iBFpX3U+CD2/DlFeKCMMjT6J2H3MQYy4hOHF2nZW7j5zh2RGjyfhXCsCzMJiup3vBsPW S+m33F/5TCpyUNdYlwLALB/YVAu9prRSqLi1o4iRMitPZTnttW1dQdymxbYNTtIubOpY dnNHWBERqtYe2ew9xy7aD/cN7BXtVINKXQZ0KzlaYDDUUWCZs/mNOycjveRqZtQJUGKr qRwlzFHvKCmFSauX7SJtKagU/OeNsTZOfjfnLRZHIN8WfRNJNAQfPfrIxXQ4mUYRpZyL Bs/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LZPXsB3T; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id p1si12306741plk.260.2019.02.11.21.48.20; Mon, 11 Feb 2019 21:48:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=LZPXsB3T; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2D6317C48F; Tue, 12 Feb 2019 05:48:18 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 2BB646BF38 for ; Tue, 12 Feb 2019 05:48:00 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id g189so726797pgc.5 for ; Mon, 11 Feb 2019 21:48:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pPrWUhqEw4CtFMdMUz8OR0TgIP8L0gTgO7rzpuEuAwg=; b=LZPXsB3Tgo79YlDnjmkiFkhg0q+jLdzQ0KAVvMUYMKyYBMhKnaC9trR8uNhL5SaTxU z83ms8870llD21j9Ebh/QDVJia44AaKuMIA7UsHw+FkJwbqUd4LryuLG7r2gzbDRIres ZznWPifW0sXNxNMzP9Yeb3Vnj0M1DMddh9zFyfeDy3r0k9hLNh+48pLkqw5qsZu7TSzf CKd93+bhey+Epm6I4x5CVYfrkWUSVsxv647nPaicCey8iqP1mpgMNWFoRjuWyvP/aCW5 8pMlwzPcgZ5RUwSJinthdbGqHU2fuT+tuAausgxdlTnHAbG+t+g+hJiv7CkAxVqUCo0+ 4zVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pPrWUhqEw4CtFMdMUz8OR0TgIP8L0gTgO7rzpuEuAwg=; b=Io5KRRwrO1y1Oqja9GQFO1k+JKFQZGNkZ68Wx6hqIvGMHPY0845XoESp6Ex6o7Mb5C hrY9ykekfdt7zEtyHV/pvZikq+eUyFvhFOfhHmrl5nWHRFMK/AUIFE0YG8AYeUjibE7w yyu2mpeb7oP6ib2NQjmgGAuWdHQGBacECCvgJYTG4HqtGfXw3PadoJp1lHOFfGA9Fiox bklzCV/hkhJiwq2Mr/R7NLhYmacf3PwKyicGERhJm5PHwhnXADbgd+WiwdieiyBcMeQ3 VHfBEqMelorzA66Pl/+D3lXBPjhck0BYCAjqOZPTyzEiNq1jEqGbb4CkJ7dFgw0cf9Jo KLaA== X-Gm-Message-State: AHQUAua4SmLu9rl5zqIn0HBmTbV5lQlMtAtIGM6iIykT9QpGu5d4rHP4 6F9iXABQEHi2PvBZcedIaq7jCCc3 X-Received: by 2002:a65:6497:: with SMTP id e23mr2045643pgv.89.1549950481696; Mon, 11 Feb 2019 21:48:01 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8500:6bc6::dc44]) by smtp.gmail.com with ESMTPSA id b15sm2020017pfj.44.2019.02.11.21.48.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 21:48:01 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Mon, 11 Feb 2019 21:47:53 -0800 Message-Id: <20190212054754.2801-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190212054754.2801-1-raj.khem@gmail.com> References: <20190212054754.2801-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 2/3] libc-package.bbclass: Use install utility to create directories with right permissions 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Could fix issues where dirs with wrong permission is created with mkdir -p Signed-off-by: Khem Raj --- meta/classes/libc-package.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 0b4c666a74..34025635ce 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass @@ -61,7 +61,7 @@ LOCALETREESRC ?= "${PKGD}" do_prep_locale_tree() { treedir=${WORKDIR}/locale-tree rm -rf $treedir - mkdir -p $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${localedir} + install -d $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${localedir} tar -cf - -C ${LOCALETREESRC}${datadir} -p i18n | tar -xf - -C $treedir/${datadir} # unzip to avoid parsing errors for i in $treedir/${datadir}/i18n/charmaps/*gz; do