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

* origin/topic/bbannier/issue-3266:
  Fix installation of symlink with `DESTDIR`

(cherry picked from commit d7db612b0f)
This commit is contained in:
Tim Wojtulewicz 2025-08-26 08:59:20 -07:00
parent 708f914524
commit 2f38ff6c87
3 changed files with 20 additions and 2 deletions

18
CHANGES
View file

@ -1,3 +1,21 @@
8.0.0-11 | 2025-08-26 09:04:29 -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`.
(cherry picked from commit d7db612b0f1f802316ab745e292c03aa3d69c5bd)
* Update zeekctl submodule for docs fixes [nomail] [skip ci] (Tim Wojtulewicz, Corelight)
* Update docs submodule for v8.0.1 [nomail] [skip ci] (Tim Wojtulewicz, Corelight)
8.0.0-8 | 2025-08-25 12:31:35 -0700
* Merge branch 'topic/christian/news-typos' (Christian Kreibich, Corelight)

View file

@ -1 +1 @@
8.0.0-8
8.0.0-11

View file

@ -14,7 +14,7 @@ install(
CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
${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