Menu

[r24]: / BuildScript / svn.patch  Maximize  Restore  History

Download this file

209 lines (190 with data), 9.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
Index: build/generator/templates/build_locale.ezt
===================================================================
--- build/generator/templates/build_locale.ezt (revision 1337070)
+++ build/generator/templates/build_locale.ezt (working copy)
@@ -18,7 +18,7 @@
@echo off
@rem **************************************************************************
-cd ..\..\subversion\po
+cd ..\..\..\subversion\po
mkdir ..\..\%1\mo
set exitcode=0
[for pofiles]echo Running msgfmt on [pofiles.po]...
Index: build/win32/make_dist.py
===================================================================
--- build/win32/make_dist.py (revision 1337070)
+++ build/win32/make_dist.py (working copy)
@@ -211,14 +211,16 @@
File('%(blddir)s/svnversion/svnversion.pdb'),
File('%(blddir)s/svnrdump/svnrdump.exe'),
File('%(blddir)s/svnrdump/svnrdump.pdb'),
- File('%(blddir)s/../contrib/client-side/svn-push/svn-push.exe'),
- File('%(blddir)s/../contrib/client-side/svn-push/svn-push.pdb'),
File('%(blddir)s/../tools/client-side/svnmucc/svnmucc.exe'),
File('%(blddir)s/../tools/client-side/svnmucc/svnmucc.pdb'),
+ File('%(blddir)s/../tools/server-side/mod_dontdothat/mod_dontdothat.so'),
+ File('%(blddir)s/../tools/server-side/mod_dontdothat/mod_dontdothat.pdb'),
File('%(blddir)s/../tools/server-side/svnauthz-validate.exe'),
File('%(blddir)s/../tools/server-side/svnauthz-validate.pdb'),
File('%(blddir)s/../tools/server-side/svn-populate-node-origins-index.exe'),
File('%(blddir)s/../tools/server-side/svn-populate-node-origins-index.pdb'),
+ File('%(blddir)s/../tools/server-side/svn-rep-sharing-stats.exe'),
+ File('%(blddir)s/../tools/server-side/svn-rep-sharing-stats.pdb'),
File('%(blddir)s/../tools/dev/svnraisetreeconflict/svnraisetreeconflict.exe'),
File('%(blddir)s/../tools/dev/svnraisetreeconflict/svnraisetreeconflict.pdb'),
File('%(blddir)s/mod_dav_svn/mod_dav_svn.so'),
@@ -277,7 +279,7 @@
OptFile('%(@zlib)s/zlibstat.lib'),
),
- 'lib/serf': (File('%(@serf)s/Release/serf.lib'),
+ 'lib/serf': (File('%(@serf)s/Release/serf-1.lib'),
),
'lib/sasl': (File('%(@sasl)s/lib/libsasl.lib'),
@@ -299,7 +301,7 @@
File('%(@apr)s/NOTICE'),
),
'licenses/openssl': File('%(@openssl)s/LICENSE'),
- 'licenses/svn' : File('%(srcdir)s/COPYING'),
+ 'licenses/svn' : File('%(srcdir)s/LICENSE'),
'licenses/cyrus-sasl' : File('%(@sasl)s/COPYING'),
'perl': None,
@@ -315,6 +317,7 @@
FileGlob('%(binddir)s/swig/python/libsvn_swig_py/*.pdb'),
FileGlob('%(bindsrc)s/swig/python/*.py'),
FileGlob('%(binddir)s/swig/python/*.dll'),
+ FileGlob('%(binddir)s/swig/python/*.pyd'),
FileGlob('%(binddir)s/swig/python/*.pdb'),
),
'python/svn': FileGlob('%(bindsrc)s/swig/python/svn/*.py'),
@@ -402,8 +405,8 @@
continue
optdir = os.path.abspath(os.path.join(_srcdir, optcfg.get('options', opt)))
if not os.path.isdir(optdir):
- print('make_dist: %s = %s' % (opt, optdir))
- print('make_dist: Target is not a directory')
+ _stdout.write('make_dist: %s = %s\n' % (opt, optdir))
+ _stdout.write('make_dist: Target is not a directory\n')
_exit(1)
cfg.set('DEFAULT', '@' + opt[7:], optdir)
Index: subversion/bindings/swig/include/apr.swg
===================================================================
--- subversion/bindings/swig/include/apr.swg (revision 1337070)
+++ subversion/bindings/swig/include/apr.swg (working copy)
@@ -24,37 +24,37 @@
*/
/* -----------------------------------------------------------------------
- Create perl5 typemaps for long long datatypes
- PERL-FIXME: These typemaps are decidedly odd. They convert long long
+ Create perl5 typemaps for __int64 datatypes
+ PERL-FIXME: These typemaps are decidedly odd. They convert __int64
values to strings before returning them. This behaviour is either
wrong, or needful of a comment explaining it.
*/
#ifdef SWIGPERL
-%typemap(out) long long {
+%typemap(out) __int64 {
char temp[256];
sprintf(temp, "%" APR_INT64_T_FMT, (apr_int64_t) $1);
ST(argvi) = sv_newmortal();
sv_setpv((SV*)ST(argvi++), temp);
}
-%typemap(out) unsigned long long {
+%typemap(out) __uint64{
char temp[256];
sprintf(temp, "%" APR_UINT64_T_FMT, (apr_uint64_t) $1);
ST(argvi) = sv_newmortal();
sv_setpv((SV*)ST(argvi++), temp);
}
-%typemap(in, numinputs=0) long long *OUTPUT (apr_int64_t temp)
+%typemap(in, numinputs=0) __int64 *OUTPUT (apr_int64_t temp)
"$1 = &temp;";
-%typemap(argout) long long *OUTPUT {
+%typemap(argout) __int64 *OUTPUT {
char temp[256];
sprintf(temp, "%" APR_INT64_T_FMT, (apr_int64_t)*($1));
%append_output(sv_2mortal(newSVpv(temp, 0)));
}
-%typemap(in, numinputs=0) unsigned long long *OUTPUT (apr_uint64_t temp)
+%typemap(in, numinputs=0) __uint64 *OUTPUT (apr_uint64_t temp)
"$1 = &temp;";
-%typemap(argout) unsigned long long *OUTPUT {
+%typemap(argout) __uint64 *OUTPUT {
char temp[256];
sprintf(temp, "%" APR_UINT64_T_FMT, (apr_uint64_t)*($1));
%append_output(sv_2mortal(newSVpv(temp, 0)));
@@ -72,9 +72,15 @@
/* If sizeof(apr_off_t) > sizeof(apr_int64_t), apr_off_t will get truncated
* to a 64-bit integer */
+#ifdef SWIGPERL
+%apply __int64 { apr_off_t, apr_int64_t }
+%apply __int64 *OUTPUT { apr_int64_t * };
+%apply __uint64 { apr_uint64_t }
+#else
%apply long long { apr_off_t, apr_int64_t }
%apply long long *OUTPUT { apr_int64_t * };
%apply unsigned long long { apr_uint64_t }
+#endif
/* -----------------------------------------------------------------------
apr_time_t
Index: subversion/bindings/swig/include/svn_types.swg
===================================================================
--- subversion/bindings/swig/include/svn_types.swg (revision 1337070)
+++ subversion/bindings/swig/include/svn_types.swg (working copy)
@@ -250,7 +250,11 @@
enum svn_wc_merge_outcome_t *
};
%apply long *OUTPUT { svn_revnum_t *, svn_node_kind_t * };
+#ifdef SWIGPERL
+%apply __int64 *OUTPUT { svn_filesize_t * }
+#else
%apply long long *OUTPUT { svn_filesize_t * }
+#endif
/* -----------------------------------------------------------------------
Generic macros for callback typemaps
Index: subversion/include/svn_types.h
===================================================================
--- subversion/include/svn_types.h (revision 1337070)
+++ subversion/include/svn_types.h (working copy)
@@ -29,6 +29,7 @@
/* ### this should go away, but it causes too much breakage right now */
#include <stdlib.h>
+#include <limits.h>
#include <apr.h> /* for apr_size_t, apr_int64_t, ... */
#include <apr_errno.h> /* for apr_status_t */
Index: subversion/libsvn_subr/cache-membuffer.c
===================================================================
--- subversion/libsvn_subr/cache-membuffer.c (revision 1337070)
+++ subversion/libsvn_subr/cache-membuffer.c (working copy)
@@ -116,7 +116,7 @@
/* Don't create cache segments smaller than this value unless the total
* cache size itself is smaller.
*/
-#define MIN_SEGMENT_SIZE 0x2000000ull
+#define MIN_SEGMENT_SIZE 0x2000000ui64
/* We don't mark the initialization status for every group but initialize
* a number of groups at once. That will allow for a very small init flags
Index: subversion/libsvn_subr/cache.c
===================================================================
--- subversion/libsvn_subr/cache.c (revision 1337070)
+++ subversion/libsvn_subr/cache.c (working copy)
@@ -211,15 +211,15 @@
{
enum { _1MB = 1024 * 1024 };
- apr_uint64_t misses = info->gets - info->hits;
- double hit_rate = (100.0 * info->hits)
- / (info->gets ? info->gets : 1);
- double write_rate = (100.0 * info->sets)
+ apr_int64_t misses = info->gets - info->hits;
+ double hit_rate = (100.0 * (apr_int64_t)info->hits)
+ / (info->gets ? (apr_int64_t)info->gets : 1);
+ double write_rate = (100.0 * (apr_int64_t)info->sets)
/ (misses ? misses : 1);
- double data_usage_rate = (100.0 * info->used_size)
- / (info->data_size ? info->data_size : 1);
- double data_entry_rate = (100.0 * info->used_entries)
- / (info->total_entries ? info->total_entries : 1);
+ double data_usage_rate = (100.0 * (apr_int64_t)info->used_size)
+ / (info->data_size ? (apr_int64_t)info->data_size : 1);
+ double data_entry_rate = (100.0 * (apr_int64_t)info->used_entries)
+ / (info->total_entries ? (apr_int64_t)info->total_entries : 1);
return svn_string_createf(result_pool,