All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro Yamada <yamada.masahiro@socionext.com>
To: "Bjørn Forsman" <bjorn.forsman@gmail.com>
Cc: Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	Michal Marek <mmarek@suse.com>,
	Jan Kiszka <jan.kiszka@siemens.com>,
	Kieran Bingham <kieran@ksquared.org.uk>
Subject: Re: [PATCH] kbuild: /bin/pwd -> pwd
Date: Thu, 17 Aug 2017 00:31:22 +0900	[thread overview]
Message-ID: <CAK7LNATj+oidNg_FTpa57BfUK=kBNhHzs8wdbobCFbQaagV2RA@mail.gmail.com> (raw)
In-Reply-To: <CAEYzJUEgX4+1b0c8jqC7TALWZkKqLiqE0HMvB1zqHrEfv9yEEg@mail.gmail.com>

Hi.


2017-08-12 21:00 GMT+09:00 Bjørn Forsman <bjorn.forsman@gmail.com>:
> Hi,
>
> On 12 August 2017 at 05:26, Masahiro Yamada
> <yamada.masahiro@socionext.com> wrote:
>> Hi.
>>
>> 2017-07-24 23:20 GMT+09:00 Bjørn Forsman <bjorn.forsman@gmail.com>:
>>> Several places already use pwd and rely on $PATH lookup. Moving the
>>> remaining /bin/pwd users over for consistency.
>>>
>>> Also, a reason for doing /bin/pwd -> pwd instead of the other way around
>>> is because I believe build systems should make little assumptions on host
>>> filesystem layout. Case in point, we do this kind of patching already in
>>> NixOS.
>> [...]
>> Could you use $(abspath ...) instead of $(shell cd ... && /bin/pwd) ?
>> [...]
>> This one should use $(realpath ...) instead of $(abspath ...), I think.
>>
>> The difference between them is that
>> $(realpath ...) returns an empty string if the given path does not exist.
>
> That sounds like possibly changing semantics. I'd prefer to keep the
> patch as is, since I'm not familiar with the side effects of inserting
> relative vs absolute paths here. Is that OK for you?
>

I prefer abspath/realpath.

If you are reluctant to do it, I will take a look.



-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2017-08-16 15:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 14:20 [PATCH] kbuild: /bin/pwd -> pwd Bjørn Forsman
2017-08-12  3:26 ` Masahiro Yamada
2017-08-12 12:00   ` Bjørn Forsman
2017-08-16 15:31     ` Masahiro Yamada [this message]
2017-08-16 16:14       ` Bjørn Forsman
2017-11-05  9:44 Bjørn Forsman
2017-11-18  2:35 ` Masahiro Yamada

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='CAK7LNATj+oidNg_FTpa57BfUK=kBNhHzs8wdbobCFbQaagV2RA@mail.gmail.com' \
    --to=yamada.masahiro@socionext.com \
    --cc=bjorn.forsman@gmail.com \
    --cc=jan.kiszka@siemens.com \
    --cc=kieran@ksquared.org.uk \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=mmarek@suse.com \
    /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.