summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/harfbuzz/harfbuzz/0001-Use-Os-to-compile-hb-subset-plan-layout.cc.patch72
-rw-r--r--meta/recipes-graphics/harfbuzz/harfbuzz_11.2.1.bb6
-rw-r--r--meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.18.bb (renamed from meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.16.bb)2
3 files changed, 6 insertions, 74 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Use-Os-to-compile-hb-subset-plan-layout.cc.patch b/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Use-Os-to-compile-hb-subset-plan-layout.cc.patch
deleted file mode 100644
index 38ff58fce5..0000000000
--- a/meta/recipes-graphics/harfbuzz/harfbuzz/0001-Use-Os-to-compile-hb-subset-plan-layout.cc.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1From a4325b6f6ddbebf3ecaee8f3825a2f03096adb6d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 27 Apr 2025 15:26:09 -0700
4Subject: [PATCH] Use -Os to compile hb-subset-plan-layout.cc
5
6This helps compiling with GCC 15
7
8Reported upstream with GH Issues [1]
9
10[1] https://github.com/harfbuzz/harfbuzz/issues/5306
11
12Upstream-Status: Inappropriate [GCC-15 workaround]
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 src/meson.build | 15 ++++++++++++---
17 1 file changed, 12 insertions(+), 3 deletions(-)
18
19diff --git a/src/meson.build b/src/meson.build
20index cbe5d9e..d7fc764 100644
21--- a/src/meson.build
22+++ b/src/meson.build
23@@ -398,7 +398,6 @@ hb_subset_sources = files(
24 'hb-subset-instancer-solver.hh',
25 'hb-subset-instancer-solver.cc',
26 'hb-subset-plan.cc',
27- 'hb-subset-plan-layout.cc',
28 'hb-subset-plan-var.cc',
29 'hb-subset-plan.hh',
30 'hb-subset-plan-member-list.hh',
31@@ -415,6 +414,10 @@ hb_subset_sources = files(
32 'hb-subset.hh',
33 )
34
35+hb_subset_sources_os = files(
36+ 'hb-subset-plan-layout.cc',
37+)
38+
39 hb_subset_headers = files(
40 'hb-subset.h',
41 'hb-subset-serialize.h'
42@@ -629,6 +632,12 @@ endif
43
44 darwin_versions = [hb_version_int, '@0@.0.0'.format(hb_version_int)]
45
46+special_subset_layout_lib = static_library('special_subset_layout',
47+ 'hb-subset-plan-layout.cc',
48+ include_directories: incconfig,
49+ cpp_args: cpp_args + extra_hb_cpp_args + ['-Os'], # <== compile this one with -Os
50+)
51+
52 libharfbuzz = library('harfbuzz', hb_sources,
53 include_directories: incconfig,
54 dependencies: harfbuzz_deps,
55@@ -656,7 +665,7 @@ defs_list += [harfbuzz_subset_def]
56 libharfbuzz_subset = library('harfbuzz-subset', hb_subset_sources,
57 include_directories: incconfig,
58 dependencies: [m_dep],
59- link_with: [libharfbuzz],
60+ link_with: [libharfbuzz] + [special_subset_layout_lib],
61 cpp_args: cpp_args + extra_hb_cpp_args,
62 soversion: hb_so_version,
63 version: version,
64@@ -668,7 +677,7 @@ libharfbuzz_subset = library('harfbuzz-subset', hb_subset_sources,
65 custom_target('harfbuzz-subset.cc',
66 build_by_default: true,
67 output: 'harfbuzz-subset.cc',
68- input: hb_base_sources + hb_subset_sources,
69+ input: hb_base_sources + hb_subset_sources + hb_subset_sources_os,
70 command: [find_program('gen-harfbuzzcc.py'),
71 '@OUTPUT@', meson.current_source_dir(), '@INPUT@'],
72 )
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_11.2.1.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_11.2.1.bb
index 71eada7f28..2c8a1363d0 100644
--- a/meta/recipes-graphics/harfbuzz/harfbuzz_11.2.1.bb
+++ b/meta/recipes-graphics/harfbuzz/harfbuzz_11.2.1.bb
@@ -9,7 +9,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b98429b8e8e3c2a67cfef01e99e4893d \
9 " 9 "
10 10
11SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz" 11SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
12SRC_URI += "file://0001-Use-Os-to-compile-hb-subset-plan-layout.cc.patch"
13SRC_URI[sha256sum] = "093714c8548a285094685f0bdc999e202d666b59eeb3df2ff921ab68b8336a49" 12SRC_URI[sha256sum] = "093714c8548a285094685f0bdc999e202d666b59eeb3df2ff921ab68b8336a49"
14 13
15DEPENDS += "glib-2.0-native" 14DEPENDS += "glib-2.0-native"
@@ -21,6 +20,11 @@ GIR_MESON_DISABLE_FLAG = 'disabled'
21GTKDOC_MESON_ENABLE_FLAG = 'enabled' 20GTKDOC_MESON_ENABLE_FLAG = 'enabled'
22GTKDOC_MESON_DISABLE_FLAG = 'disabled' 21GTKDOC_MESON_DISABLE_FLAG = 'disabled'
23 22
23# As per upstream CONFIG.md, it is recommended to always build with -Os.
24FULL_OPTIMIZATION = "-Os ${DEBUG_LEVELFLAG}"
25
26EXTRA_OEMESON = "-Dtests=disabled"
27
24PACKAGECONFIG ??= "cairo freetype glib icu" 28PACKAGECONFIG ??= "cairo freetype glib icu"
25PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo" 29PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
26PACKAGECONFIG[chafa] = "-Dchafa=enabled,-Dchafa=disabled,chafa" 30PACKAGECONFIG[chafa] = "-Dchafa=enabled,-Dchafa=disabled,chafa"
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.16.bb b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.18.bb
index 38c81f2372..14c45be432 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.16.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.18.bb
@@ -3,7 +3,7 @@ require xserver-xorg.inc
3SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \ 3SRC_URI += "file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \
4 file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \ 4 file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \
5 " 5 "
6SRC_URI[sha256sum] = "b14a116d2d805debc5b5b2aac505a279e69b217dae2fae2dfcb62400471a9970" 6SRC_URI[sha256sum] = "c878d1930d87725d4a5bf498c24f4be8130d5b2646a9fd0f2994deff90116352"
7 7
8# These extensions are now integrated into the server, so declare the migration 8# These extensions are now integrated into the server, so declare the migration
9# path for in-place upgrades. 9# path for in-place upgrades.