Sincerely yours,Byelozyorov Sergiy
In my experience I had better luck with msys-git if I avoided its
shell and environment settings.
Instead, I just made a "git.cmd" elsewhere in my path that called the
msysgit git.cmd via its full path.
Chromium checkout on windows includes a cygwin copy to have bison, yacc and others. User's cygwin normally don't interfere since we use batch file which shells out cmd.exe appropriately but having msys-git hooks into cmd's PATH. So just don't do that or send patches to fix your specific use case.
In my experience I had better luck with msys-git if I avoided its shell and environment settings. Instead, I just made a "git.cmd" elsewhere in my path that called the msysgit git.cmd via its full path.
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
cygwin provides many helper binaries (sed, awk, m4, etc.) and puts
them into your PATH.
msysgit provides the same helper binaries, which behave slightly
differently. If you put them into your PATH things can get confused.
>> In my experience I had better luck with msys-git if I avoided its shell
>> and environment settings. Instead, I just made a "git.cmd" elsewhere in my
>> path that called the msysgit git.cmd via its full path.
>
> Do you suggest to use a batch that will start the build? Or did I
> misunderstand you?
1) uninstall msysgit
2) install msysgit, pick the install option that says "don't add to PATH"
3) make it so you can still run "git" from a command prompt by adding
a forwarding batch file in your path; depends on whether you use cmd
(in which case you want to make git.cmd) or cygwin (in which case you
can symlink from /usr/local/bin I think)
cygwin provides many helper binaries (sed, awk, m4, etc.) and putsthem into your PATH.
msysgit provides the same helper binaries, which behave slightly
differently. If you put them into your PATH things can get confused.
>> In my experience I had better luck with msys-git if I avoided its shell1) uninstall msysgit
>> and environment settings. Instead, I just made a "git.cmd" elsewhere in my
>> path that called the msysgit git.cmd via its full path.
>
> Do you suggest to use a batch that will start the build? Or did I
> misunderstand you?
2) install msysgit, pick the install option that says "don't add to PATH"
3) make it so you can still run "git" from a command prompt by adding
a forwarding batch file in your path; depends on whether you use cmd
(in which case you want to make git.cmd) or cygwin (in which case you
can symlink from /usr/local/bin I think)
The longest answer is that you could probably send a patch to have the m4 and other wrapper .bat files to fix the PATH to make sure to call the expected executable or to use relative paths when shelling out bison and friends instead of calling without path, .e.g use
..\third_party\cygwin\bin\bison foo
instead of:
set PATH=%PATH%;..\third_party\cygwin\bin\
bison foo
I am missing something. You wrote:
1) that only git and gitk are installed into the path
2) that you get all msysgit tools in your path because of the msysgit shell
It seems that you already had the tools you needed in PATH alrady, so
I'm not sure why you need the msysgit shell.
> Unfortunately I can't avoid this as our build system runs in msysgit. I have
> tried assigning PATH an empty value before running devenv.com, but it still
> fails for some reason. How can I output PATH environment variable from the
> Python script?
import os
print os.environ
print os.environ['PATH']
> Where should I place such batch files, so they are called instead of msysgit
> binaries?
I dunno, somewhere else in your path. c:\windows I guess. It's been
a long time since I last touched it.
> P.S. What does "shell out" means?
Sorry. http://www.catb.org/jargon/html/S/shell-out.html
I wasn't using it in the right way anyway. I just meant "run".
On Thu, Oct 28, 2010 at 3:21 AM, Sergiy Byelozyorov <rryk.ua@gmail.com> wrote:I am missing something. You wrote:
> My msysgit version (1.7.0.2) has this solution as one of the options during
> the install. I've never installed entire toolkit into the PATH, but only git
> and gitk that are executed via batch files that are created by the installer
> and registered in PATH automatically. Nevertheless msysgit tools get into
> the PATH, becase I am starting build from inside msysgit shell.
1) that only git and gitk are installed into the path
2) that you get all msysgit tools in your path because of the msysgit shell
It seems that you already had the tools you needed in PATH alrady, so
I'm not sure why you need the msysgit shell.
> Unfortunately I can't avoid this as our build system runs in msysgit. I have
> tried assigning PATH an empty value before running devenv.com, but it still
> fails for some reason. How can I output PATH environment variable from the
> Python script?
import os
print os.environ
print os.environ['PATH']
> Where should I place such batch files, so they are called instead of msysgitI dunno, somewhere else in your path. c:\windows I guess. It's been
> binaries?
a long time since I last touched it.