* [Buildroot] [PATCH 1/1] package/usbredir: fix build without C++
@ 2021-10-16 13:55 Fabrice Fontaine
2021-10-17 7:41 ` Yann E. MORIN
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-10-16 13:55 UTC (permalink / raw)
To: buildroot; +Cc: Yann E . MORIN, Fabrice Fontaine
Fix the following build failure without C++ raised since bump to version
0.11.0 in commit c3a907a770b88529ea5a93c77cf001096799c556:
../output-1/build/usbredir-0.11.0/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++']]
The following exception(s) were encountered:
Running "/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++ --version" gave "[Errno 2] No such file or directory: '/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++'"
Fixes:
- http://autobuild.buildroot.org/results/eca1d8a2b73a769354ab1d24c7996be30f152138
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.../0003-meson.build-make-C-optional.patch | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
create mode 100644 package/usbredir/0003-meson.build-make-C-optional.patch
diff --git a/package/usbredir/0003-meson.build-make-C-optional.patch b/package/usbredir/0003-meson.build-make-C-optional.patch
new file mode 100644
index 0000000000..fe1ed3f698
--- /dev/null
+++ b/package/usbredir/0003-meson.build-make-C-optional.patch
@@ -0,0 +1,39 @@
+From 55fc307d23d657b52433d1c8508467d0589754d5 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 16 Oct 2021 15:45:57 +0200
+Subject: [PATCH] meson.build: make C++ optional
+
+Remove cpp from meson project statement to make C++ optional and avoid
+the following build failure when the toolchain does not provide a C++
+compiler:
+
+../output-1/build/usbredir-0.11.0/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++']]
+The following exception(s) were encountered:
+Running "/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++ --version" gave "[Errno 2] No such file or directory: '/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++'"
+
+Indeed C++ is only required for fuzzing which is already handled by
+meson through add_languages('cpp', required: true)
+
+Fixes:
+ - http://autobuild.buildroot.org/results/eca1d8a2b73a769354ab1d24c7996be30f152138
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status:
+https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/55]
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 49dbce4..ca19f22 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,4 +1,4 @@
+-project('usbredir', 'c', 'cpp',
++project('usbredir', 'c',
+ version: '0.11.0',
+ license: 'LGPLv2.1+',
+ meson_version : '>= 0.53',
+--
+2.33.0
+
--
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/usbredir: fix build without C++
2021-10-16 13:55 [Buildroot] [PATCH 1/1] package/usbredir: fix build without C++ Fabrice Fontaine
@ 2021-10-17 7:41 ` Yann E. MORIN
0 siblings, 0 replies; 2+ messages in thread
From: Yann E. MORIN @ 2021-10-17 7:41 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Fabrice, All,
On 2021-10-16 15:55 +0200, Fabrice Fontaine spake thusly:
> Fix the following build failure without C++ raised since bump to version
> 0.11.0 in commit c3a907a770b88529ea5a93c77cf001096799c556:
>
> ../output-1/build/usbredir-0.11.0/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++']]
> The following exception(s) were encountered:
> Running "/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++ --version" gave "[Errno 2] No such file or directory: '/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++'"
>
> Fixes:
> - http://autobuild.buildroot.org/results/eca1d8a2b73a769354ab1d24c7996be30f152138
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> .../0003-meson.build-make-C-optional.patch | 39 +++++++++++++++++++
> 1 file changed, 39 insertions(+)
> create mode 100644 package/usbredir/0003-meson.build-make-C-optional.patch
>
> diff --git a/package/usbredir/0003-meson.build-make-C-optional.patch b/package/usbredir/0003-meson.build-make-C-optional.patch
> new file mode 100644
> index 0000000000..fe1ed3f698
> --- /dev/null
> +++ b/package/usbredir/0003-meson.build-make-C-optional.patch
> @@ -0,0 +1,39 @@
> +From 55fc307d23d657b52433d1c8508467d0589754d5 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Sat, 16 Oct 2021 15:45:57 +0200
> +Subject: [PATCH] meson.build: make C++ optional
> +
> +Remove cpp from meson project statement to make C++ optional and avoid
> +the following build failure when the toolchain does not provide a C++
> +compiler:
> +
> +../output-1/build/usbredir-0.11.0/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++']]
> +The following exception(s) were encountered:
> +Running "/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++ --version" gave "[Errno 2] No such file or directory: '/home/buildroot/autobuild/instance-3/output-1/host/bin/arm-linux-g++'"
> +
> +Indeed C++ is only required for fuzzing which is already handled by
> +meson through add_languages('cpp', required: true)
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/eca1d8a2b73a769354ab1d24c7996be30f152138
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status:
> +https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/55]
> +---
> + meson.build | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/meson.build b/meson.build
> +index 49dbce4..ca19f22 100644
> +--- a/meson.build
> ++++ b/meson.build
> +@@ -1,4 +1,4 @@
> +-project('usbredir', 'c', 'cpp',
> ++project('usbredir', 'c',
> + version: '0.11.0',
> + license: 'LGPLv2.1+',
> + meson_version : '>= 0.53',
> +--
> +2.33.0
> +
> --
> 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-10-17 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-16 13:55 [Buildroot] [PATCH 1/1] package/usbredir: fix build without C++ Fabrice Fontaine
2021-10-17 7:41 ` 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.