Skip to content

Commit

Permalink
fix zeek build in sensor (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Oct 25, 2023
1 parent 18a16c7 commit 12e6efa
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions sensor-iso/config/hooks/normal/0169-pip-installs.hook.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

export LC_ALL=C.UTF-8
export LANG=C.UTF-8
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1

# python 3
pip3 install --break-system-packages --no-compile --no-cache-dir --force-reinstall --upgrade \
Expand Down
5 changes: 5 additions & 0 deletions sensor-iso/config/hooks/normal/0910-sensor-build.hook.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# some environment variables needed for build
export CCACHE_DIR="/var/spool/ccache"
export CCACHE_COMPRESS=1
export CMAKE_C_COMPILER="clang-14"
export CMAKE_CXX_COMPILER="clang++-14"
export CXXFLAGS="-stdlib=libc++ -lc++abi"
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1

# we'll use cURL to get release information and assets from GitHub using the GitHub API
GITHUB_API_CURL_ARGS=()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apt-get -y --purge remove \
libc6-dbg \
ninja-build \
sparse \
$(dpkg --get-selections | grep -Pv "(^(dpkg|libbroker|libc\+\+|libc6|libcrypt|libdbus|libffi|libfl|libgcc|libmaxminddb|libncurses|libnsl|libobjc|libomp|libpcap|libssl|libstdc|libtinfo|libtirpc|libxml|libyaml|libz|linux-libc|zeek|zlib1g)|deinstall$)" | cut -f1 | grep -P -- '-dev(:\w+)?$') || true
$(dpkg --get-selections | grep -Pv "(^(dpkg|libbroker|libc\+\+(abi)?|libc6|libclang|libcrypt|libdbus|libffi|libfl|libgoogle-perftools|libgcc|libkrb5|libmaxminddb|libncurses|libnsl|libobjc|libomp|libpcap|libssl|libstdc|libtinfo|libtirpc|libunwind|libxml|libyaml|libz|linux-libc|python3|zeek|zlib1g)|deinstall$)" | cut -f1 | grep -P -- '-dev(:\w+)?$') || true
rm -rf /var/spool/ccache

# remove unwanted packages
Expand Down
3 changes: 2 additions & 1 deletion sensor-iso/config/package-lists/build.list.chroot
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ libc++abi-dev
libfl-dev
libgoogle-perftools-dev
libjansson-dev
libkrb5-dev
libmagic-dev
libmaxminddb-dev
libnl-3-dev
Expand All @@ -20,4 +21,4 @@ make
ninja-build
patch
swig
zlib1g-dev
zlib1g-dev
3 changes: 2 additions & 1 deletion sensor-iso/zeek/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ RUN apt-get -q update && \
cmake \
curl \
flex \
git \
libc++-dev \
libc++abi-dev \
libfl-dev \
libgoogle-perftools4 \
libgoogle-perftools-dev \
libgoogle-perftools4 \
libkrb5-3 \
libkrb5-dev \
libmaxminddb-dev \
Expand Down
5 changes: 4 additions & 1 deletion sensor-iso/zeek/build-zeek-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

# Copyright (c) 2023 Battelle Energy Alliance, LLC. All rights reserved.

export CCACHE_DIR=/var/spool/ccache
export CCACHE_DIR="/var/spool/ccache"
export CCACHE_COMPRESS=1
export CMAKE_C_COMPILER="clang-14"
export CMAKE_CXX_COMPILER="clang++-14"
export CXXFLAGS="-stdlib=libc++ -lc++abi"
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1

Expand Down

0 comments on commit 12e6efa

Please sign in to comment.