From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] build: fix umask test
Date: Tue, 31 May 2016 12:24:53 +0200 [thread overview]
Message-ID: <87pos2zfre.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <20160531095913.GA27305@airbook> (Kurt Van Dijck's message of "Tue, 31 May 2016 11:59:13 +0200")
>>>>> "Kurt" == Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be> writes:
>> > --- a/Makefile
>> > +++ b/Makefile
>> > @@ -26,7 +26,7 @@
>> >
>> > # Trick for always running with a fixed umask
>> > UMASK = 0022
>> > -ifneq ($(shell umask),$(UMASK))
>> > +ifneq (00$(shell umask | sed -e "s/^0*//g"),$(UMASK))
>>
>> Doesn't this makes the assumption that "umask" will always return a
>> value that starts with two zeros ?
> No.
> the "umask | sed -e ..." strips leading 0's, when present.
> "00$(...)" glues 00 in front of the stripped umask, so it is compatible
> again.
True. I still think moving the SHELL= line to the very top of the file
is a safer/cleaner approach, so the same shell is used everywhere in
Buildroot.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2016-05-31 10:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-31 7:46 [Buildroot] [PATCH v2] build: fix umask test Kurt Van Dijck
2016-05-31 9:53 ` Thomas Petazzoni
2016-05-31 9:59 ` Kurt Van Dijck
2016-05-31 10:24 ` Peter Korsgaard [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-06-19 4:12 Kurt Van Dijck
2016-06-20 20:51 ` Peter Korsgaard
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=87pos2zfre.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@busybox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.