From: Joe Orton Date: Tue, 12 Nov 2019 12:45:57 +0000 (+0000) Subject: Add buildconf option to force (rather than suppress) regeneration of X-Git-Tag: 2.5.0-alpha2-ci-test-only~1801 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dd0046f300cf667d8a473d51e1c097f2715efa4;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/.travis.yml b/.travis.yml index f3551897deb..eab49138394 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,6 +62,11 @@ matrix: - libnghttp2-dev - libjansson-dev # ------------------------------------------------------------------------- + - name: Linux Ubuntu, Regenerate ap_expr + os: linux + env: CONFIG="--enable-mods-shared=reallyall --enable-maintainer-mode NOTEST_CFLAGS=-Werror" + BUILDCONFIG="--with-regen-expr" + # ------------------------------------------------------------------------- - if: branch != 2.4.x name: Linux Ubuntu, APR trunk env: APR_VERSION=trunk APR_CONFIG="--with-crypto" diff --git a/buildconf b/buildconf index bf115a532a0..e7199a70d87 100755 --- a/buildconf +++ b/buildconf @@ -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 < 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 diff --git a/test/travis_run_linux.sh b/test/travis_run_linux.sh index 37b74877fe8..52442b7f46d 100755 --- a/test/travis_run_linux.sh +++ b/test/travis_run_linux.sh @@ -1,7 +1,7 @@ #!/bin/bash -ex ### Installed apr/apr-util don't include the *.m4 files but the ### Debian packages helpfully install them, so use the system APR to buildconf -./buildconf --with-apr=/usr/bin/apr-1-config +./buildconf --with-apr=/usr/bin/apr-1-config ${BUILDCONFIG} # For trunk, "make check" is sufficient to run the test suite. # For 2.4.x, the test suite must be run manually if test ! -v SKIP_TESTING; then