Skip to content

Commit

Permalink
Update git version to latest 2.10.2
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Hain <shain@chef.io>
  • Loading branch information
scotthain committed Nov 3, 2016
1 parent e2d960d commit e247e36
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/software/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#

name "git"
default_version "2.8.2"
default_version "2.10.2"

license "LGPL-2.1"
license_file "LGPL-2.1"
Expand All @@ -30,6 +30,10 @@

relative_path "git-#{version}"

version "2.10.2" do
source md5: "45e8b30a9e7c1b734128cc0fc6663619"
end

version "2.8.2" do
source md5: "3022d8ebf64b35b9704d5adf54b256f9"
end
Expand Down Expand Up @@ -117,6 +121,9 @@
# old style -R for libraries and as a result, xlc will ignore it. In this case, we
# we want that to happen because we explicitly set the libpath with the correct
# command line argument in omnibus itself.
if version.satisfies?(">=2.10.2")
config_hash["NO_REGEX"] = "NeedsStartEnd"
end

This comment has been minimized.

Copy link
@avar

avar May 3, 2017

I'm a developer on the git project who's worked on code related to this feature. This looks like you're overriding the libc regex library in some generic chef recipe, e.g. if this is distributed to Linux systems it's needlessly skipping using the glibc regex implementation, which is generally better than the compat engine shipped with git which this'll invoke. Are you sure you want to do that?

This comment has been minimized.

Copy link
@thommay

thommay May 3, 2017

Contributor

This is only invoked on AIX, which presumably lacks the necessary bits in its libc to enable this feature. Linux features are in the else block below.
Thanks for your review and the helpful note, though!

This comment has been minimized.

Copy link
@avar

avar May 3, 2017

Ah yes, sorry about the drive-by-noise. I missed the elsif aix? part just above that when skimming this. Yeah AIX one of the platforms that needs this.

I'll submit a patch to git itself to make this the default on AIX.

This comment has been minimized.

This comment has been minimized.

Copy link
@thommay

thommay May 3, 2017

Contributor

Awesome! 👍

This comment has been minimized.

Copy link
@scotthain

scotthain May 3, 2017

Author

Thank you @avar !!! this is great.

else
# Linux things!
config_hash["HAVE_PATHS_H"] = "YesPlease"
Expand Down

0 comments on commit e247e36

Please sign in to comment.