diff options
-rw-r--r-- | meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch | 26 | ||||
-rw-r--r-- | meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch | 23 | ||||
-rw-r--r-- | meta/recipes-graphics/cairo/cairo_1.18.0.bb | 2 |
3 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch b/meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch new file mode 100644 index 0000000000..0f70b66500 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo/0001-Require-C11.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | From de2452228814e804b103dfa7c2d37b3a216c6155 Mon Sep 17 00:00:00 2001 | ||
2 | From: Adrian Johnson <ajohnson@redneon.com> | ||
3 | Date: Sun, 28 Apr 2024 21:31:41 +0930 | ||
4 | Subject: [PATCH] Require C11 | ||
5 | |||
6 | Upstream-Status: Backport [https://gitlab.freedesktop.org/cairo/cairo/-/commit/b60f47dfd5bbe98aec43f6c356ba3be9a1b7989e] | ||
7 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
8 | --- | ||
9 | meson.build | 5 +++-- | ||
10 | 1 file changed, 3 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/meson.build b/meson.build | ||
13 | index 9100152..f8432fd 100644 | ||
14 | --- a/meson.build | ||
15 | +++ b/meson.build | ||
16 | @@ -1,7 +1,8 @@ | ||
17 | project('cairo', 'c', 'cpp', | ||
18 | - meson_version: '>= 0.59.0', | ||
19 | + meson_version: '>= 1.3.0', | ||
20 | version: run_command(find_program('version.py'), check: true).stdout().strip(), | ||
21 | - default_options: ['warning_level=2'], | ||
22 | + default_options: ['c_std=gnu11,c11', | ||
23 | + 'warning_level=2'], | ||
24 | ) | ||
25 | |||
26 | freetype_required_version = '>= 9.7.3' | ||
diff --git a/meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch b/meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch new file mode 100644 index 0000000000..85f300e960 --- /dev/null +++ b/meta/recipes-graphics/cairo/cairo/0002-Meson-Require-C-11.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | From d9cc95b94b2bb1e67f2095cda484d4a8a63aba10 Mon Sep 17 00:00:00 2001 | ||
2 | From: Luca Bacci <luca.bacci982@gmail.com> | ||
3 | Date: Thu, 16 Jan 2025 16:48:12 +0100 | ||
4 | Subject: [PATCH] Meson: Require C++11 | ||
5 | |||
6 | Upstream-Status: Backport [https://gitlab.freedesktop.org/cairo/cairo/-/commit/dfd06ab3884d79de3b5bac782d1e8b2a0bd791ab] | ||
7 | Signed-off-by: Martin Jansa <martin.jansa@gmail.com> | ||
8 | --- | ||
9 | meson.build | 1 + | ||
10 | 1 file changed, 1 insertion(+) | ||
11 | |||
12 | diff --git a/meson.build b/meson.build | ||
13 | index f8432fd..85434d2 100644 | ||
14 | --- a/meson.build | ||
15 | +++ b/meson.build | ||
16 | @@ -2,6 +2,7 @@ project('cairo', 'c', 'cpp', | ||
17 | meson_version: '>= 1.3.0', | ||
18 | version: run_command(find_program('version.py'), check: true).stdout().strip(), | ||
19 | default_options: ['c_std=gnu11,c11', | ||
20 | + 'cpp_std=gnu++11,c++11', | ||
21 | 'warning_level=2'], | ||
22 | ) | ||
23 | |||
diff --git a/meta/recipes-graphics/cairo/cairo_1.18.0.bb b/meta/recipes-graphics/cairo/cairo_1.18.0.bb index 4c97e973d0..f1a87ccb3f 100644 --- a/meta/recipes-graphics/cairo/cairo_1.18.0.bb +++ b/meta/recipes-graphics/cairo/cairo_1.18.0.bb | |||
@@ -30,6 +30,8 @@ DEPENDS = "fontconfig freetype glib-2.0 libpng pixman zlib" | |||
30 | 30 | ||
31 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ | 31 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ |
32 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ | 32 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ |
33 | file://0001-Require-C11.patch \ | ||
34 | file://0002-Meson-Require-C-11.patch \ | ||
33 | " | 35 | " |
34 | 36 | ||
35 | SRC_URI[sha256sum] = "243a0736b978a33dee29f9cca7521733b78a65b5418206fef7bd1c3d4cf10b64" | 37 | SRC_URI[sha256sum] = "243a0736b978a33dee29f9cca7521733b78a65b5418206fef7bd1c3d4cf10b64" |