]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Makefile.in: Use a local libpcap in the releasecheck target
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 25 Sep 2024 18:30:12 +0000 (20:30 +0200)
committerfxlb <[email protected]>
Thu, 26 Sep 2024 04:35:14 +0000 (04:35 +0000)
This may avoid errors in make check, depending on the system's libpcap
version.

Update the Cirrus CI configuration, linux_task, accordingly.

.cirrus.yml
Makefile.in

index 5d0e517e395d07902a42f78ca05e4d4c03cdaa05..cde4bb423733ffa311a960d53d6f24e2dfd2b5a3 100644 (file)
@@ -39,6 +39,7 @@ linux_task:
   script:
     - apt-get -qy update >/dev/null
     - apt-get -qy install autoconf make gcc libpcap-dev >/dev/null # for "./configure"
+    - apt-get -qy install flex bison libdbus-1-dev libbluetooth-dev libnl-genl-3-dev libibverbs-dev >/dev/null # for libpcap
     - apt-get -qy install cmake git binutils-dev >/dev/null # for "make releasecheck"
     - apt-get -qy install shellcheck >/dev/null
     - ./autogen.sh
index a62a7d6b2814d5d27f846ceacfda13319caf6920..bd2b80bcfe3ca89436bb42cc5b860218924c581e 100644 (file)
@@ -493,6 +493,22 @@ releasecheck: releasetar
        INSTALL_DIR=/tmp/install_"$$TAG"_$$$$ && \
        DIR=`pwd` && \
        cd /tmp && \
+       rm -rf libpcap && \
+       rm -rf install_libpcap && \
+       echo "[$@] $$ git clone [...] libpcap.git" && \
+       git clone --depth 3 --quiet https://github.com/the-tcpdump-group/libpcap.git && \
+       echo "[$@] $$ cd libpcap" && \
+       cd libpcap && \
+       echo "[$@] $$ ./autogen.sh" && \
+       ./autogen.sh && \
+       echo "[$@] $$ ./configure --quiet --prefix=/tmp/install_libpcap" && \
+       ./configure --quiet --prefix=/tmp/install_libpcap && \
+       echo "[$@] $$ make -s " && \
+       make -s && \
+       echo "[$@] $$ make -s install" && \
+       make -s install && \
+       echo "[$@] $$ cd .." && \
+       cd .. && \
        rm -rf "$$TAG" && \
        rm -rf "$$INSTALL_DIR" && \
        tar xf "$$DIR"/"$$TAG".tar.gz && \
@@ -514,6 +530,8 @@ releasecheck: releasetar
        touch .devel && \
        mkdir build && \
        cd build && \
+       echo "[$@] $$ export PKG_CONFIG_PATH=/tmp/install_libpcap/lib/pkgconfig" && \
+       export PKG_CONFIG_PATH=/tmp/install_libpcap/lib/pkgconfig && \
        echo '[$@] $$ cmake -DENABLE_SMB=yes [...] ..' && \
        cmake -DENABLE_SMB=yes \
            -DCMAKE_INSTALL_PREFIX="$$INSTALL_DIR" \
@@ -528,6 +546,8 @@ releasecheck: releasetar
        cd ../.. && \
        rm -rf "$$TAG" && \
        rm -rf "$$INSTALL_DIR" && \
+       rm -rf install_libpcap && \
+       rm -rf libpcap && \
        echo '[$@] Done.'
 
 whitespacecheck: