-
Notifications
You must be signed in to change notification settings - Fork 1.8k
build: Link system libzstd when enabling in_systemd plugin #11088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Link system libzstd when enabling in_systemd plugin #11088
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughZstd detection in Changes
Sequence Diagram(s)sequenceDiagram
participant CMake as CMakeLists.txt
participant JOURNALD as JOURNALD checks
participant PKG as pkg_check_modules (QUIET)
participant FIND as find_package zstd (fallback)
participant INTERNAL as include cmake/zstd.cmake
CMake->>JOURNALD: run JOURNALD-related checks
JOURNALD-->>CMake: continue
CMake->>CMake: evaluate condition\n(FLB_PREFER_SYSTEM_LIB_ZSTD OR\n(FLB_SYSTEM_LINUX AND FLB_IN_SYSTEMD))
alt condition true
CMake->>PKG: pkg_check_modules(LIBZSTD) (QUIET)
alt LIBZSTD found
PKG-->>CMake: set LIBZSTD_INCLUDE_DIRS / LIBZSTD_LIBRARY_DIRS
else LIBZSTD not found
CMake->>FIND: attempt zstd discovery
alt zstd found
FIND-->>CMake: set include/link dirs
else zstd not found
CMake->>INTERNAL: include cmake/zstd.cmake (fallback)
end
end
else condition false
CMake->>INTERNAL: include cmake/zstd.cmake (legacy/internal only)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (9)📓 Common learnings📚 Learning: 2025-08-31T12:46:11.940ZApplied to files:
📚 Learning: 2025-08-29T06:24:55.855ZApplied to files:
📚 Learning: 2025-08-29T06:25:02.561ZApplied to files:
📚 Learning: 2025-08-29T06:25:27.250ZApplied to files:
📚 Learning: 2025-08-29T06:24:44.797ZApplied to files:
📚 Learning: 2025-08-29T06:24:26.170ZApplied to files:
📚 Learning: 2025-08-29T06:25:27.250ZApplied to files:
📚 Learning: 2025-08-31T12:46:11.940ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (76)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
interesting approach. |
This is because RHEL10 or other distributions which use zstd compression inside of systemd, the symbols could be collided and we need to unify the using zstd symbols. This is just for changing the way to linking libzstd libraries. No need to change for building rules in packaging. Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
cd6eefd to
60e849e
Compare
|
This approach shouldn't work for adjusting linkages of zstd. Closing for now. |
This is because RHEL10 or other distributions which use zstd compression inside of systemd, the symbols could be collided and we need to unify the using zstd symbols.
This is just for changing the way to linking libzstd libraries. No need to change for building rules in packaging.
Enter
[N/A]in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.
Summary by CodeRabbit