Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/simple-scan/, media-gfx/simple-scan/files/
Date: Tue, 25 Jan 2022 00:49:57
Message-Id: 1643071749.eb2cc8bc9dced2bcbfe7f92e019b849b52c3a543.sam@gentoo
1 commit: eb2cc8bc9dced2bcbfe7f92e019b849b52c3a543
2 Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be>
3 AuthorDate: Mon Jan 24 22:34:48 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 25 00:49:09 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb2cc8bc
7
8 media-gfx/simple-scan: fix build with meson-0.61
9
10 Closes: https://bugs.gentoo.org/831891
11 Signed-off-by: Christophe Lermytte <gentoo <AT> lermytte.be>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../files/40.7-fix-build-with-meson-0.61.1.patch | 39 ++++++++++++++++++++++
15 media-gfx/simple-scan/simple-scan-40.7.ebuild | 1 +
16 2 files changed, 40 insertions(+)
17
18 diff --git a/media-gfx/simple-scan/files/40.7-fix-build-with-meson-0.61.1.patch b/media-gfx/simple-scan/files/40.7-fix-build-with-meson-0.61.1.patch
19 new file mode 100644
20 index 000000000000..b1a161df922a
21 --- /dev/null
22 +++ b/media-gfx/simple-scan/files/40.7-fix-build-with-meson-0.61.1.patch
23 @@ -0,0 +1,39 @@
24 +https://gitlab.gnome.org/GNOME/simple-scan/-/commit/da6626debe00be1a0660f30cf2bf7629186c01d5
25 +https://bugs.gentoo.org/831891
26 +
27 +From: r-value <i@××××××.moe>
28 +Date: Tue, 16 Nov 2021 02:43:11 +0800
29 +Subject: [PATCH] Remove incorrect i18n.merge_file argument
30 +
31 +The positional argument was being silently ignored until meson 0.60.0 where
32 +it fails with "ERROR: Function does not take positional arguments".
33 +---
34 + data/meson.build | 6 ++----
35 + 1 file changed, 2 insertions(+), 4 deletions(-)
36 +
37 +diff --git a/data/meson.build b/data/meson.build
38 +index 2b5a0ee3..cf6e4ae1 100644
39 +--- a/data/meson.build
40 ++++ b/data/meson.build
41 +@@ -8,16 +8,14 @@ install_data ('org.gnome.SimpleScan.gschema.xml',
42 + install_dir: join_paths (datadir, 'glib-2.0', 'schemas'))
43 + meson.add_install_script ('meson_compile_gschema.py')
44 +
45 +-i18n.merge_file ('desktop-file',
46 +- input: 'simple-scan.desktop.in',
47 ++i18n.merge_file (input: 'simple-scan.desktop.in',
48 + output: 'simple-scan.desktop',
49 + install: true,
50 + install_dir: join_paths (datadir, 'applications'),
51 + po_dir: '../po',
52 + type: 'desktop')
53 +
54 +-i18n.merge_file ('appdata-file',
55 +- input: 'simple-scan.appdata.xml.in',
56 ++i18n.merge_file (input: 'simple-scan.appdata.xml.in',
57 + output: 'simple-scan.appdata.xml',
58 + install: true,
59 + install_dir: join_paths (datadir, 'metainfo'),
60 +--
61 +GitLab
62 +
63
64 diff --git a/media-gfx/simple-scan/simple-scan-40.7.ebuild b/media-gfx/simple-scan/simple-scan-40.7.ebuild
65 index 271640f4fb76..0b752878e6c9 100644
66 --- a/media-gfx/simple-scan/simple-scan-40.7.ebuild
67 +++ b/media-gfx/simple-scan/simple-scan-40.7.ebuild
68 @@ -47,6 +47,7 @@ BDEPEND="
69 PATCHES=(
70 # Add control for optional dependencies
71 "${FILESDIR}"/40.0-add-control-optional-deps.patch
72 + "${FILESDIR}/${PV}"-fix-build-with-meson-0.61.1.patch
73 )
74
75 src_prepare() {