Merge remote-tracking branch 'origin/topic/bbannier/issue-3266'

* origin/topic/bbannier/issue-3266:
  Fix installation of symlink with `DESTDIR`
This commit is contained in:
Tim Wojtulewicz 2025-08-26 08:59:20 -07:00
commit d7db612b0f
3 changed files with 16 additions and 2 deletions

14
CHANGES
View file

@ -1,3 +1,17 @@
8.1.0-dev.459 | 2025-08-26 08:59:20 -0700
* Fix installation of symlink with `DESTDIR` (Benjamin Bannier, Corelight)
We install test data which we also make available under an alternative
path for backwards compatibility. The installation of this symlink did
not take `DESTDIR` installs like used by Zeek's packaging into account
which caused installations from packages to behave different from
installs from source.
This patch fixes the symlink to respect a possible `DESTDIR`.
Closes #3266.
8.1.0-dev.456 | 2025-08-25 12:29:32 -0700 8.1.0-dev.456 | 2025-08-25 12:29:32 -0700
* Bump zeekctl (Arne Welzel, Corelight) * Bump zeekctl (Arne Welzel, Corelight)

View file

@ -1 +1 @@
8.1.0-dev.456 8.1.0-dev.459

View file

@ -14,7 +14,7 @@ install(
CODE "execute_process( \ CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \ COMMAND ${CMAKE_COMMAND} -E create_symlink \
${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data \ ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data \
${CMAKE_INSTALL_PREFIX}/share/zeek/tests \ \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/share/zeek/tests \
)") )")
install(DIRECTORY scripts/spicy/ DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data/Scripts install(DIRECTORY scripts/spicy/ DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data/Scripts