-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
sp: CMakeLists.txt: don't require c++ #7254
Conversation
It seems like there is no downside to this but I wonder why do we need to do it for this particular sub directory. I mean, it's the only one that has a I don't have anything against this change but do you know if there is a reason to add that rather than just removing the call? The project definition in the main |
Multiple projects can have another language requirement, so the top level might be C, but that doesn't mean that this subproject is enforced to be C only. This PR is part of a buildroot patch (buildroot/buildroot@ceb9c36) which I'm trying to upstream: I made a series of other PRs to the upstream libs. If these all get merged, then I can create a PR here with also those. |
@leonardo-albertovich I leave the decision on the approval of this PR to you, since as you mentioned, only including the stream processor in the patch doesn't look consistent with the rest of the Fluent Bit source code. |
I understand the functionality of that parameter, what I'm not entirely sure about is why do we need to include that call in I understand that this is not something you included and I suspect that it might be just something that was added when the sub project was created but not technically necessary which is why I'm asking the question "do we need that line there?" because I assume that if that line is not there (I was able to configure and build the project) then cmake would assume the constraint is inherited from the parent project (the root CMakeLists.txt file does set the project name and language to C). So what I'm asking is :
What I saw was that when @edsiper added the file in commit 6dd4468 he had already added the project call and I suspect that there might not be a strong reason behind it. My opinion is that if removing the call fixes the issue and nobody has a strong reason to include it we should remove it. |
Ah, now I understand the question. No project is not needed and PROJECT_NAME is not used. |
41506ba
to
b96d821
Compare
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.
I think that unless we want to establish setting the project name and language in every sub project this is the way to go.
I'll leave this open for @edsiper to make call but I agree with the change.
While at it, can you also have a look at #7253? Which is similar. I can also drop the project name there. |
Considering that |
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.
thanks for your contribution. I have added a comment with a request change.
note: commits should be prefixed with the component name and not other string.
stream_processor is written in c, so only enforce a c compiler Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
b96d821
to
d1f9d20
Compare
general comment: we need to define when to have |
If I am not wrong, the reason at that time was because we needed to have the stream processor as a single functionality that could be called from the outside without any problems, not sure if that statement is still valid since we need to define the scope of that interface. Sorry about the confusion, since we are cutting the release now I will just merge so then we need to decide about "when" to have these |
Fluent Bit v2.1 is the start of the new stable series of the project. - Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ - Patches are upstreamed and can be dropped: fluent/fluent-bit#7266 fluent/fluent-bit#7254 https://github.com/fluent/fluent-bit/pull/7253/files Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. - Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ No release notes yet for 2.1.3, but contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ Fluent Bit v2.1.3 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ https://fluentbit.io/announcements/v2.1.4/ Fluent Bit v2.1.4 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ https://fluentbit.io/announcements/v2.1.4/ Fluent Bit v2.1.4 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ https://fluentbit.io/announcements/v2.1.4/ https://fluentbit.io/announcements/v2.1.5/ https://fluentbit.io/announcements/v2.1.6/ https://fluentbit.io/announcements/v2.1.7/ Fluent Bit v2.1.4 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ https://fluentbit.io/announcements/v2.1.4/ https://fluentbit.io/announcements/v2.1.5/ https://fluentbit.io/announcements/v2.1.6/ https://fluentbit.io/announcements/v2.1.7/ Fluent Bit v2.1.7 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Fluent Bit v2.1 is the start of the new stable series of the project. Release Notes: https://fluentbit.io/announcements/v2.1.0/ https://fluentbit.io/announcements/v2.1.1/ https://fluentbit.io/announcements/v2.1.2/ https://fluentbit.io/announcements/v2.1.3/ https://fluentbit.io/announcements/v2.1.4/ https://fluentbit.io/announcements/v2.1.5/ https://fluentbit.io/announcements/v2.1.6/ https://fluentbit.io/announcements/v2.1.7/ Fluent Bit v2.1.7 contains this list of upstreamed patches: fluent/fluent-bit#7266 fluent/fluent-bit#7254 fluent/fluent-bit#7253 So the old patches can be dropped. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
stream_processor is written in c, so only enforce a c compiler
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-test
label 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.