From: Denis Ovsienko Date: Wed, 10 Feb 2021 14:10:06 +0000 (+0000) Subject: Remove the REMOTE dimension from the nested matrix. [skip appveyor] X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/3861a41bfa60b9a8bed2d5a11a2ba7a7b1bbed3d Remove the REMOTE dimension from the nested matrix. [skip appveyor] Neither the build process nor the tests of tcpdump currently depend on presence or absence of the libpcap remote feature, and there is already the libpcap nested matrix to cover that dimension, thus in the tcpdump nested matrix just leave this aspect of the local libpcap build unspecified and reduce the total number of rounds from 48 to 32. --- diff --git a/build.sh b/build.sh index 083559aa..a4cf2e93 100755 --- a/build.sh +++ b/build.sh @@ -1,15 +1,13 @@ #!/usr/bin/env bash # This script runs one build with setup environment variables: BUILD_LIBPCAP, -# REMOTE, CC, CMAKE, CRYPTO and SMB -# (default: BUILD_LIBPCAP=no, REMOTE=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no). +# CC, CMAKE, CRYPTO and SMB +# (default: BUILD_LIBPCAP=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no). set -e # BUILD_LIBPCAP: no or yes BUILD_LIBPCAP=${BUILD_LIBPCAP:-no} -# REMOTE: no or yes -REMOTE=${REMOTE:-no} # CC: gcc or clang CC=${CC:-gcc} # CMAKE: no or yes @@ -39,7 +37,7 @@ run_after_echo() { } # LABEL is needed to build the travis fold labels -LABEL="$BUILD_LIBPCAP.$REMOTE.$CC.$CMAKE.$CRYPTO.$SMB" +LABEL="$BUILD_LIBPCAP.$CC.$CMAKE.$CRYPTO.$SMB" if [ "$CMAKE" = no ]; then echo '$ ./configure [...]' travis_fold start configure diff --git a/build_matrix.sh b/build_matrix.sh index 304ce575..87a18d0d 100755 --- a/build_matrix.sh +++ b/build_matrix.sh @@ -2,12 +2,12 @@ # This script executes the matrix loops, exclude tests and cleaning. # It calls the build.sh script which runs one build with setup environment -# variables: BUILD_LIBPCAP, REMOTE, CC, CMAKE, CRYPTO and SMB -# (default: BUILD_LIBPCAP=no, REMOTE=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no). +# variables: BUILD_LIBPCAP, CC, CMAKE, CRYPTO and SMB +# (default: BUILD_LIBPCAP=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no). # The matrix can be configured with environment variables -# MATRIX_BUILD_LIBPCAP, MATRIX_REMOTE, MATRIX_CC, MATRIX_CMAKE, MATRIX_CRYPTO +# MATRIX_BUILD_LIBPCAP, MATRIX_CC, MATRIX_CMAKE, MATRIX_CRYPTO # and MATRIX_SMB -# (default: MATRIX_BUILD_LIBPCAP='no yes', MATRIX_REMOTE='no yes', +# (default: MATRIX_BUILD_LIBPCAP='no yes', # MATRIX_CC='gcc clang', MATRIX_CMAKE='no yes', MATRIX_CRYPTO='no yes', # MATRIX_SMB='no yes'). @@ -47,11 +47,11 @@ build_tcpdump() { for SMB in ${MATRIX_SMB:-no yes}; do export SMB COUNT=$((COUNT+1)) - echo_magenta "===== SETUP $COUNT: BUILD_LIBPCAP=$BUILD_LIBPCAP REMOTE=${REMOTE:-?} CC=$CC CMAKE=$CMAKE CRYPTO=$CRYPTO SMB=$SMB =====" + echo_magenta "===== SETUP $COUNT: BUILD_LIBPCAP=$BUILD_LIBPCAP CC=$CC CMAKE=$CMAKE CRYPTO=$CRYPTO SMB=$SMB =====" # LABEL is needed to build the travis fold labels - LABEL="$BUILD_LIBPCAP.$REMOTE.$CC.$CMAKE.$CRYPTO.$SMB" + LABEL="$BUILD_LIBPCAP.$CC.$CMAKE.$CRYPTO.$SMB" # Run one build with setup environment variables: - # BUILD_LIBPCAP, REMOTE, CC, CMAKE, CRYPTO and SMB + # BUILD_LIBPCAP, CC, CMAKE, CRYPTO and SMB ./build.sh echo 'Cleaning...' travis_fold start cleaning @@ -75,7 +75,7 @@ choose_libpcap() { # Build libpcap with autoconf CMAKE_SAVE=$CMAKE CMAKE=no - echo_magenta "Build libpcap (CMAKE=$CMAKE REMOTE=$REMOTE)" + echo_magenta "Build libpcap (CMAKE=$CMAKE)" (cd ../libpcap && ./build.sh && make distclean) CMAKE=$CMAKE_SAVE fi @@ -84,20 +84,14 @@ choose_libpcap() { touch .devel configure for BUILD_LIBPCAP in ${MATRIX_BUILD_LIBPCAP:-no yes}; do export BUILD_LIBPCAP + choose_libpcap if [ "$BUILD_LIBPCAP" = yes ]; then - for REMOTE in ${MATRIX_REMOTE:-no yes}; do - export REMOTE - choose_libpcap - # Set PKG_CONFIG_PATH for configure when building libpcap - if [ "$CMAKE" != no ]; then - export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig - fi - build_tcpdump - done - else - choose_libpcap - build_tcpdump + # Set PKG_CONFIG_PATH for configure when building libpcap + if [ "$CMAKE" != no ]; then + export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig + fi fi + build_tcpdump done rm -rf $PREFIX