* [Buildroot] [PATCH v1] package/cairo: fix compilation on toolchains without c++ support
@ 2024-07-18 12:19 Thomas Devoogdt
2024-07-18 19:59 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Devoogdt @ 2024-07-18 12:19 UTC (permalink / raw)
To: buildroot
Cc: eric.le.bihan.dev, thomas, yann.morin.1998, Thomas Devoogdt,
thomas.petazzoni, aperez, fontaine.fabrice
From: Thomas Devoogdt <thomas.devoogdt@barco.com>
Fixes:
- https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/
Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
---
...3-meson-only-require-cpp-for-windows.patch | 38 +++++++++++++++++++
1 file changed, 38 insertions(+)
create mode 100644 package/cairo/0003-meson-only-require-cpp-for-windows.patch
diff --git a/package/cairo/0003-meson-only-require-cpp-for-windows.patch b/package/cairo/0003-meson-only-require-cpp-for-windows.patch
new file mode 100644
index 0000000000..9774f29f8c
--- /dev/null
+++ b/package/cairo/0003-meson-only-require-cpp-for-windows.patch
@@ -0,0 +1,38 @@
+From e93ef3feb69994e3aa4e0ab66ccd66139b097e49 Mon Sep 17 00:00:00 2001
+From: Thomas Devoogdt <thomas.devoogdt@barco.com>
+Date: Thu, 18 Jul 2024 12:16:51 +0200
+Subject: [PATCH] meson: only require cpp for windows
+
+Allow to compile meson without c++ toolchain.
+
+Fixes:
+ - https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/
+
+Upstream: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/573
+Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
+---
+ meson.build | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 9100152ee..297482b03 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1,4 +1,4 @@
+-project('cairo', 'c', 'cpp',
++project('cairo', 'c',
+ meson_version: '>= 0.59.0',
+ version: run_command(find_program('version.py'), check: true).stdout().strip(),
+ default_options: ['warning_level=2'],
+@@ -489,6 +489,8 @@ if host_machine.system() == 'darwin' and not get_option('quartz').disabled()
+ endif
+
+ if host_machine.system() == 'windows'
++ add_languages('cpp')
++
+ add_project_arguments('-DWIN32_LEAN_AND_MEAN', '-DNOMINMAX', language: ['c', 'cpp'])
+
+ win32_extra_deps = [
+--
+2.45.2
+
--
2.45.2
_______________________________________________
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 v1] package/cairo: fix compilation on toolchains without c++ support
2024-07-18 12:19 [Buildroot] [PATCH v1] package/cairo: fix compilation on toolchains without c++ support Thomas Devoogdt
@ 2024-07-18 19:59 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-18 19:59 UTC (permalink / raw)
To: Thomas Devoogdt
Cc: eric.le.bihan.dev, yann.morin.1998, Thomas Devoogdt, buildroot,
aperez, fontaine.fabrice
Hello,
Thanks for the investigation, I had come to the same conclusion earlier
today, but you were faster than me at cooking the patch. A couple of
comments below, though, for your future contributions.
On Thu, 18 Jul 2024 12:19:55 +0000
Thomas Devoogdt <thomas@devoogdt.com> wrote:
> From: Thomas Devoogdt <thomas.devoogdt@barco.com>
>
When you submit a fix, you should always explain since when the
regression got introduced. Indeed, Peter Korsgaard reviews all commits
made on master, and has to decide which commits should be backported to
our 2024.02.x maintenance branch. So we need to know if this fix is
needed on 2024.02.x or not. In this, it is not needed. So I have added
this in the commit message:
This issue was occurring since the conversion of cairo to
meson-package in commit
1fa58814c09a71444f961b61a9a2c399b9163fc2 ("package/cairo: move to the
meson build system")
> Fixes:
> - https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/
Here, we want a reference to an autobuilder failure, so:
Fixes:
http://autobuild.buildroot.net/results/98b62ab7ed3092f9f9085f723baf7d6267451e5c/
> diff --git a/package/cairo/0003-meson-only-require-cpp-for-windows.patch b/package/cairo/0003-meson-only-require-cpp-for-windows.patch
> new file mode 100644
> index 0000000000..9774f29f8c
> --- /dev/null
> +++ b/package/cairo/0003-meson-only-require-cpp-for-windows.patch
> @@ -0,0 +1,38 @@
> +From e93ef3feb69994e3aa4e0ab66ccd66139b097e49 Mon Sep 17 00:00:00 2001
> +From: Thomas Devoogdt <thomas.devoogdt@barco.com>
> +Date: Thu, 18 Jul 2024 12:16:51 +0200
> +Subject: [PATCH] meson: only require cpp for windows
> +
> +Allow to compile meson without c++ toolchain.
No, it's cairo that you allow to build without C++.
> +Fixes:
> + - https://lore.kernel.org/buildroot/20240717200926.1a7db2a1@windsurf/
We also recommend a reference to an autobuilder failure, or even better
as this patch goes upstream (which doesn't care about Buildroot),
directly have the error message copy/pasted.
I've applied with those details fixed. Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
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:[~2024-07-18 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18 12:19 [Buildroot] [PATCH v1] package/cairo: fix compilation on toolchains without c++ support Thomas Devoogdt
2024-07-18 19:59 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox