[PATCH 3/3] configure.ac: check for HMAC_CTX_cleanup

2015-01-08 Thread Reuben Hawkins
OpenSSL version 0.9.6b and before defined the function HMAC_cleanup. Newer versions define HMAC_CTX_cleanup. Check for HMAC_CTX_cleanup and fall back to HMAC_cleanup when the newer function is missing. Signed-off-by: Reuben Hawkins reuben...@gmail.com --- Makefile | 6

[PATCH 1/3] configure.ac: check 'tv_nsec' field in 'struct stat'

2015-01-08 Thread Reuben Hawkins
Detect 'tv_nsec' field in 'struct stat' and set Makefile variable NO_NSEC appropriately. A side-effect of the above detection is that we also determine whether 'stat.st_mtimespec' is available, so, as a bonus, set the Makefile variable USE_ST_TIMESPEC, as well. Signed-off-by: Reuben Hawkins

[PATCH 2/3] configure.ac: check for clock_gettime and CLOCK_MONOTONIC

2015-01-08 Thread Reuben Hawkins
The checks will override and unset YesPlease settings for HAVE_CLOCK_GETTIME and HAVE_CLOCK_MONOTONIC in config.mak.uname. CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. Signed-off-by: Reuben Hawkins reuben...@gmail.com --- Makefile

v2 patches for fixes on RHEL3

2015-01-07 Thread Reuben Hawkins
These patches add a few autoconfig checks for nanosecond resolution fields in struct stat, CLOCK_MONOTONIC, and HMAC_CTX_cleanup. I'm fairly sure I've fixed the concerns/doubts the first set of patched raised. (I rarely use git-send-email so forgive me if I botch this) -- To unsubscribe from

[PATCH 2/3] configure.ac: check for clock_gettime and CLOCK_MONOTONIC

2015-01-07 Thread Reuben Hawkins
CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. This change makes compiling git less tedious on older platforms without CLOCK_MONOTONIC. --- Makefile | 4 config.mak.uname | 1 + configure.ac | 22 ++

[PATCH 3/3] configure.ac: check for HMAC_CTX_cleanup

2015-01-07 Thread Reuben Hawkins
OpenSSL version 0.9.6b and before defined the function HMAC_cleanup. Newer versions define HMAC_CTX_cleanup. Check for HMAC_CTX_cleanup and fall back to HMAC_cleanup when the newer function is missing. --- Makefile | 3 +++ configure.ac | 7 +++ git-compat-util.h | 3 +++ 3

[PATCH 1/3] configure.ac: check tv_nsec field in struct stat

2015-01-07 Thread Reuben Hawkins
This check will automatically set the correct NO_NSEC setting. --- configure.ac | 12 1 file changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index 6af9647..dcc4bf0 100644 --- a/configure.ac +++ b/configure.ac @@ -754,6 +754,18 @@ AC_CHECK_TYPES([struct itimerval],

Re: [PATCH 1/3] configure.ac: check tv_nsec field in struct stat

2015-01-07 Thread Reuben Hawkins
On Wed, Jan 7, 2015 at 1:19 PM, Eric Sunshine sunsh...@sunshineco.com wrote: On Wed, Jan 7, 2015 at 3:23 PM, Reuben Hawkins reuben...@gmail.com wrote: This check will automatically set the correct NO_NSEC setting. This commit message neglects to mention the important point that you're also

Re: [PATCH 2/3] configure.ac: check for clock_gettime and CLOCK_MONOTONIC

2015-01-07 Thread Reuben Hawkins
On Wed, Jan 7, 2015 at 1:37 PM, Eric Sunshine sunsh...@sunshineco.com wrote: On Wed, Jan 7, 2015 at 3:23 PM, Reuben Hawkins reuben...@gmail.com wrote: CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. This change makes compiling git less

Re: [PATCH 1/3] configure.ac: check tv_nsec field in struct stat

2015-01-07 Thread Reuben Hawkins
On Wed, Jan 7, 2015 at 1:19 PM, Eric Sunshine sunsh...@sunshineco.com wrote: On Wed, Jan 7, 2015 at 3:23 PM, Reuben Hawkins reuben...@gmail.com wrote: This check will automatically set the correct NO_NSEC setting. This commit message neglects to mention the important point that you're also

Re: [PATCH 2/3] configure.ac,trace.c: check for CLOCK_MONOTONIC

2014-12-22 Thread Reuben Hawkins
On Sun, Dec 21, 2014 at 8:12 PM, brian m. carlson sand...@crustytoothpaste.net wrote: On Sun, Dec 21, 2014 at 10:53:35AM -0800, Reuben Hawkins wrote: CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. This change makes compiling git less

[PATCH 3/3] configure.ac,imap-send.c: check HMAC_CTX_cleanup

2014-12-21 Thread Reuben Hawkins
Older versions of OpenSSL have HMAC_cleanup, but not HMAC_CTX_cleanup. This change checks for both, uses HMAC_CTX_cleanup on platforms which have it, otherwise falls back to HMAC_cleanup. This changes makes building GIT on older platforms less tedious. --- Makefile | 6 ++ configure.ac

[PATCH 1/3] configure.ac: check tv_nsec field in struct stat

2014-12-21 Thread Reuben Hawkins
This check will automatically set the correct NO_NSEC setting. --- configure.ac | 19 +++ 1 file changed, 19 insertions(+) diff --git a/configure.ac b/configure.ac index 6af9647..3cfdd51 100644 --- a/configure.ac +++ b/configure.ac @@ -754,6 +754,25 @@ AC_CHECK_TYPES([struct

[PATCH 2/3] configure.ac,trace.c: check for CLOCK_MONOTONIC

2014-12-21 Thread Reuben Hawkins
CLOCK_MONOTONIC isn't available on RHEL3, but there are still RHEL3 systems being used in production. This change makes compiling git less tedious on older platforms. --- configure.ac | 26 ++ trace.c | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff

[PATCH] fast-import.c: always honor the filename case

2014-02-02 Thread Reuben Hawkins
fast-import should not use strncmp_icase. When it does, files with similar names, but different case can be lost in the import. For example... M 100644 :1 FileName.txt D Filename.txt ...would end up deleting FileName from the index during the fast- import when strncmp_icase is used and

[PATCH 2/2] init-db.c: factor out probe_case_sensitivity func

2014-02-01 Thread Reuben Hawkins
create_default_files was getting a bit long and indented. This particular bit of code got long enough to be its own function. Signed-off-by: Reuben Hawkins reuben...@gmail.com --- builtin/init-db.c | 97 + 1 file changed, 53 insertions

[PATCH 1/2] init-db.c: honor case on case preserving fs

2014-02-01 Thread Reuben Hawkins
use strcmp, rather than strcmp_icase (also in fast-import.c) * completely rework ignorecase into something that can handle more options (true, false, sometimes, maybe, partially, etc...) Signed-off-by: Reuben Hawkins reuben...@gmail.com --- builtin/init-db.c | 43