-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build with musl and add Alpine buildnode to CI (#174)
* configure: Add AC_SYS_LARGEFILE autoconf macro This will define _FILE_OFFSET_BITS to be 64 if off_t is 64bit and we do not need to define lfs64 functions Signed-off-by: Khem Raj <raj.khem@gmail.com> * Fix build for out-of-tree builds When build tree is outside source-tree its not able to find fanotify-dfid-name.h, add needed include paths on compiler commandline Signed-off-by: Khem Raj <raj.khem@gmail.com> * libinotifytools: Bridge differences between musl/glibc/kernel fnotify.h System detects to use sys/fnotify.h and then assumes glibc's definitions but musl has definitions of its own. perhaps portable thing would be to use linux/fnotify.h interface directly on linux irrespective of libc See the differences discussion here [1] [1] https://inbox.vuxu.org/musl/20191112220151.GC27331@x230/T/#ma8700992467200c8792e0fa8508eae656b81aeba Signed-off-by: Khem Raj <raj.khem@gmail.com> * replace stat64/lstat64 with stat/lstat lfs64 functions are not needed when off_t is 64-bit Additionally this fixes build with musl which does not export these functions without defining _LARGEFILE64_SOURCE Signed-off-by: Khem Raj <raj.khem@gmail.com> * Apply changes from clang-format Signed-off-by: Khem Raj <raj.khem@gmail.com> * Fix errors found by clang-format Fixes -Wno-gnu-variable-sized-type-not-at-end for musl clang-format Signed-off-by: Khem Raj <raj.khem@gmail.com> * ci: Enable musl in CI using alpine Signed-off-by: Khem Raj <raj.khem@gmail.com> * Tell clang-tidy to ignore warning about variable sized type Signed-off-by: Eric Curtin <ecurtin@redhat.com> * Add gcompat for code coverage tool Signed-off-by: Eric Curtin <ecurtin@redhat.com> * Skip sonarcloud on alpine Signed-off-by: Eric Curtin <ecurtin@redhat.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Eric Curtin <ecurtin@redhat.com> Co-authored-by: Eric Curtin <ecurtin@redhat.com>
- Loading branch information
1 parent
f57005c
commit 8367bdd
Showing
10 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters