1 |
commit: b707dc5311d1c6a1eefb9f6bf28cf4d217136192 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 29 00:51:59 2021 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 29 00:55:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b707dc53 |
7 |
|
8 |
dev-libs/gjs: backport fix for meson-0.60.2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/827538 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
dev-libs/gjs/files/gjs-1.70.0-meson-0.60.2.patch | 76 ++++++++++++++++++++++++ |
14 |
dev-libs/gjs/gjs-1.70.0.ebuild | 4 ++ |
15 |
2 files changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/gjs/files/gjs-1.70.0-meson-0.60.2.patch b/dev-libs/gjs/files/gjs-1.70.0-meson-0.60.2.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..9a051131d98c |
20 |
--- /dev/null |
21 |
+++ b/dev-libs/gjs/files/gjs-1.70.0-meson-0.60.2.patch |
22 |
@@ -0,0 +1,76 @@ |
23 |
+From 59bbb5e4795d2b6e41ce27ae3b18257e75b71a19 Mon Sep 17 00:00:00 2001 |
24 |
+From: Jan Beich <jbeich@×××××××.org> |
25 |
+Date: Sat, 27 Nov 2021 22:57:11 +0000 |
26 |
+Subject: [PATCH] build: disable gir install via list to pacify meson >= 0.60.2 |
27 |
+ |
28 |
+meson.build:580:0: ERROR: "install_dir" must be specified when installing a target |
29 |
+installed-tests/js/meson.build:73:0: ERROR: "install_dir" must be specified when installing a target |
30 |
+installed-tests/js/meson.build:91:4: ERROR: "install_dir" must be specified when installing a target |
31 |
+installed-tests/js/meson.build:104:0: ERROR: "install_dir" must be specified when installing a target |
32 |
+installed-tests/js/libgjstesttools/meson.build:13:0: ERROR: "install_dir" must be specified when installing a target |
33 |
+--- |
34 |
+ installed-tests/js/libgjstesttools/meson.build | 2 +- |
35 |
+ installed-tests/js/meson.build | 6 +++--- |
36 |
+ meson.build | 2 +- |
37 |
+ 3 files changed, 5 insertions(+), 5 deletions(-) |
38 |
+ |
39 |
+diff --git a/installed-tests/js/libgjstesttools/meson.build b/installed-tests/js/libgjstesttools/meson.build |
40 |
+index 2e57483a..3ca4d7ed 100644 |
41 |
+--- a/installed-tests/js/libgjstesttools/meson.build |
42 |
++++ b/installed-tests/js/libgjstesttools/meson.build |
43 |
+@@ -14,7 +14,7 @@ gjstest_tools_gir = gnome.generate_gir(libgjstesttools, |
44 |
+ includes: ['GObject-2.0', 'Gio-2.0'], sources: gjstest_tools_sources, |
45 |
+ namespace: 'GjsTestTools', nsversion: '1.0', |
46 |
+ symbol_prefix: 'gjs_test_tools_', extra_args: '--warn-error', |
47 |
+- install: get_option('installed_tests'), install_dir_gir: false, |
48 |
++ install: get_option('installed_tests'), install_dir_gir: [false], |
49 |
+ install_dir_typelib: installed_tests_execdir) |
50 |
+ gjstest_tools_typelib = gjstest_tools_gir[1] |
51 |
+ libgjstesttools_dep = declare_dependency( |
52 |
+diff --git a/installed-tests/js/meson.build b/installed-tests/js/meson.build |
53 |
+index 2f007351..16b59660 100644 |
54 |
+--- a/installed-tests/js/meson.build |
55 |
++++ b/installed-tests/js/meson.build |
56 |
+@@ -74,7 +74,7 @@ regress_gir = gnome.generate_gir(libregress, includes: regress_gir_includes, |
57 |
+ sources: regress_sources, namespace: 'Regress', nsversion: '1.0', |
58 |
+ identifier_prefix: 'Regress', symbol_prefix: 'regress_', |
59 |
+ extra_args: ['--warn-all', '--warn-error'] + regress_gir_c_args, |
60 |
+- install: get_option('installed_tests'), install_dir_gir: false, |
61 |
++ install: get_option('installed_tests'), install_dir_gir: [false], |
62 |
+ install_dir_typelib: installed_tests_execdir) |
63 |
+ regress_typelib = regress_gir[1] |
64 |
+ |
65 |
+@@ -91,7 +91,7 @@ if not skip_warnlib |
66 |
+ warnlib_gir = gnome.generate_gir(libwarnlib, includes: ['Gio-2.0'], |
67 |
+ sources: warnlib_sources, namespace: 'WarnLib', nsversion: '1.0', |
68 |
+ symbol_prefix: 'warnlib_', header: 'warnlib.h', |
69 |
+- install: get_option('installed_tests'), install_dir_gir: false, |
70 |
++ install: get_option('installed_tests'), install_dir_gir: [false], |
71 |
+ install_dir_typelib: installed_tests_execdir) |
72 |
+ warnlib_typelib = warnlib_gir[1] |
73 |
+ endif |
74 |
+@@ -105,7 +105,7 @@ gimarshallingtests_gir = gnome.generate_gir(libgimarshallingtests, |
75 |
+ includes: ['Gio-2.0'], sources: gimarshallingtests_sources, |
76 |
+ namespace: 'GIMarshallingTests', nsversion: '1.0', |
77 |
+ symbol_prefix: 'gi_marshalling_tests_', extra_args: '--warn-error', |
78 |
+- install: get_option('installed_tests'), install_dir_gir: false, |
79 |
++ install: get_option('installed_tests'), install_dir_gir: [false], |
80 |
+ install_dir_typelib: installed_tests_execdir) |
81 |
+ gimarshallingtests_typelib = gimarshallingtests_gir[1] |
82 |
+ |
83 |
+diff --git a/meson.build b/meson.build |
84 |
+index 437b3fd3..73d0eaca 100644 |
85 |
+--- a/meson.build |
86 |
++++ b/meson.build |
87 |
+@@ -581,7 +581,7 @@ gjs_private_gir = gnome.generate_gir(libgjs, |
88 |
+ includes: ['GObject-2.0', 'Gio-2.0'], sources: libgjs_private_sources, |
89 |
+ namespace: 'GjsPrivate', nsversion: '1.0', identifier_prefix: 'Gjs', |
90 |
+ symbol_prefix: 'gjs_', extra_args: '--warn-error', install: true, |
91 |
+- install_dir_gir: false, install_dir_typelib: pkglibdir / 'girepository-1.0') |
92 |
++ install_dir_gir: [false], install_dir_typelib: pkglibdir / 'girepository-1.0') |
93 |
+ gjs_private_typelib = gjs_private_gir[1] |
94 |
+ |
95 |
+ ### Build gjs-console interpreter ############################################## |
96 |
+-- |
97 |
+GitLab |
98 |
+ |
99 |
|
100 |
diff --git a/dev-libs/gjs/gjs-1.70.0.ebuild b/dev-libs/gjs/gjs-1.70.0.ebuild |
101 |
index ea422c9bfc60..6560dd57d686 100644 |
102 |
--- a/dev-libs/gjs/gjs-1.70.0.ebuild |
103 |
+++ b/dev-libs/gjs/gjs-1.70.0.ebuild |
104 |
@@ -31,6 +31,10 @@ BDEPEND=" |
105 |
virtual/pkgconfig |
106 |
" |
107 |
|
108 |
+PATCHES=( |
109 |
+ "${FILESDIR}/gjs-1.70.0-meson-0.60.2.patch" |
110 |
+) |
111 |
+ |
112 |
src_configure() { |
113 |
append-cppflags -DG_DISABLE_CAST_CHECKS |