Merge lp:~brianaker/gearmand/m4-updates-june into lp:gearmand
- m4-updates-june
- Merge into 1.2
Proposed by
Brian Aker
Status: | Merged |
---|---|
Merged at revision: | 782 |
Proposed branch: | lp:~brianaker/gearmand/m4-updates-june |
Merge into: | lp:gearmand |
Diff against target: |
256 lines (+125/-56) 3 files modified
.bzrignore (+69/-0) m4/ax_harden_compiler_flags.m4 (+54/-55) m4/ax_prog_sphinx_build.m4 (+2/-1) |
To merge this branch: | bzr merge lp:~brianaker/gearmand/m4-updates-june |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tangent Trunk | Pending | ||
Review via email: mp+169929@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
- 780. By Brian Aker
-
Fix case where we are not passing warnings.`
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2013-06-06 22:48:07 +0000 | |||
3 | +++ .bzrignore 2013-06-17 20:42:29 +0000 | |||
4 | @@ -47,3 +47,72 @@ | |||
5 | 47 | tests/worker_test | 47 | tests/worker_test |
6 | 48 | valgrind*xml | 48 | valgrind*xml |
7 | 49 | cmd*xml | 49 | cmd*xml |
8 | 50 | *.log | ||
9 | 51 | *.trs | ||
10 | 52 | *.lo | ||
11 | 53 | *.la | ||
12 | 54 | man/*.1 | ||
13 | 55 | man/*.3 | ||
14 | 56 | man/*.8 | ||
15 | 57 | man/.doctrees/ | ||
16 | 58 | gearmand/gearmand | ||
17 | 59 | gearmand/hostile_gearmand | ||
18 | 60 | libgearman-1.0/t/c_test | ||
19 | 61 | libgearman-1.0/t/cc_test | ||
20 | 62 | libhostile/t/accept | ||
21 | 63 | libhostile/t/close | ||
22 | 64 | libhostile/t/hostile_accept | ||
23 | 65 | libhostile/t/hostile_close | ||
24 | 66 | libhostile/t/hostile_pipe | ||
25 | 67 | libhostile/t/hostile_pipe2 | ||
26 | 68 | libhostile/t/pipe | ||
27 | 69 | libhostile/t/pipe2 | ||
28 | 70 | libtest/abort | ||
29 | 71 | libtest/backtrace | ||
30 | 72 | libtest/core-count | ||
31 | 73 | libtest/skiptest | ||
32 | 74 | libtest/unittest | ||
33 | 75 | libtest/wait | ||
34 | 76 | tests/blobslap_client | ||
35 | 77 | tests/c_test | ||
36 | 78 | tests/cli | ||
37 | 79 | tests/cpp_test | ||
38 | 80 | tests/cycle | ||
39 | 81 | tests/drizzle_test | ||
40 | 82 | tests/ephemeral_test | ||
41 | 83 | tests/gearmand | ||
42 | 84 | tests/hostile_gearmand | ||
43 | 85 | tests/hostile_libgearman | ||
44 | 86 | tests/httpd_test | ||
45 | 87 | tests/memcached_test | ||
46 | 88 | tests/mysql_test | ||
47 | 89 | tests/postgres_test | ||
48 | 90 | tests/redis_test | ||
49 | 91 | tests/result | ||
50 | 92 | tests/round_robin_test | ||
51 | 93 | tests/sqlite_test | ||
52 | 94 | tests/stress | ||
53 | 95 | tests/tokyocabinet_test | ||
54 | 96 | tests/vector | ||
55 | 97 | tests/libgearman-1.0/1077917 | ||
56 | 98 | tests/libgearman-1.0/client_test | ||
57 | 99 | tests/libgearman-1.0/internals_test | ||
58 | 100 | tests/libgearman-1.0/multi_client_test | ||
59 | 101 | tests/libgearman-1.0/worker_test | ||
60 | 102 | benchmark/blobslap_client | ||
61 | 103 | benchmark/blobslap_worker | ||
62 | 104 | bin/gearadmin | ||
63 | 105 | bin/gearman | ||
64 | 106 | docs/libgearman/examples/gearman_client_do_background_example | ||
65 | 107 | docs/libgearman/examples/gearman_client_do_example | ||
66 | 108 | docs/libgearman/examples/gearman_execute_example | ||
67 | 109 | docs/libgearman/examples/gearman_execute_partition | ||
68 | 110 | examples/echo_client | ||
69 | 111 | examples/echo_worker | ||
70 | 112 | examples/reverse_client | ||
71 | 113 | examples/reverse_client_bg | ||
72 | 114 | examples/reverse_client_cb | ||
73 | 115 | examples/reverse_client_epoch | ||
74 | 116 | examples/reverse_worker | ||
75 | 117 | examples/wc_worker | ||
76 | 118 | tmp_chroot | ||
77 | 50 | 119 | ||
78 | === modified file 'm4/ax_harden_compiler_flags.m4' | |||
79 | --- m4/ax_harden_compiler_flags.m4 2013-04-29 15:09:13 +0000 | |||
80 | +++ m4/ax_harden_compiler_flags.m4 2013-06-17 20:42:29 +0000 | |||
81 | @@ -53,7 +53,39 @@ | |||
82 | 53 | # -Wdeclaration-after-statement is counter to C99 | 53 | # -Wdeclaration-after-statement is counter to C99 |
83 | 54 | # _APPEND_COMPILE_FLAGS_ERROR([-pedantic]) | 54 | # _APPEND_COMPILE_FLAGS_ERROR([-pedantic]) |
84 | 55 | 55 | ||
86 | 56 | #serial 10 | 56 | #serial 11 |
87 | 57 | |||
88 | 58 | AC_DEFUN([_SET_SANITIZE_FLAGS], | ||
89 | 59 | [AS_IF([test "x$MINGW" != xyes],[ | ||
90 | 60 | AS_IF([test "x$enable_shared" = "xyes"], | ||
91 | 61 | [AS_CASE([$ax_harden_sanitize], | ||
92 | 62 | [thread],[ | ||
93 | 63 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=thread])], | ||
94 | 64 | [address],[ | ||
95 | 65 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=address])], | ||
96 | 66 | [rest],[ | ||
97 | 67 | _APPEND_COMPILE_FLAGS_ERROR([-fno-omit-frame-pointer]) | ||
98 | 68 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer]) | ||
99 | 69 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=memory]) | ||
100 | 70 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=alignment]) | ||
101 | 71 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bool]) | ||
102 | 72 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bounds]) | ||
103 | 73 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=enum]) | ||
104 | 74 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-cast-overflow]) | ||
105 | 75 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-divide-by-zero]) | ||
106 | 76 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer-divide-by-zero]) | ||
107 | 77 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=null]) | ||
108 | 78 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=object-size]) | ||
109 | 79 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=return]) | ||
110 | 80 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=shift]) | ||
111 | 81 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=signed-integer-overflow]) | ||
112 | 82 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unreachable]) | ||
113 | 83 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unsigned-integer-overflow]) | ||
114 | 84 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vla-bound]) | ||
115 | 85 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr])]) | ||
116 | 86 | ]) | ||
117 | 87 | ]) | ||
118 | 88 | ]) | ||
119 | 57 | 89 | ||
120 | 58 | AC_DEFUN([_WARNINGS_AS_ERRORS], | 90 | AC_DEFUN([_WARNINGS_AS_ERRORS], |
121 | 59 | [AC_CACHE_CHECK([if all warnings into errors],[ac_cv_warnings_as_errors], | 91 | [AC_CACHE_CHECK([if all warnings into errors],[ac_cv_warnings_as_errors], |
122 | @@ -155,33 +187,7 @@ | |||
123 | 155 | _APPEND_COMPILE_FLAGS_ERROR([-Wundef]) | 187 | _APPEND_COMPILE_FLAGS_ERROR([-Wundef]) |
124 | 156 | _APPEND_COMPILE_FLAGS_ERROR([-Wunsafe-loop-optimizations]) | 188 | _APPEND_COMPILE_FLAGS_ERROR([-Wunsafe-loop-optimizations]) |
125 | 157 | _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations]) | 189 | _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations]) |
153 | 158 | AS_IF([test "x$MINGW" != xyes],[ | 190 | |
127 | 159 | AS_IF([test "x$ac_cv_vcs_checkout" = xyes],[ | ||
128 | 160 | AS_IF([test "x$enable_shared" = "xyes"],[ | ||
129 | 161 | _APPEND_COMPILE_FLAGS_ERROR([-fno-omit-frame-pointer]) | ||
130 | 162 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=address]) | ||
131 | 163 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer]) | ||
132 | 164 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=thread]) | ||
133 | 165 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=memory]) | ||
134 | 166 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=alignment]) | ||
135 | 167 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bool]) | ||
136 | 168 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bounds]) | ||
137 | 169 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=enum]) | ||
138 | 170 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-cast-overflow]) | ||
139 | 171 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-divide-by-zero]) | ||
140 | 172 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer-divide-by-zero]) | ||
141 | 173 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=null]) | ||
142 | 174 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=object-size]) | ||
143 | 175 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=return]) | ||
144 | 176 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=shift]) | ||
145 | 177 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=signed-integer-overflow]) | ||
146 | 178 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unreachable]) | ||
147 | 179 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unsigned-integer-overflow]) | ||
148 | 180 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vla-bound]) | ||
149 | 181 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr]) | ||
150 | 182 | ]) | ||
151 | 183 | ]) | ||
152 | 184 | ]) | ||
154 | 185 | _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered]) | 191 | _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered]) |
155 | 186 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused]) | 192 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused]) |
156 | 187 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused-result]) | 193 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused-result]) |
157 | @@ -199,6 +205,8 @@ | |||
158 | 199 | # _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) | 205 | # _APPEND_COMPILE_FLAGS_ERROR([-Wlong-long]) |
159 | 200 | _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code]) | 206 | _APPEND_COMPILE_FLAGS_ERROR([-Wunreachable-code]) |
160 | 201 | 207 | ||
161 | 208 | _SET_SANITIZE_FLAGS | ||
162 | 209 | |||
163 | 202 | AS_IF([test "x$ax_enable_debug" = xno], | 210 | AS_IF([test "x$ax_enable_debug" = xno], |
164 | 203 | [AS_IF([test "x$ac_cv_vcs_checkout" = xyes], | 211 | [AS_IF([test "x$ac_cv_vcs_checkout" = xyes], |
165 | 204 | [AS_IF([test "x${target_os}" != "xmingw"], | 212 | [AS_IF([test "x${target_os}" != "xmingw"], |
166 | @@ -282,33 +290,6 @@ | |||
167 | 282 | _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations]) | 290 | _APPEND_COMPILE_FLAGS_ERROR([-funsafe-loop-optimizations]) |
168 | 283 | _APPEND_COMPILE_FLAGS_ERROR([-Wc++11-compat]) | 291 | _APPEND_COMPILE_FLAGS_ERROR([-Wc++11-compat]) |
169 | 284 | # _APPEND_COMPILE_FLAGS_ERROR([-Weffc++]) | 292 | # _APPEND_COMPILE_FLAGS_ERROR([-Weffc++]) |
170 | 285 | AS_IF([test "x$MINGW" != xyes],[ | ||
171 | 286 | AS_IF([test "x$ac_cv_vcs_checkout" = xyes],[ | ||
172 | 287 | AS_IF([test "x$enable_shared" = "xyes"],[ | ||
173 | 288 | _APPEND_COMPILE_FLAGS_ERROR([-fno-omit-frame-pointer]) | ||
174 | 289 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=address]) | ||
175 | 290 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer]) | ||
176 | 291 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=thread]) | ||
177 | 292 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=memory]) | ||
178 | 293 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=alignment]) | ||
179 | 294 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bool]) | ||
180 | 295 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=bounds]) | ||
181 | 296 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=enum]) | ||
182 | 297 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-cast-overflow]) | ||
183 | 298 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=float-divide-by-zero]) | ||
184 | 299 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=integer-divide-by-zero]) | ||
185 | 300 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=null]) | ||
186 | 301 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=object-size]) | ||
187 | 302 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=return]) | ||
188 | 303 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=shift]) | ||
189 | 304 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=signed-integer-overflow]) | ||
190 | 305 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unreachable]) | ||
191 | 306 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=unsigned-integer-overflow]) | ||
192 | 307 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vla-bound]) | ||
193 | 308 | _APPEND_COMPILE_FLAGS_ERROR([-fsanitize=vptr]) | ||
194 | 309 | ]) | ||
195 | 310 | ]) | ||
196 | 311 | ]) | ||
197 | 312 | # _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast]) | 293 | # _APPEND_COMPILE_FLAGS_ERROR([-Wold-style-cast]) |
198 | 313 | _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered]) | 294 | _APPEND_COMPILE_FLAGS_ERROR([-Wclobbered]) |
199 | 314 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused]) | 295 | _APPEND_COMPILE_FLAGS_ERROR([-Wunused]) |
200 | @@ -338,6 +319,8 @@ | |||
201 | 338 | _APPEND_COMPILE_FLAGS_ERROR([-fstack-protector-all]) | 319 | _APPEND_COMPILE_FLAGS_ERROR([-fstack-protector-all]) |
202 | 339 | ])])])]) | 320 | ])])])]) |
203 | 340 | 321 | ||
204 | 322 | _SET_SANITIZE_FLAGS | ||
205 | 323 | |||
206 | 341 | AS_IF([test "x$ac_cv_warnings_as_errors" = xyes], | 324 | AS_IF([test "x$ac_cv_warnings_as_errors" = xyes], |
207 | 342 | [AX_APPEND_FLAG([-Werror])]) | 325 | [AX_APPEND_FLAG([-Werror])]) |
208 | 343 | AC_LANG_POP([C++]) | 326 | AC_LANG_POP([C++]) |
209 | @@ -352,6 +335,7 @@ | |||
210 | 352 | AC_REQUIRE([AX_COMPILER_VERSION]) | 335 | AC_REQUIRE([AX_COMPILER_VERSION]) |
211 | 353 | AC_REQUIRE([AX_DEBUG]) | 336 | AC_REQUIRE([AX_DEBUG]) |
212 | 354 | AC_REQUIRE([AX_VCS_CHECKOUT]) | 337 | AC_REQUIRE([AX_VCS_CHECKOUT]) |
213 | 338 | AC_REQUIRE([AX_HARDEN_SANITIZE]) | ||
214 | 355 | 339 | ||
215 | 356 | AC_REQUIRE([gl_VISIBILITY]) | 340 | AC_REQUIRE([gl_VISIBILITY]) |
216 | 357 | AS_IF([test -n "$CFLAG_VISIBILITY"],[CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"]) | 341 | AS_IF([test -n "$CFLAG_VISIBILITY"],[CPPFLAGS="$CPPFLAGS $CFLAG_VISIBILITY"]) |
217 | @@ -360,3 +344,18 @@ | |||
218 | 360 | AC_REQUIRE([_HARDEN_CC_COMPILER_FLAGS]) | 344 | AC_REQUIRE([_HARDEN_CC_COMPILER_FLAGS]) |
219 | 361 | AC_REQUIRE([_HARDEN_CXX_COMPILER_FLAGS]) | 345 | AC_REQUIRE([_HARDEN_CXX_COMPILER_FLAGS]) |
220 | 362 | ]) | 346 | ]) |
221 | 347 | |||
222 | 348 | AC_DEFUN([AX_HARDEN_SANITIZE], | ||
223 | 349 | [AC_REQUIRE([AX_DEBUG]) | ||
224 | 350 | AC_ARG_WITH([sanitize], | ||
225 | 351 | [AS_HELP_STRING([--with-sanitize], | ||
226 | 352 | [Enable sanitize flag for compiler if it supports them @<:@default=no@:>@])], | ||
227 | 353 | [AS_CASE([$with_sanitize], | ||
228 | 354 | [thread],[ | ||
229 | 355 | ax_harden_sanitize='thread'], | ||
230 | 356 | [address],[ | ||
231 | 357 | ax_harden_sanitize='with_sanitize'], | ||
232 | 358 | [ax_harden_sanitize='rest']) | ||
233 | 359 | ], | ||
234 | 360 | [AS_IF([test "x$ax_enable_debug" = xyes],[ax_harden_sanitize='rest'])]) | ||
235 | 361 | ]) | ||
236 | 363 | 362 | ||
237 | === modified file 'm4/ax_prog_sphinx_build.m4' | |||
238 | --- m4/ax_prog_sphinx_build.m4 2013-05-11 11:15:03 +0000 | |||
239 | +++ m4/ax_prog_sphinx_build.m4 2013-06-17 20:42:29 +0000 | |||
240 | @@ -19,7 +19,7 @@ | |||
241 | 19 | # and this notice are preserved. This file is offered as-is, without any | 19 | # and this notice are preserved. This file is offered as-is, without any |
242 | 20 | # warranty. | 20 | # warranty. |
243 | 21 | 21 | ||
245 | 22 | #serial 4 | 22 | #serial 5 |
246 | 23 | 23 | ||
247 | 24 | AC_DEFUN([AX_PROG_SPHINX_BUILD], | 24 | AC_DEFUN([AX_PROG_SPHINX_BUILD], |
248 | 25 | [AX_WITH_PROG([SPHINXBUILD],[sphinx-build],[:]) | 25 | [AX_WITH_PROG([SPHINXBUILD],[sphinx-build],[:]) |
249 | @@ -38,6 +38,7 @@ | |||
250 | 38 | AS_IF([test $? -eq 0], ,[SPHINXBUILD=]) | 38 | AS_IF([test $? -eq 0], ,[SPHINXBUILD=]) |
251 | 39 | rm -rf conftest.d ]) | 39 | rm -rf conftest.d ]) |
252 | 40 | ]) | 40 | ]) |
253 | 41 | rm -f version_file | ||
254 | 41 | ]) | 42 | ]) |
255 | 42 | 43 | ||
256 | 43 | AS_IF([test -n "${SPHINXBUILD}"], | 44 | AS_IF([test -n "${SPHINXBUILD}"], |