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.
#!/usr/bin/env bash
# This script runs one build with setup environment variables: BUILD_LIBPCAP,
#!/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}
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
# CC: gcc or clang
CC=${CC:-gcc}
# CMAKE: no or yes
}
# LABEL is needed to build the travis fold labels
}
# 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
if [ "$CMAKE" = no ]; then
echo '$ ./configure [...]'
travis_fold start configure
# This script executes the matrix loops, exclude tests and cleaning.
# It calls the build.sh script which runs one build with setup environment
# 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
# 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
-# (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').
# MATRIX_CC='gcc clang', MATRIX_CMAKE='no yes', MATRIX_CRYPTO='no yes',
# MATRIX_SMB='no yes').
for SMB in ${MATRIX_SMB:-no yes}; do
export SMB
COUNT=$((COUNT+1))
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 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:
# 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
./build.sh
echo 'Cleaning...'
travis_fold start cleaning
# Build libpcap with autoconf
CMAKE_SAVE=$CMAKE
CMAKE=no
# 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
(cd ../libpcap && ./build.sh && make distclean)
CMAKE=$CMAKE_SAVE
fi
touch .devel configure
for BUILD_LIBPCAP in ${MATRIX_BUILD_LIBPCAP:-no yes}; do
export BUILD_LIBPCAP
touch .devel configure
for BUILD_LIBPCAP in ${MATRIX_BUILD_LIBPCAP:-no yes}; do
export BUILD_LIBPCAP
if [ "$BUILD_LIBPCAP" = yes ]; then
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