File tree 3 files changed +30
-9
lines changed
3 files changed +30
-9
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,11 @@ matrix:
62
62
- libnghttp2-dev
63
63
- libjansson-dev
64
64
# -------------------------------------------------------------------------
65
+ - name : Linux Ubuntu, Regenerate ap_expr
66
+ os : linux
67
+ env : CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror"
68
+ BUILDCONFIG="--with-regen-expr"
69
+ # -------------------------------------------------------------------------
65
70
- if : branch != 2.4.x
66
71
name : Linux Ubuntu, APR trunk
67
72
env : APR_VERSION=trunk APR_CONFIG="--with-crypto"
Original file line number Diff line number Diff line change 37
37
apr_src_dir=" srclib/apr ../apr"
38
38
apu_src_dir=" "
39
39
40
+ # By default, touch the checked-in sources to suppress regeneration of
41
+ # the ap_expr parser.
42
+ regen_expr=no
43
+
40
44
while test $# -gt 0
41
45
do
42
46
# Normalize
54
58
apu_src_dir=$optarg
55
59
;;
56
60
61
+ --with-regen-expr)
62
+ regen_expr=yes
63
+ ;;
64
+
57
65
-h|--help)
58
66
cat << EOF
59
67
buildconf: generates the files needed to configure httpd.
@@ -74,6 +82,9 @@ Configuration:
74
82
"apr" replaced with "apr-util" or "aprutil". Ignored
75
83
in APR-Config Mode.
76
84
85
+ --with-regen-expr suppress the timestamp adjustment which prevents the
86
+ rebuild of the ap_expr expression parser
87
+
77
88
APR-Config Mode:
78
89
79
90
When passing an apr-config executable to --with-apr, buildconf will attempt to
@@ -316,13 +327,18 @@ if [ -f `which cut` ]; then
316
327
> httpd.spec )
317
328
fi
318
329
319
- # ensure that the ap_expr expression parser sources are never regenerated
320
- # when running make
321
- echo fixing timestamps for ap_expr sources
322
- cd server
323
- touch util_expr_parse.y util_expr_scan.l
324
- sleep 1
325
- touch util_expr_parse.c util_expr_parse.h util_expr_scan.c
326
- cd ..
330
+ if [ x$regen_expr = xno ]; then
331
+ # ensure that the ap_expr expression parser sources are never regenerated
332
+ # when running make
333
+ echo buildconf: Fixing timestamps for ap_expr sources to prevent regeneration
334
+ cd server
335
+ touch util_expr_parse.y util_expr_scan.l
336
+ sleep 1
337
+ touch util_expr_parse.c util_expr_parse.h util_expr_scan.c
338
+ cd ..
339
+ else
340
+ echo buildconf: Fixing timestamps for ap_expr sources to ensure regeneration
341
+ touch server/util_expr_parse.[yl]
342
+ fi
327
343
328
344
exit 0
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -ex
2
2
# ## Installed apr/apr-util don't include the *.m4 files but the
3
3
# ## Debian packages helpfully install them, so use the system APR to buildconf
4
- ./buildconf --with-apr=/usr/bin/apr-1-config
4
+ ./buildconf --with-apr=/usr/bin/apr-1-config ${BUILDCONFIG}
5
5
# For trunk, "make check" is sufficient to run the test suite.
6
6
# For 2.4.x, the test suite must be run manually
7
7
if test ! -v SKIP_TESTING; then
You can’t perform that action at this time.
0 commit comments