Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/3] libc-package.bbclass: Use install utility to create directories with right permissions
Date: Mon, 11 Feb 2019 21:47:53 -0800	[thread overview]
Message-ID: <20190212054754.2801-2-raj.khem@gmail.com> (raw)
In-Reply-To: <20190212054754.2801-1-raj.khem@gmail.com>

Could fix issues where dirs with wrong permission is created with mkdir -p

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/classes/libc-package.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 
-- 
2.20.1



  reply	other threads:[~2019-02-12  5:48 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-12  5:47 [PATCH 1/3] busybox: Remove PN from rdeps of PN-dev Khem Raj
2019-02-12  5:47 ` Khem Raj [this message]
2019-02-12  5:47 ` [PATCH v3 3/3] image_types.bbclass: Set memory usage limit and CPU threads for xz Khem Raj
2019-02-15 13:44   ` Otavio Salvador
2019-02-15 19:58     ` Khem Raj
2019-02-12 15:58 ` [PATCH 1/3] busybox: Remove PN from rdeps of PN-dev Burton, Ross
2019-02-12 19:04   ` Khem Raj
2019-02-15 15:01     ` Khem Raj
2019-02-15 16:04       ` Richard Purdie
2019-02-15 19:43         ` Khem Raj
2019-02-12 17:26 ` Richard Purdie
2019-02-12 18:59   ` Khem Raj
  -- strict thread matches above, loose matches on Subject: below --
2019-02-14  6:05 [PATCH 2/3] libc-package.bbclass: Use install utility to create directories with right permissions Peter Kjellerstedt
2019-02-14 15:56 ` Khem Raj
2019-02-17 15:04   ` Peter Kjellerstedt
2019-02-17 19:52     ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190212054754.2801-2-raj.khem@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox