Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-accessibility/at-spi2-core/, app-accessibility/at-spi2-core/files/
Date: Thu, 30 Aug 2018 22:54:54
Message-Id: 1535669625.7439891c294714fa8fa9598defae766ece517c2b.leio@gentoo
1 commit: 7439891c294714fa8fa9598defae766ece517c2b
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 30 22:34:31 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 30 22:53:45 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7439891c
7
8 app-accessibility/at-spi2-core: bump to 2.26.2
9
10 Package-Manager: Portage-2.3.48, Repoman-2.3.10
11
12 app-accessibility/at-spi2-core/Manifest | 1 +
13 .../at-spi2-core/at-spi2-core-2.26.2.ebuild | 55 ++++++++++++++++++++++
14 .../files/2.26.2-fix-inverted-logic.patch | 28 +++++++++++
15 3 files changed, 84 insertions(+)
16
17 diff --git a/app-accessibility/at-spi2-core/Manifest b/app-accessibility/at-spi2-core/Manifest
18 index 901f45fa8f7..6ea0e4c38af 100644
19 --- a/app-accessibility/at-spi2-core/Manifest
20 +++ b/app-accessibility/at-spi2-core/Manifest
21 @@ -1,2 +1,3 @@
22 DIST at-spi2-core-2.22.1.tar.xz 454048 BLAKE2B 5ee4cdb83815258d9be8b81870b590b2f85311acf75e3c830c00092cbe5dd66a07f933318ce7d4bc308308f6f87e46579b30948b67b8b7f753adc5e10589246b SHA512 2376b57ce744351ed09a13cd02f0c02264c0998860710cfcdac59f0efb78061512986f5d7305a2f6c594d70213722f81795620e8cd2c6587c6d3f1335477171f
23 DIST at-spi2-core-2.24.1.tar.xz 452440 BLAKE2B 2e3e262d507dadbdb8fc5bb1bd60d3dbe8a9c2946228b6dc551d0a9564684d96b1b6cbe29849c1d846b3106b5444a2c6880a10825ba20cca87893f6a52815023 SHA512 e7f354a90204f12d4e464a6b4e4cb27141af3715d7c5ec253bdd2ebe65bc7d191ae7b775c45470a1bd1fe2c0accdd4e84feeb5e1eb1a6c05f3e5e734371027be
24 +DIST at-spi2-core-2.26.2.tar.xz 494484 BLAKE2B 0c67cea9c0107fb6503a933de134eb662f192ae2a98734bde1b0629da151476858720d2dcb1791a00a44b61ae2ead945178fba659f88303c552567d7f3f9817b SHA512 6a8e158e30c37ce475467b6634aff046a318875271966d7bfa3e56052d0cd26cd37435d0b9ae14f079542b8b3e76088da5bd50ed39eb39f3f40394c55ed3f255
25
26 diff --git a/app-accessibility/at-spi2-core/at-spi2-core-2.26.2.ebuild b/app-accessibility/at-spi2-core/at-spi2-core-2.26.2.ebuild
27 new file mode 100644
28 index 00000000000..beb3feab8ee
29 --- /dev/null
30 +++ b/app-accessibility/at-spi2-core/at-spi2-core-2.26.2.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +GNOME2_LA_PUNT="yes"
37 +
38 +inherit gnome2 multilib-minimal
39 +
40 +DESCRIPTION="D-Bus accessibility specifications and registration daemon"
41 +HOMEPAGE="https://wiki.gnome.org/Accessibility"
42 +
43 +LICENSE="LGPL-2+"
44 +SLOT="2"
45 +IUSE="X +introspection"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos"
47 +
48 +# x11-libs/libSM is needed until upstream #719808 is solved either
49 +# making the dep unneeded or fixing their configure
50 +# Only libX11 is optional right now
51 +RDEPEND="
52 + >=dev-libs/glib-2.36:2[${MULTILIB_USEDEP}]
53 + >=sys-apps/dbus-1[${MULTILIB_USEDEP}]
54 + introspection? ( >=dev-libs/gobject-introspection-1.32.0:= )
55 + X? (
56 + x11-libs/libX11[${MULTILIB_USEDEP}]
57 + x11-libs/libXtst[${MULTILIB_USEDEP}]
58 + x11-libs/libXi[${MULTILIB_USEDEP}]
59 + )
60 +"
61 +DEPEND="${RDEPEND}
62 + >=dev-util/gtk-doc-am-1.25
63 + >=sys-devel/gettext-0.19.8
64 + virtual/pkgconfig[${MULTILIB_USEDEP}]
65 +"
66 +
67 +PATCHES=(
68 + # disable teamspaces test since that requires Novell.ICEDesktop.Daemon
69 + "${FILESDIR}/${PN}-2.0.2-disable-teamspaces-test.patch"
70 + "${FILESDIR}/${PV}-fix-inverted-logic.patch"
71 +)
72 +
73 +multilib_src_configure() {
74 + ECONF_SOURCE=${S} \
75 + gnome2_src_configure \
76 + $(multilib_native_use_enable introspection) \
77 + $(use_enable X x11)
78 +
79 + # work-around gtk-doc out-of-source brokedness
80 + if multilib_is_native_abi; then
81 + ln -s "${S}"/doc/libatspi/html doc/libatspi/html || die
82 + fi
83 +}
84 +
85 +multilib_src_compile() { gnome2_src_compile; }
86 +multilib_src_install() { gnome2_src_install; }
87
88 diff --git a/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch b/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch
89 new file mode 100644
90 index 00000000000..7aa10f8bfc2
91 --- /dev/null
92 +++ b/app-accessibility/at-spi2-core/files/2.26.2-fix-inverted-logic.patch
93 @@ -0,0 +1,28 @@
94 +From c2e87fe00b596dba20c9d57d406ab8faa744b15a Mon Sep 17 00:00:00 2001
95 +From: Maya Rashish <maya@××××××.org>
96 +Date: Sat, 2 Dec 2017 13:24:29 +0200
97 +Subject: [PATCH] Fix inverted logic.
98 +
99 +Don't write more into a buffer than it can hold.
100 +
101 +https://bugzilla.gnome.org/show_bug.cgi?id=791124
102 +---
103 + bus/at-spi-bus-launcher.c | 2 +-
104 + 1 file changed, 1 insertion(+), 1 deletion(-)
105 +
106 +diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
107 +index 261353f..eb2b8e3 100644
108 +--- a/bus/at-spi-bus-launcher.c
109 ++++ b/bus/at-spi-bus-launcher.c
110 +@@ -244,7 +244,7 @@ unix_read_all_fd_to_string (int fd,
111 + {
112 + ssize_t bytes_read;
113 +
114 +- while (max_bytes > 1 && (bytes_read = read (fd, buf, MAX (4096, max_bytes - 1))))
115 ++ while (max_bytes > 1 && (bytes_read = read (fd, buf, MIN (4096, max_bytes - 1))))
116 + {
117 + if (bytes_read < 0)
118 + return FALSE;
119 +--
120 +2.18.0
121 +