Merge remote-tracking branch 'origin/topic/christian/ci-updates'

* origin/topic/christian/ci-updates:
  CMakeLists: Disable -Werror for 3rdparty/sqlite3.c
  Bump zeek-3rdparty to pull in sqlite move to 3.46
  CI: drop Fedora 38, add 40
This commit is contained in:
Arne Welzel 2024-06-18 10:52:25 +02:00
commit a7f10df4f7
6 changed files with 41 additions and 13 deletions

View file

@ -166,19 +166,19 @@ env:
# Linux EOL timelines: https://linuxlifecycle.com/
# Fedora (~13 months): https://fedoraproject.org/wiki/Fedora_Release_Life_Cycle
fedora40_task:
container:
# Fedora 40 EOL: Around May 2025
dockerfile: ci/fedora-40/Dockerfile
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
fedora39_task:
container:
# Fedora 39 EOL: Around Nov 2024
dockerfile: ci/fedora-39/Dockerfile
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
fedora38_task:
container:
# Fedora 38 EOL: Around May 2024
dockerfile: ci/fedora-38/Dockerfile
<< : *RESOURCES_TEMPLATE
<< : *CI_TEMPLATE
<< : *SKIP_TASK_ON_PR
centosstream9_task:

24
CHANGES
View file

@ -1,3 +1,27 @@
7.0.0-dev.387 | 2024-06-18 10:52:25 +0200
* CMakeLists: Disable -Werror for 3rdparty/sqlite3.c (Arne Welzel, Corelight)
We package vanilla sqlite from upstream and on Fedora 40 with sqlite 3.46
there's the following compiler warning:
In function 'sqlite3Strlen30',
inlined from 'sqlite3ColumnSetColl' at
../../src/3rdparty/sqlite3.c:122105:10:
../../src/3rdparty/sqlite3.c:35003:28: error: 'strlen' reading 1 or more bytes from a region of size 0 [-Werror=stringop-overread]
35003 | return 0x3fffffff & (int)strlen(z);
| ^~~~~~~~~
In function 'sqlite3ColumnSetColl':
Disabling -Werror on sqlite3.c seems sensible given we have little
control over that code.
* Bump zeek-3rdparty to pull in sqlite move to 3.46 (Christian Kreibich, Corelight)
This avoids a compiler warning/error on Fedora 40.
* CI: drop Fedora 38, add 40 (Christian Kreibich, Corelight)
7.0.0-dev.383 | 2024-06-14 13:50:05 +0200
* GH-3783: Spicy: Disallow repeating replacements of the same analyzer. (Robin Sommer, Corelight)

View file

@ -1 +1 @@
7.0.0-dev.383
7.0.0-dev.387

View file

@ -1,15 +1,14 @@
FROM fedora:38
FROM fedora:40
# A version field to invalidate Cirrus's build cache when needed, as suggested in
# https://github.com/cirruslabs/cirrus-ci-docs/issues/544#issuecomment-566066822
ENV DOCKERFILE_VERSION 20230801
ENV DOCKERFILE_VERSION 20240617
RUN dnf -y install \
bison \
ccache \
cmake \
diffutils \
findutils \
flex \
gcc \
gcc-c++ \
@ -21,7 +20,6 @@ RUN dnf -y install \
openssl \
openssl-devel \
procps-ng \
python3 \
python3-devel \
python3-pip\
sqlite \

@ -1 +1 @@
Subproject commit 4c5985ca8743d33927943a58e2cc2b74d7b05790
Subproject commit 96caa6a59023eafae8a94a7b906a4436ebb57d29

View file

@ -45,11 +45,13 @@ if (MSVC)
# TODO: This is disabled for now because there a bunch of known
# compiler warnings on Windows that we don't have good fixes for.
#set(WERROR_FLAG "/WX")
#set(WNOERROR_FLAG "/WX:NO")
endif ()
else ()
set(SIGN_COMPARE_FLAG "-Wno-sign-compare")
if (BUILD_WITH_WERROR)
set(WERROR_FLAG "-Werror")
set(WNOERROR_FLAG "-Wno-error")
endif ()
endif ()
@ -445,6 +447,10 @@ set(THIRD_PARTY_SRCS
$<$<BOOL:USE_SQLITE>:3rdparty/sqlite3.c>
3rdparty/strsep.c)
if (USE_SQLITE AND WNOERROR_FLAG)
set_source_files_properties(3rdparty/sqlite3.c PROPERTIES COMPILE_FLAGS ${WNOERROR_FLAG})
endif ()
# Highwayhash. Highwayhash is a bit special since it has architecture dependent
# code...
set(hhash_dir ${PROJECT_SOURCE_DIR}/auxil/highwayhash/highwayhash)