diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2022-08-23 16:36:06 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-23 10:04:07 -0700 |
commit | 607c9e8f3b218f7eb6d3087b4aa0970f9c07b280 (patch) | |
tree | 634351fe35b8967cdf081c8a3687dfc2fe55dce1 /meta-gnome | |
parent | 1aecfce30f6c529e8465e837820e40c6da77b603 (diff) | |
download | meta-openembedded-607c9e8f3b218f7eb6d3087b4aa0970f9c07b280.tar.gz |
babl: upgrade 0.1.92 -> 0.1.94
0001-meson-fix-misspelled-kwarg-name.patch
0002-meson-Various-fixes.patch
removed since they're included in 0.1.94
Changelog:
==========
Fix of crash on non-aligned data for SIMD, add commandline tool, improve vala
compatibility of introspection info.
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-gnome')
-rw-r--r-- | meta-gnome/recipes-gimp/babl/babl/0001-meson-fix-misspelled-kwarg-name.patch | 36 | ||||
-rw-r--r-- | meta-gnome/recipes-gimp/babl/babl/0002-meson-Various-fixes.patch | 132 | ||||
-rw-r--r-- | meta-gnome/recipes-gimp/babl/babl_0.1.94.bb (renamed from meta-gnome/recipes-gimp/babl/babl_0.1.92.bb) | 6 |
3 files changed, 2 insertions, 172 deletions
diff --git a/meta-gnome/recipes-gimp/babl/babl/0001-meson-fix-misspelled-kwarg-name.patch b/meta-gnome/recipes-gimp/babl/babl/0001-meson-fix-misspelled-kwarg-name.patch deleted file mode 100644 index 111dac648..000000000 --- a/meta-gnome/recipes-gimp/babl/babl/0001-meson-fix-misspelled-kwarg-name.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From ebcf4795f1132c5124d73a5ae2ca5c01319e584d Mon Sep 17 00:00:00 2001 | ||
2 | From: Eli Schwartz <eschwartz@archlinux.org> | ||
3 | Date: Sun, 13 Mar 2022 20:26:05 -0400 | ||
4 | Subject: [PATCH 1/2] meson: fix misspelled kwarg name | ||
5 | |||
6 | set10 doesn't have a `Description` kwarg, it does have a `description` | ||
7 | kwarg though. | ||
8 | |||
9 | This caused the conf variable to not have a description when it should | ||
10 | have one, and newer versions of Meson with better argument validation | ||
11 | error out with: | ||
12 | |||
13 | meson.build:58:5: ERROR: configuration_data.set10 got unknown keyword arguments "Description" | ||
14 | |||
15 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/babl/-/commit/b05b2826365a7dbc6ca1bf0977b848055cd0cbb6] | ||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | --- | ||
18 | meson.build | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/meson.build b/meson.build | ||
22 | index 487e470..2623e93 100644 | ||
23 | --- a/meson.build | ||
24 | +++ b/meson.build | ||
25 | @@ -55,7 +55,7 @@ lib_name = meson.project_name() + '-' + api_version | ||
26 | stability_version_number = (major_version != 0 ? minor_version : micro_version) | ||
27 | stable = (stability_version_number % 2 == 0) | ||
28 | |||
29 | -conf.set10('BABL_UNSTABLE', not stable, Description: | ||
30 | +conf.set10('BABL_UNSTABLE', not stable, description: | ||
31 | 'Define to 1 if this is an unstable version of BABL.') | ||
32 | |||
33 | conf.set ('BABL_MAJOR_VERSION', '@0@'.format(major_version)) | ||
34 | -- | ||
35 | 2.36.0 | ||
36 | |||
diff --git a/meta-gnome/recipes-gimp/babl/babl/0002-meson-Various-fixes.patch b/meta-gnome/recipes-gimp/babl/babl/0002-meson-Various-fixes.patch deleted file mode 100644 index 919653bf2..000000000 --- a/meta-gnome/recipes-gimp/babl/babl/0002-meson-Various-fixes.patch +++ /dev/null | |||
@@ -1,132 +0,0 @@ | |||
1 | From 06e16da32dfaad02434fd9937d298ea1ece256ce Mon Sep 17 00:00:00 2001 | ||
2 | From: Xavier Claessens <xavier.claessens@collabora.com> | ||
3 | Date: Sat, 23 Apr 2022 10:33:17 -0400 | ||
4 | Subject: [PATCH 2/2] meson: Various fixes | ||
5 | |||
6 | - Add missing lcms dependencies. That's needed when lcms is a subproject | ||
7 | otherwise those targets does not find its headers. | ||
8 | - Add lcms2 wrap so meson can build it as subproject in case the | ||
9 | dependency is not found on system. | ||
10 | - Fix couple meson warnings | ||
11 | - Use meson.override_dependency() so babl can be used as subproject | ||
12 | without hardcoding "babl_dep" variable name in main project. | ||
13 | |||
14 | Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/babl/-/commit/2dc7fc403fe427a889913ef0cfb71de85b4326ec] | ||
15 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
16 | --- | ||
17 | babl/meson.build | 4 +++- | ||
18 | extensions/meson.build | 1 + | ||
19 | meson.build | 4 +++- | ||
20 | subprojects/lcms2.wrap | 12 ++++++++++++ | ||
21 | tests/meson.build | 2 +- | ||
22 | tools/meson.build | 2 +- | ||
23 | 6 files changed, 21 insertions(+), 4 deletions(-) | ||
24 | create mode 100644 subprojects/lcms2.wrap | ||
25 | |||
26 | diff --git a/babl/meson.build b/babl/meson.build | ||
27 | index d432dca..70fb131 100644 | ||
28 | --- a/babl/meson.build | ||
29 | +++ b/babl/meson.build | ||
30 | @@ -138,7 +138,7 @@ babl = library( | ||
31 | link_args: babl_link_args, | ||
32 | link_with: simd_extra, | ||
33 | dependencies: babl_deps, | ||
34 | - link_depends: version_script, | ||
35 | + link_depends: version_script[0], | ||
36 | version: so_version, | ||
37 | install: true, | ||
38 | ) | ||
39 | @@ -165,4 +165,6 @@ if build_gir | ||
40 | install: true, | ||
41 | ) | ||
42 | endif | ||
43 | +else | ||
44 | + babl_gir = [] | ||
45 | endif | ||
46 | diff --git a/extensions/meson.build b/extensions/meson.build | ||
47 | index 23672bb..9935f29 100644 | ||
48 | --- a/extensions/meson.build | ||
49 | +++ b/extensions/meson.build | ||
50 | @@ -6,6 +6,7 @@ no_cflags = [] | ||
51 | babl_ext_dep = [ | ||
52 | math, | ||
53 | thread, | ||
54 | + lcms, | ||
55 | ] | ||
56 | |||
57 | # Include directories | ||
58 | diff --git a/meson.build b/meson.build | ||
59 | index 2623e93..7e7a935 100644 | ||
60 | --- a/meson.build | ||
61 | +++ b/meson.build | ||
62 | @@ -451,6 +451,7 @@ if git_bin.found() and run_command( | ||
63 | git_bin, | ||
64 | 'rev-parse', | ||
65 | '--is-inside-work-tree', | ||
66 | + check: true, | ||
67 | ).returncode() == 0 | ||
68 | git_version_h = vcs_tag( | ||
69 | input : 'git-version.h.in', | ||
70 | @@ -531,13 +532,14 @@ babl_dep = declare_dependency( | ||
71 | link_with : babl, | ||
72 | sources: [ | ||
73 | babl_version_h, | ||
74 | - is_variable('babl_gir') ? babl_gir : [] | ||
75 | + build_gir ? babl_gir : [] | ||
76 | ], | ||
77 | variables: { | ||
78 | 'babl_path' : babl_extensions_build_dir, | ||
79 | 'babl_libdir' : babl_library_build_dir, | ||
80 | }, | ||
81 | ) | ||
82 | +meson.override_dependency('babl', babl_dep) | ||
83 | |||
84 | ################################################################################ | ||
85 | # Build summary | ||
86 | diff --git a/subprojects/lcms2.wrap b/subprojects/lcms2.wrap | ||
87 | new file mode 100644 | ||
88 | index 0000000..2cc69df | ||
89 | --- /dev/null | ||
90 | +++ b/subprojects/lcms2.wrap | ||
91 | @@ -0,0 +1,12 @@ | ||
92 | +[wrap-file] | ||
93 | +directory = Little-CMS-2.12 | ||
94 | +source_url = https://github.com/mm2/Little-CMS/archive/refs/tags/2.12.tar.gz | ||
95 | +source_filename = lcms2-2.12.tar.gz | ||
96 | +source_hash = e501f1482fc424550ef3abbf86bf1c66090e1661249e89552d39ed5bf935df66 | ||
97 | +patch_filename = lcms2_2.12-2_patch.zip | ||
98 | +patch_url = https://wrapdb.mesonbuild.com/v2/lcms2_2.12-2/get_patch | ||
99 | +patch_hash = 3ac6944ac4b8d8507b85961d98cb287532945183d0e8f094c77810e793b6bebe | ||
100 | + | ||
101 | +[provide] | ||
102 | +lcms2 = liblcms2_dep | ||
103 | + | ||
104 | diff --git a/tests/meson.build b/tests/meson.build | ||
105 | index eee8895..7c67e70 100644 | ||
106 | --- a/tests/meson.build | ||
107 | +++ b/tests/meson.build | ||
108 | @@ -42,7 +42,7 @@ foreach test_name : test_names | ||
109 | test_name + '.c', | ||
110 | include_directories: [rootInclude, bablInclude], | ||
111 | link_with: babl, | ||
112 | - dependencies: thread, | ||
113 | + dependencies: [thread, lcms], | ||
114 | export_dynamic: true, | ||
115 | install: false, | ||
116 | ) | ||
117 | diff --git a/tools/meson.build b/tools/meson.build | ||
118 | index 2719335..89ccf40 100644 | ||
119 | --- a/tools/meson.build | ||
120 | +++ b/tools/meson.build | ||
121 | @@ -18,7 +18,7 @@ foreach tool_name : tool_names | ||
122 | tool_name + '.c', | ||
123 | include_directories: [rootInclude, bablInclude], | ||
124 | link_with: babl, | ||
125 | - dependencies: [math, thread], | ||
126 | + dependencies: [math, thread, lcms], | ||
127 | install: false, | ||
128 | ) | ||
129 | |||
130 | -- | ||
131 | 2.36.0 | ||
132 | |||
diff --git a/meta-gnome/recipes-gimp/babl/babl_0.1.92.bb b/meta-gnome/recipes-gimp/babl/babl_0.1.94.bb index f2e11c111..7161356c1 100644 --- a/meta-gnome/recipes-gimp/babl/babl_0.1.92.bb +++ b/meta-gnome/recipes-gimp/babl/babl_0.1.94.bb | |||
@@ -15,10 +15,8 @@ CFLAGS:append:toolchain-clang:mipsarch = " -ffp-exception-behavior=ignore " | |||
15 | CFLAGS:append:toolchain-clang:riscv64 = " -ffp-exception-behavior=ignore " | 15 | CFLAGS:append:toolchain-clang:riscv64 = " -ffp-exception-behavior=ignore " |
16 | 16 | ||
17 | SRC_URI = "https://download.gimp.org/pub/${BPN}/0.1/${BP}.tar.xz \ | 17 | SRC_URI = "https://download.gimp.org/pub/${BPN}/0.1/${BP}.tar.xz \ |
18 | file://0001-meson-fix-misspelled-kwarg-name.patch \ | ||
19 | file://0002-meson-Various-fixes.patch \ | ||
20 | file://0001-meson-Do-not-run-git-rev-parse-during-configure.patch \ | 18 | file://0001-meson-Do-not-run-git-rev-parse-during-configure.patch \ |
21 | " | 19 | " |
22 | SRC_URI[sha256sum] = "f667735028944b6375ad18f160a64ceb93f5c7dccaa9d8751de359777488a2c1" | 20 | SRC_URI[sha256sum] = "b6a8b28f55e0c17f5031fb7959e72ffe0fbf8196d1968ad6efc98d1b492c3bbe" |
23 | 21 | ||
24 | BBCLASSEXTEND = "native" | 22 | BBCLASSEXTEND = "native" |