From 40fa95e88afbf944949ee55ccd6b34bb0e7a8f49 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Thu, 11 Feb 2021 09:25:29 +0100 Subject: Restore the possibility of building when remote is enabled in libpcap This change allows to test the build with HAVE_PCAP_FINDALLDEVS_EX and HAVE_PCAP_OPEN enabled. Some ways to run theses tests: MATRIX_BUILD_LIBPCAP=yes MATRIX_REMOTE=yes MATRIX_CMAKE=no MATRIX_CC=gcc \ MATRIX_CRYPTO=no MATRIX_SMB=no ./build_matrix.sh (configure should display: checking for pcap_open... yes checking for pcap_findalldevs_ex... yes) MATRIX_BUILD_LIBPCAP=yes MATRIX_REMOTE=yes MATRIX_CMAKE=yes MATRIX_CC=gcc \ MATRIX_CRYPTO=no MATRIX_SMB=no ./build_matrix.sh (cmake should display: Looking for pcap_open - found Looking for pcap_findalldevs_ex - found) Don't enable the builds with REMOTE=yes by default. This partially reverts commit 3861a41bfa60b9a8bed2d5a11a2ba7a7b1bbed3d. "Remove the REMOTE dimension from the nested matrix." --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index a4cf2e93..083559aa 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,15 @@ #!/usr/bin/env bash # This script runs one build with setup environment variables: BUILD_LIBPCAP, -# CC, CMAKE, CRYPTO and SMB -# (default: BUILD_LIBPCAP=no, CC=gcc, CMAKE=no, CRYPTO=no, SMB=no). +# REMOTE, CC, CMAKE, CRYPTO and SMB +# (default: BUILD_LIBPCAP=no, REMOTE=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 @@ -37,7 +39,7 @@ run_after_echo() { } # LABEL is needed to build the travis fold labels -LABEL="$BUILD_LIBPCAP.$CC.$CMAKE.$CRYPTO.$SMB" +LABEL="$BUILD_LIBPCAP.$REMOTE.$CC.$CMAKE.$CRYPTO.$SMB" if [ "$CMAKE" = no ]; then echo '$ ./configure [...]' travis_fold start configure -- cgit v1.2.1