git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Edua Vioz <eltipejoloco@gmail.com>
To: paul@mad-scientist.net
Cc: eltipejoloco@gmail.com, git@vger.kernel.org
Subject: Re: Questions about Git-Gui Makefile and GNU File Name and Text Functions
Date: Wed, 3 Jun 2020 14:45:40 -0500	[thread overview]
Message-ID: <CAGiZ90mZp5sKFBwFr5M4Zm2Z0GCWG=hCQuEUqKOLS0toO=x80A@mail.gmail.com> (raw)

On Wed, 2020-06-03 at 14:34 UTC, Paul Smith wrote:
>I'm not super-familiar with the Git build system so maybe there are
>mitigations for this there but: GNU make always treats whitespace as a
>word separator so it will apply the "dir" function to each word.  So:
>
>>$(dir C:/Program Files/Git/mingw64/libexec/git-core)
>
>is equivalent to writing:
>
>>$(dir C:/Program) $(dir Files/Git/mingw64/libexec/git-core)
>
>and the expected result is:
>
>>C:/ Files/Git/mingw64/libexec

Yeah, I figured that was the case after skimming over GNU make
reference sites online and reading as much. Still, I figured I'd ask in case
Git or Git Bash specifically had been built to account for this in Git for
Windows, or if anything had changed since the documentation I'd read
had been written.

>No.  Make in general, and GNU make in particular, doesn't expect to be
>given paths with whitespace in them.
>
>Again I'm not an expert in the Git build system but my understanding is
>that the install can be relocatable: in that case I recommend you build
>it into a location where there is no whitespace in the path, then move
>it wherever you like after building.

Ideally, yes. However, Git-Gui's Makefile was not written with this in mind.
It will append directories to DEST during installation that can (and do)
include drive letters. Again, the file can be modified to fix this on a case
by case basis, but ideally I wanted to learn if this was all already known
about this particular Makefile and if it was expected behavior.

I've actually already modified my copy of Git-Gui's Makefile to account
for whitespaces since I first wrote about it to the mailing list, but since I
suspect that it was automatically generated by software, I'd rather
learn if the tool responsible is open source and could be modified to
account for spaces in directory and file names instead of manually
fixing up every automated Makefile for each repository Windows users
come across until the tool is changed or no longer in use.

If I were to share it, should the patch by submit to a new e-mail thread,
or would it be fine to send it in as a reply to this one using the --in-reply-to
argument in git?

Thanks in advance for your time.

             reply	other threads:[~2020-06-03 19:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-03 19:45 Edua Vioz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-06-03  7:56 Questions about Git-Gui Makefile and GNU File Name and Text Functions Edua Vioz
2020-06-03 14:34 ` Paul Smith

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

  List information: http://vger.kernel.org/majordomo-info.html

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

  git send-email \
    --in-reply-to='CAGiZ90mZp5sKFBwFr5M4Zm2Z0GCWG=hCQuEUqKOLS0toO=x80A@mail.gmail.com' \
    --to=eltipejoloco@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=paul@mad-scientist.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).