-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
lib: add upstream fixes related to uClibc and C only toolchains #7266
Conversation
7f104f7
to
5afc696
Compare
...ro-runtime-WAMR-1.1.1/core/iwasm/libraries/libc-wasi/sandboxed-system-primitives/src/posix.c
Show resolved
Hide resolved
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.
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. 👍 |
It looks like there are some unit test failures. |
5afc696
to
43f551f
Compare
I don't see why. But rebased my branch to see if it still occurs. |
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>
b958b5b
to
e398b67
Compare
Rebased since the commit from #7253 was already merged. |
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. |
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! |
@leonardo-albertovich, kind ping ;) |
Thanks for reminding me of this @ThomasDevoogdt, I totally forgot about it. |
And obviously thanks for all the work you've put towards these improvements, it's much appreciated. |
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>
! 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
upstream: sync ax_cxx_compile_stdcxx_11.m4 with upstream c-ares/c-ares#505
upstream: Explicitly specify the project is a C project if tests aren't used. msgpack/msgpack-c#1055
upstream: lib/xxhash: do no longer depend on <assert.h> for XXH_STATIC_ASSERT cfl#32
upstream: core/iwasm: posix.c: fix POLL{RD,WR}NORM in uClibc bytecodealliance/wasm-micro-runtime#2069
upstream: CMakeLists.txt: fix build without C++ nigels-com/tutf8e#9
upstream: CMakeLists.txt: fix build without C++ MaJerle/lwrb#26
upstream: CMakeLists.txt: fix build without C++ onigmo#7
upstream: CMakeLists.txt: fix build without C++ chunkio#94
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:
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.