* [Buildroot] [PATCH 1/1] package/qemu: fix uclibc-ng and musl build
@ 2021-12-04 8:43 Fabrice Fontaine
2021-12-04 12:38 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-12-04 8:43 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour, Fabrice Fontaine
Fix the following build failure on uclibc-ng and musl raised since bump
to version 6.1.0 in commit 33c69c02fb4c1176584d1e2dd336b74ed39f5d65:
../block/export/fuse.c: In function 'fuse_fallocate':
../block/export/fuse.c:643:21: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
643 | else if (mode & FALLOC_FL_ZERO_RANGE) {
| ^~~~~~~~~~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/6d102f005cfaeba582a78a11460bf38014f56bf9
- http://autobuild.buildroot.org/results/be24433a429fda681fb66698160132c1c99bc53b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...4-block-export-fuse.c-fix-musl-build.patch | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
diff --git a/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch b/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
new file mode 100644
index 0000000000..4856821843
--- /dev/null
+++ b/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
@@ -0,0 +1,49 @@
+From 304332039014679b809f606e2f227ee0fc43a451 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Fri, 22 Oct 2021 11:52:09 +0200
+Subject: [PATCH] block/export/fuse.c: fix musl build
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Include linux/falloc.h if CONFIG_FALLOCATE_ZERO_RANGE is defined to fix
+https://gitlab.com/qemu-project/qemu/-/commit/50482fda98bd62e072c30b7ea73c985c4e9d9bbb
+and avoid the following build failure on musl:
+
+../block/export/fuse.c: In function 'fuse_fallocate':
+../block/export/fuse.c:643:21: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
+ 643 | else if (mode & FALLOC_FL_ZERO_RANGE) {
+ | ^~~~~~~~~~~~~~~~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/be24433a429fda681fb66698160132c1c99bc53b
+
+Fixes: 50482fda98b ("block/export/fuse.c: fix musl build")
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Message-Id: <20211022095209.1319671-1-fontaine.fabrice@gmail.com>
+Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
+Signed-off-by: Kevin Wolf <kwolf@redhat.com>
+[Retrieved from:
+https://gitlab.com/qemu-project/qemu/-/commit/304332039014679b809f606e2f227ee0fc43a451]
+---
+ block/export/fuse.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/block/export/fuse.c b/block/export/fuse.c
+index 2e3bf8270b..823c126d23 100644
+--- a/block/export/fuse.c
++++ b/block/export/fuse.c
+@@ -31,6 +31,10 @@
+ #include <fuse.h>
+ #include <fuse_lowlevel.h>
+
++#if defined(CONFIG_FALLOCATE_ZERO_RANGE)
++#include <linux/falloc.h>
++#endif
++
+ #ifdef __linux__
+ #include <linux/fs.h>
+ #endif
+--
+GitLab
+
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/qemu: fix uclibc-ng and musl build
2021-12-04 8:43 [Buildroot] [PATCH 1/1] package/qemu: fix uclibc-ng and musl build Fabrice Fontaine
@ 2021-12-04 12:38 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-12-04 12:38 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Romain Naour, buildroot
Fabrice, All,
On 2021-12-04 09:43 +0100, Fabrice Fontaine spake thusly:
> Fix the following build failure on uclibc-ng and musl raised since bump
> to version 6.1.0 in commit 33c69c02fb4c1176584d1e2dd336b74ed39f5d65:
>
> ../block/export/fuse.c: In function 'fuse_fallocate':
> ../block/export/fuse.c:643:21: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
> 643 | else if (mode & FALLOC_FL_ZERO_RANGE) {
> | ^~~~~~~~~~~~~~~~~~~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/6d102f005cfaeba582a78a11460bf38014f56bf9
> - http://autobuild.buildroot.org/results/be24433a429fda681fb66698160132c1c99bc53b
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> ...4-block-export-fuse.c-fix-musl-build.patch | 49 +++++++++++++++++++
> 1 file changed, 49 insertions(+)
> create mode 100644 package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
>
> diff --git a/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch b/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
> new file mode 100644
> index 0000000000..4856821843
> --- /dev/null
> +++ b/package/qemu/0004-block-export-fuse.c-fix-musl-build.patch
> @@ -0,0 +1,49 @@
> +From 304332039014679b809f606e2f227ee0fc43a451 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Fri, 22 Oct 2021 11:52:09 +0200
> +Subject: [PATCH] block/export/fuse.c: fix musl build
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Include linux/falloc.h if CONFIG_FALLOCATE_ZERO_RANGE is defined to fix
> +https://gitlab.com/qemu-project/qemu/-/commit/50482fda98bd62e072c30b7ea73c985c4e9d9bbb
> +and avoid the following build failure on musl:
> +
> +../block/export/fuse.c: In function 'fuse_fallocate':
> +../block/export/fuse.c:643:21: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
> + 643 | else if (mode & FALLOC_FL_ZERO_RANGE) {
> + | ^~~~~~~~~~~~~~~~~~~~
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/be24433a429fda681fb66698160132c1c99bc53b
> +
> +Fixes: 50482fda98b ("block/export/fuse.c: fix musl build")
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Message-Id: <20211022095209.1319671-1-fontaine.fabrice@gmail.com>
> +Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> +Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> +[Retrieved from:
> +https://gitlab.com/qemu-project/qemu/-/commit/304332039014679b809f606e2f227ee0fc43a451]
> +---
> + block/export/fuse.c | 4 ++++
> + 1 file changed, 4 insertions(+)
> +
> +diff --git a/block/export/fuse.c b/block/export/fuse.c
> +index 2e3bf8270b..823c126d23 100644
> +--- a/block/export/fuse.c
> ++++ b/block/export/fuse.c
> +@@ -31,6 +31,10 @@
> + #include <fuse.h>
> + #include <fuse_lowlevel.h>
> +
> ++#if defined(CONFIG_FALLOCATE_ZERO_RANGE)
> ++#include <linux/falloc.h>
> ++#endif
> ++
> + #ifdef __linux__
> + #include <linux/fs.h>
> + #endif
> +--
> +GitLab
> +
> --
> 2.33.0
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-04 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-04 8:43 [Buildroot] [PATCH 1/1] package/qemu: fix uclibc-ng and musl build Fabrice Fontaine
2021-12-04 12:38 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.