Merge remote-tracking branch 'origin/topic/timw/fix-windows-build'

* origin/topic/timw/fix-windows-build:
  Fix linking of zeek_build_info on Windows
  CI: Enable Windows builds for PRs
  Call python explicitly from cmake for collecting repo info on Windows
  Rework zeek-inet-ntop snprintf return value handling
This commit is contained in:
Tim Wojtulewicz 2023-02-15 11:12:28 -07:00
commit 5ec72a7698
6 changed files with 32 additions and 15 deletions

View file

@ -391,7 +391,6 @@ windows_task:
# Give verbose error output on a test failure.
CTEST_OUTPUT_ON_FAILURE: 1
<< : *BRANCH_WHITELIST
<< : *SKIP_TASK_ON_PR
# Container images

10
CHANGES
View file

@ -1,3 +1,13 @@
6.0.0-dev.52 | 2023-02-15 11:12:28 -0700
* Fix linking of zeek_build_info on Windows (Tim Wojtulewicz)
* CI: Enable Windows builds for PRs (Tim Wojtulewicz)
* Call python explicitly from cmake for collecting repo info on Windows (Tim Wojtulewicz)
* Rework zeek-inet-ntop snprintf return value handling (Tim Wojtulewicz)
6.0.0-dev.47 | 2023-02-15 19:10:35 +0100
* zeek-setup: Ensure telemetry_mgr is created before other managers (Arne Welzel, Corelight)

View file

@ -860,11 +860,23 @@ endforeach()
########################################################################
## Populate the ZEEK_BUILD_INFO for use in src/version.c.in
if ( WIN32 )
# Windows installs Python to C:\Python311\python, but doesn't create a version
# or symlink to python3. Call python with the script directly since the shebang
# in the script won't work here.
execute_process(COMMAND "python" "${PROJECT_SOURCE_DIR}/ci/collect-repo-info.py" "${ZEEK_INCLUDE_PLUGINS}"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
OUTPUT_VARIABLE ZEEK_BUILD_INFO
RESULT_VARIABLE ZEEK_BUILD_INFO_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE)
else()
execute_process(COMMAND "${PROJECT_SOURCE_DIR}/ci/collect-repo-info.py" "${ZEEK_INCLUDE_PLUGINS}"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
OUTPUT_VARIABLE ZEEK_BUILD_INFO
RESULT_VARIABLE ZEEK_BUILD_INFO_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
if ( NOT ZEEK_BUILD_INFO_RESULT EQUAL "0" )
message(FATAL_ERROR "Could not collect repository info")

View file

@ -1 +1 @@
6.0.0-dev.47
6.0.0-dev.52

@ -1 +1 @@
Subproject commit 104714d6bd0a23d35397997875ed6a506ecd4b22
Subproject commit 58e63b262e542895024c821e791214008604cd55

View file

@ -202,12 +202,8 @@ std::shared_ptr<zeek::detail::SampleLogger> zeek::detail::sample_logger;
zeek::detail::FragmentManager* zeek::detail::fragment_mgr = nullptr;
int signal_val = 0;
#ifdef _MSC_VER
char version[] = VERSION;
#else
extern char version[];
#endif
extern const char zeek_build_info[];
extern "C" char version[];
extern "C" const char zeek_build_info[];
const char* zeek::detail::command_line_policy = nullptr;
vector<string> zeek::detail::params;