G'day
Edit: I just thought that I would say that this rather long question has now been fixed due to the fact that Adam Hood answered below if you just slip through.
I have added a patch to add in Apache 2.2.14, and one unified diff does not fix the file at all. I am using GNU patch 2.5.4.
I need to ignore the spaces because the original patch did not execute well, i.e. many of the differences seem to translate into tabs → spaces. These kinds of differences are even less useful since the patch file has been modified somewhere along the delivery chain, for example. svn repository, Jira system, web interface, etc., so that all tabs were converted to spaces anyway!
I am using the Solaris 10 command:
/usr/bin/gpatch --verbose --ignore-whitespace -p1 -d . \
<mod_cache.diff
and output:
...
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
|Index: httpd/modules/cache/mod_cache.h
|===================================================================
|
|+++ httpd/modules/cache/mod_cache.h
Patching file modules/cache/mod_cache.h using Plan A...
Hunk
Hunk
Hunk
Hunk
Hunk
Hunk
Hunk
Hunk
...
Hunk
.
, diff:
...
Index: httpd/modules/cache/mod_cache.h
===================================================================
--- httpd/modules/cache/mod_cache.h
+++ httpd/modules/cache/mod_cache.h
@@ -86,9 +86,13 @@
#define DEFAULT_CACHE_MAXEXPIRE MSEC_ONE_DAY
#define DEFAULT_CACHE_EXPIRE MSEC_ONE_HR
#define DEFAULT_CACHE_LMFACTOR (0.1)
+#define DEFAULT_CACHE_MAXAGE 5
+#define DEFAULT_CACHE_LOCKPATH "/mod_cache-lock"
+#define CACHE_LOCKNAME_KEY "mod_cache-lockname"
+#define CACHE_LOCKFILE_KEY "mod_cache-lockfile"
-
#if !defined(WIN32)
#define CACHE_DECLARE(type) type
...
() :
...
#define MSEC_ONE_DAY ((apr_time_t)(86400*APR_USEC_PER_SEC))
#define MSEC_ONE_HR ((apr_time_t)(3600*APR_USEC_PER_SEC))
#define MSEC_ONE_MIN ((apr_time_t)(60*APR_USEC_PER_SEC))
#define MSEC_ONE_SEC ((apr_time_t)(APR_USEC_PER_SEC))
#define DEFAULT_CACHE_MAXEXPIRE MSEC_ONE_DAY
#define DEFAULT_CACHE_EXPIRE MSEC_ONE_HR
#define DEFAULT_CACHE_LMFACTOR (0.1)
#if !defined(WIN32)
#define CACHE_DECLARE(type) type
#define CACHE_DECLARE_NONSTD(type) type
#define CACHE_DECLARE_DATA
#elif defined(CACHE_DECLARE_STATIC)
...
, , , .
, diff ?
: fuzz , , .
, ! fuzz GNU diffutils, .
2:. , :
, . , , .
, , mod_cache.h 2.2.14 mod_cache, h! ) -