diff options
author | Joe Orton <jorton@apache.org> | 2019-11-12 13:45:57 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2019-11-12 13:45:57 +0100 |
commit | 2dd0046f300cf667d8a473d51e1c097f2715efa4 (patch) | |
tree | 88bcebf206f3a0a8519862aa525406e6d9dfac78 /buildconf | |
parent | Update APR version requirement to 1.6 or later per rough consensus on (diff) | |
download | apache2-2dd0046f300cf667d8a473d51e1c097f2715efa4.tar.xz apache2-2dd0046f300cf667d8a473d51e1c097f2715efa4.zip |
Add buildconf option to force (rather than suppress) regeneration of
the ap_expr parser. Add a Travis job which uses this, so a patch
which changes the parser sources is tested appropriately (e.g PR#72).
* buildconf: Add --with-regen-expr to force ap_expr regeneration.
* .travis.yml, test/travis_run_linux.sh: Pass BUILDCONF to buildconf
and add job which uses the new option.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869697 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buildconf')
-rwxr-xr-x | buildconf | 32 |
1 files changed, 24 insertions, 8 deletions
@@ -37,6 +37,10 @@ esac apr_src_dir="srclib/apr ../apr" apu_src_dir="" +# By default, touch the checked-in sources to suppress regeneration of +# the ap_expr parser. +regen_expr=no + while test $# -gt 0 do # Normalize @@ -54,6 +58,10 @@ do apu_src_dir=$optarg ;; + --with-regen-expr) + regen_expr=yes + ;; + -h|--help) cat <<EOF buildconf: generates the files needed to configure httpd. @@ -74,6 +82,9 @@ Configuration: "apr" replaced with "apr-util" or "aprutil". Ignored in APR-Config Mode. + --with-regen-expr suppress the timestamp adjustment which prevents the + rebuild of the ap_expr expression parser + APR-Config Mode: When passing an apr-config executable to --with-apr, buildconf will attempt to @@ -316,13 +327,18 @@ if [ -f `which cut` ]; then > httpd.spec ) fi -# ensure that the ap_expr expression parser sources are never regenerated -# when running make -echo fixing timestamps for ap_expr sources -cd server -touch util_expr_parse.y util_expr_scan.l -sleep 1 -touch util_expr_parse.c util_expr_parse.h util_expr_scan.c -cd .. +if [ x$regen_expr = xno ]; then + # ensure that the ap_expr expression parser sources are never regenerated + # when running make + echo buildconf: Fixing timestamps for ap_expr sources to prevent regeneration + cd server + touch util_expr_parse.y util_expr_scan.l + sleep 1 + touch util_expr_parse.c util_expr_parse.h util_expr_scan.c + cd .. +else + echo buildconf: Fixing timestamps for ap_expr sources to ensure regeneration + touch server/util_expr_parse.[yl] +fi exit 0 |