Skip to content
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

lib: add upstream fixes related to uClibc and C only toolchains #7266

Merged

Conversation

ThomasDevoogdt
Copy link
Contributor

@ThomasDevoogdt ThomasDevoogdt commented Apr 25, 2023

! please, also review and merge my upstream PR's !

Main reason for this patch series is the buildroot support that was added 2 months ago:
https://github.com/buildroot/buildroot/tree/master/package/fluent-bit

Other related PRs:

This PR can be dropped if this one is merged:


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:

  • [N/A] Example configuration file for the change
  • [N/A] Debug log output from testing the change
  • [N/A] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [N/A] Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [N/A] Documentation required for this feature

Backporting

  • [N/A] Backport to latest stable release.

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.

@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 12:23 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 12:23 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 12:23 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt changed the title Bugfix/add upstream fixes add upstream fixes Apr 25, 2023
@ThomasDevoogdt ThomasDevoogdt changed the title add upstream fixes lib: add upstream fixes Apr 25, 2023
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 12:45 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt changed the title lib: add upstream fixes lib: add upstream fixes related to uClibc and C only toolchains Apr 25, 2023
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 18:56 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 18:56 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 18:56 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 25, 2023 19:17 — with GitHub Actions Inactive
cosmo0920
cosmo0920 previously approved these changes Apr 26, 2023
Copy link
Contributor

@cosmo0920 cosmo0920 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my side, there is no objections for these changes.

@ThomasDevoogdt
Copy link
Contributor Author

From my side, there is no objections for these changes.

Can you also have a look at the other open PRs, see the list at the top. So that every change is in sync with upstream.

@cosmo0920
Copy link
Contributor

From my side, there is no objections for these changes.

Can you also have a look at the other open PRs, see the list at the top. So that every change is in sync with upstream.

Got it. I have seen the listed PRs and everything would be nice for merging. 👍

@patrick-stephens
Copy link
Contributor

It looks like there are some unit test failures.
I'd also like to ensure we build for all targets to verify it is ok.

@ThomasDevoogdt
Copy link
Contributor Author

It looks like there are some unit test failures. I'd also like to ensure we build for all targets to verify it is ok.

I don't see why. But rebased my branch to see if it still occurs.

@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 26, 2023 15:24 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr April 26, 2023 15:24 — with GitHub Actions Inactive
tutf8e is written in c, so only enforce a c compiler

upstream: nigels-com/tutf8e#9

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
msgpack is written in c, so only enforce a c compiler

upstream: msgpack/msgpack-c#1055

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Not defined in uClibc, so replace them with the equivalent POLL{OUT,IN}.

https://www.man7.org/linux/man-pages/man2/poll.2.html

POLLWRNORM
       Equivalent to POLLOUT.

POLLRDNORM
       Equivalent to POLLIN.

upstream: bytecodealliance/wasm-micro-runtime#2069

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
…C_ASSERT

Use `_Static_assert`, which is part of the C11 language.

upstream: fluent/cfl#32

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
"undefined reference to 'static_assert'"

Not defined when using uClibc or if not C++ >= 11.

upstream: c-ares/c-ares#504

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Synced to:
https://github.com/arsenm/sanitizers-cmake/tree/c3dc841af4dbf44669e65b82cb68a575864326bd

Fix for:

CMake Error at cmake/sanitizers-cmake/cmake/sanitize-helpers.cmake:127 (if):
  if given arguments:

    "SANITIZE_LINK_STATIC" "AND" "(" "STREQUAL" "GNU" ")"

  Unknown arguments specified
Call Stack (most recent call first):
  cmake/sanitizers-cmake/cmake/FindASan.cmake:46 (sanitizer_check_compiler_flags)
  cmake/sanitizers-cmake/cmake/FindSanitizers.cmake:37 (find_package)
  lib/chunkio/CMakeLists.txt:53 (find_package)

-- Configuring incomplete, errors occurred!

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
This is an upstream lib: https://github.com/arsenm/sanitizers-cmake,
so shellcheck is not applicable.

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr May 4, 2023 07:35 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr May 4, 2023 07:35 — with GitHub Actions Inactive
@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr May 4, 2023 07:36 — with GitHub Actions Inactive
@ThomasDevoogdt
Copy link
Contributor Author

Rebased since the commit from #7253 was already merged.

@ThomasDevoogdt ThomasDevoogdt temporarily deployed to pr May 4, 2023 07:58 — with GitHub Actions Inactive
@leonardo-albertovich
Copy link
Collaborator

I think it's time to merge this PR If @edsiper doesn't have anything against it I'll merge it by the end of the day.

The only thing I don't know is, I usually do squash merges because because the PRs I merge are localized patches but this one is all over the place and I was wondering if a commit merge or a rebase merge would be better options.

Do you have an opinion on that @ThomasDevoogdt?

Thanks for the patience, I really appreciate the effort.

@ThomasDevoogdt
Copy link
Contributor Author

The only thing I don't know is, I usually do squash merges because because the PRs I merge are localized patches but this one is all over the place and I was wondering if a commit merge or a rebase merge would be better options.

I personally always prefer clean rebase merges to have a linear tree. I already rebased the PR, so fast forward should also be possible if there are no contributions in between.

Thx also!
Will bump fluent-bit in buildroot at the next release then.

@ThomasDevoogdt
Copy link
Contributor Author

@leonardo-albertovich, kind ping ;)

@leonardo-albertovich leonardo-albertovich merged commit e35b58f into fluent:master May 8, 2023
@leonardo-albertovich
Copy link
Collaborator

Thanks for reminding me of this @ThomasDevoogdt, I totally forgot about it.

@leonardo-albertovich
Copy link
Collaborator

And obviously thanks for all the work you've put towards these improvements, it's much appreciated.

@ThomasDevoogdt ThomasDevoogdt deleted the bugfix/add-upstream-fixes branch May 8, 2023 10:52
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request May 17, 2023
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request May 17, 2023
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>
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request May 22, 2023
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>
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request Jun 10, 2023
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>
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request Jul 23, 2023
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>
ThomasDevoogdt added a commit to ThomasDevoogdt/buildroot that referenced this pull request Jul 23, 2023
arnout pushed a commit to buildroot/buildroot that referenced this pull request Jul 23, 2023
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>
citral23 pushed a commit to citral23/buildroot that referenced this pull request Sep 18, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-required ok-package-test Run PR packaging tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants