Project

General

Profile

Actions

Bug #13445

closed

MinGW, GIT, revision.h, vcs.rb

Bug #13445: MinGW, GIT, revision.h, vcs.rb

Added by MSP-Greg (Greg L) over 8 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-04-17 trunk 58383) [x64-mingw32]
[ruby-core:80741]

Description

When generating a MinGW build from a local repo, the revision.h file does not exist, and is create by tool/file2lastrev.rb which requires tool/vcs.rb.

On windows/MinGW, one often needs to specify a git.exe location, which can be done using the --with-git= configure option, created via win32/configure.bat. This setting is not picked up via vcs.rb.

See GitHub PR #1557

Adds the following code to the top of vcs.rb

# If specified in configure options, adds git location to PATH for MinGW builds
if (t = ENV['GIT']) && File.exist?(t)
  ENV['PATH'] = "#{File.dirname(t)}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
end

Updated by MSP-Greg (Greg L) over 8 years ago Actions #1 [ruby-core:80742]

PR is 1587, but link is correct...

Updated by MSP-Greg (Greg L) over 8 years ago Actions #2 [ruby-core:80752]

Please close.

I fixed the issue based on looking into tool/vsc.rb only where my error was.

Nobu fixed the issue based on everywhere in the file it should be changed. See svn 58387 or commit 2103197

Thank you.

Updated by hsbt (Hiroshi SHIBATA) over 8 years ago Actions #3

  • Status changed from Open to Closed
Actions

Also available in: PDF Atom