AM_COLOR_TESTS: always
+ WITHOUT_READLINE: "--without-readline"
+ WITH_READLINE: "--with-readline"
+ WITH_READLINE_EDITLINE: "--with-readline=editline"
+ WITH_READLINE_LIBEDIT: "--with-readline=libedit"
+ WITH_READLINE_READLINE: "--with-readline=readline"
+
stages:
- autoconf
- precheck
$EXTRA_CONFIGURE \
|| cat config.log
+.check_readline_setup: &check_readline_setup |
+ if [[ -n "${WITHOUT_READLINE}" ]]; then \
+ ! grep "^#define HAVE_READLINE" config.h; \
+ elif [[ -n "${WITH_READLINE}" ]]; then \
+ grep -e "^#define HAVE_READLINE_READLINE" \
+ -e "^#define HAVE_READLINE_LIBEDIT" \
+ -e "^#define HAVE_READLINE_EDITLINE" config.h; \
+ elif [[ -n "${WITH_READLINE_EDITLINE}" ]]; then \
+ grep "^#define HAVE_READLINE_EDITLINE" config.h; \
+ elif [[ -n "${WITH_READLINE_LIBEDIT}" ]]; then \
+ grep "^#define HAVE_READLINE_LIBEDIT" config.h; \
+ elif [[ -n "${WITH_READLINE_READLINE}" ]]; then \
+ grep "^#define HAVE_READLINE_READLINE" config.h; \
+ fi
+
.build: &build_job
<<: *default_triggering_rules
stage: build
- test -n "${OOT_BUILD_WORKSPACE}" && mkdir "${OOT_BUILD_WORKSPACE}" && cd "${OOT_BUILD_WORKSPACE}"
script:
- *configure
+ - *check_readline_setup
- make -j${BUILD_PARALLEL_JOBS:-1} -k all V=1
- test -z "${RUN_MAKE_INSTALL}" || make install
- test -z "${RUN_MAKE_INSTALL}" || sh util/check-make-install
variables:
CC: gcc
CFLAGS: "${CFLAGS_COMMON}"
- EXTRA_CONFIGURE: "--enable-dnstap"
+ EXTRA_CONFIGURE: "--enable-dnstap ${WITHOUT_READLINE}"
<<: *alpine_3_12_amd64_image
<<: *build_job
variables:
CC: gcc
CFLAGS: "${CFLAGS_COMMON}"
+ EXTRA_CONFIGURE: "${WITH_READLINE_LIBEDIT}"
<<: *debian_buster_amd64_image
<<: *build_job
variables:
CC: gcc
CFLAGS: "${CFLAGS_COMMON}"
- EXTRA_CONFIGURE: "--with-libidn2 --with-gssapi=/usr/lib/mit/bin/krb5-config"
+ EXTRA_CONFIGURE: "--with-libidn2 --with-gssapi=/usr/lib/mit/bin/krb5-config ${WITH_READLINE_READLINE}"
<<: *tumbleweed_latest_amd64_image
<<: *build_job
clang:freebsd11:amd64:
variables:
CFLAGS: "${CFLAGS_COMMON}"
+ EXTRA_CONFIGURE: "${WITH_READLINE}"
USER: gitlab-runner
<<: *freebsd_11_amd64_image
<<: *build_job
clang:freebsd12:amd64:
variables:
CFLAGS: "${CFLAGS_COMMON}"
- EXTRA_CONFIGURE: "--enable-dnstap"
+ EXTRA_CONFIGURE: "--enable-dnstap ${WITH_READLINE_EDITLINE}"
USER: gitlab-runner
<<: *freebsd_12_amd64_image
<<: *build_job