You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the culprit here is the CMake revamp removing support for BRO_PLUGIN_BASE, but opening a ticket in the template repo as I'm not sure we want to reintroduce that and/or maybe there's a better idea how to go about that.
Today, when creating a package with a plugin feature, there's two scripts directories - top-level and plugin specific.
When running zkg install (or make install within build), the scripts/ directory next to the installed lib/ directory contains the content of the top-level ./scripts directory rather than ./plugin/scripts (which would have the __preload__.zeek or types.zeek files). This seems wrong: The plugin/scripts should've been sued for this.
So 1) we won't have and load the right __load__.zeek, __preload__.zeek and types.zeek files automatically when the shared library is loaded and also 2) Zeek automatically attempts to load the top-level ./scripts directory instead (which should require an explicit @load).
$ zeek -e 'event zeek_init(){}'
Hello world!
@ckreibich - thoughts? Bringing back BRO_PLUGIN_BASE could work, but its usage seems brittle (as this ticket proofs).
I don't know. Chatting with @bbannier and @J-Gras this is pretty messy. Given there have been no complaints so far, I wonder if we can do some more drastic changes rather than trying to fix anything up.
The text was updated successfully, but these errors were encountered:
Support for BRO_PLUGIN_BASE has been removed, resulting in the
ZeekPluginDynamic.cmake code to pick-up ${CMAKE_CURRENT_SOURCE_DIR}/scripts
as the plugin's script. For the package-template's generated skeleton,
these are however the extra scripts usually installed via zkg.
Propose creation of another CMakeLists.txt within plugin/ to prevent
this.
The main wart here is that zeek-plugin-create-package.sh contains assumption
about the location of additional DIST_FILES (../ relative to the build directory),
so we copy these at configure time into build/ to fix this.
I'm liking this more than re-introducing support for BRO_PLUGIN_BASE,
but not sure it's overly great.
Closes#35
I believe the culprit here is the CMake revamp removing support for
BRO_PLUGIN_BASE
, but opening a ticket in the template repo as I'm not sure we want to reintroduce that and/or maybe there's a better idea how to go about that.Today, when creating a package with a plugin feature, there's two scripts directories - top-level and plugin specific.
When running
zkg install
(ormake install
within build), thescripts/
directory next to the installedlib/
directory contains the content of the top-level./scripts
directory rather than./plugin/scripts
(which would have the__preload__.zeek
ortypes.zeek
files). This seems wrong: Theplugin/scripts
should've been sued for this.Concretely, after a
make install
within./build
:So 1) we won't have and load the right
__load__.zeek
,__preload__.zeek
andtypes.zeek
files automatically when the shared library is loaded and also 2) Zeek automatically attempts to load the top-level./scripts
directory instead (which should require an explicit @load).@ckreibich - thoughts? Bringing back BRO_PLUGIN_BASE could work, but its usage seems brittle (as this ticket proofs).
I don't know. Chatting with @bbannier and @J-Gras this is pretty messy. Given there have been no complaints so far, I wonder if we can do some more drastic changes rather than trying to fix anything up.
The text was updated successfully, but these errors were encountered: