main/at-spi2-atk: default to disabled

Most people are not going to need these running:

/usr/libexec/at-spi-bus-launcher
/usr/libexec/at-spi2-registryd --use-gnome-session

... and their runnning can cause problems, e.g.:
https://bugs.alpinelinux.org/issues/9574

Fixes #9574
This commit is contained in:
Paul Bredbury 2019-02-24 21:17:12 +00:00 committed by Leonardo Arena
parent 6be7e44971
commit 95bb0f4036
2 changed files with 34 additions and 4 deletions

View File

@ -2,9 +2,9 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=at-spi2-atk
pkgver=2.26.2
pkgrel=0
pkgrel=1
pkgdesc="A GTK+ module that bridges ATK to D-Bus at-spi"
url="http://www.linuxfoundation.org/en/AT-SPI_on_D-Bus"
url="https://www.freedesktop.org/wiki/Accessibility/AT-SPI2/"
arch="all"
options="!check" # Requires dbus daemon running.
license="LGPL-2.0-or-later"
@ -14,7 +14,8 @@ makedepends="$depends_dev glib-dev at-spi2-core-dev intltool"
checkdepends="libxml2-dev"
install=""
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/at-spi2-atk/${pkgver%.*}/at-spi2-atk-$pkgver.tar.xz"
source="https://download.gnome.org/sources/at-spi2-atk/${pkgver%.*}/at-spi2-atk-$pkgver.tar.xz
bridge-default-off.patch"
builddir="$srcdir"/at-spi2-atk-$pkgver
build() {
@ -40,4 +41,5 @@ package() {
make DESTDIR="$pkgdir" install
}
sha512sums="f938b8e2b999fcdfa13e9433bd13c39430bae2ceae0c664a24caccc6af522947bf73de02de3c359807f5370a85961193df2ba24b193b60b915c61828ea747bb2 at-spi2-atk-2.26.2.tar.xz"
sha512sums="f938b8e2b999fcdfa13e9433bd13c39430bae2ceae0c664a24caccc6af522947bf73de02de3c359807f5370a85961193df2ba24b193b60b915c61828ea747bb2 at-spi2-atk-2.26.2.tar.xz
592f167c6255b3c44b2fcbbe9c9f8ab0133455fd4a393c47e833fedeccc84dd1ce2f4d2507f01116f6560fe58928b379355e438b6813214de4762ef95f4eec41 bridge-default-off.patch"

View File

@ -0,0 +1,28 @@
diff -Naur a/atk-adaptor/bridge.c b/atk-adaptor/bridge.c
--- a/atk-adaptor/bridge.c 2018-09-03 22:29:05.000000000 +0100
+++ b/atk-adaptor/bridge.c 2019-02-24 20:10:53.941760839 +0000
@@ -916,7 +916,7 @@
/*
* Checks the status of the environment variables
*
- * At this moment it only checks NO_AT_BRIDGE
+ * At this moment it only checks AT_BRIDGE
*
* Returns TRUE if there isn't anything on the environment preventing
* you to load the bridge, FALSE otherwise
@@ -926,12 +926,12 @@
{
const gchar *envvar;
- envvar = g_getenv ("NO_AT_BRIDGE");
+ envvar = g_getenv ("AT_BRIDGE");
if (envvar && atoi (envvar) == 1)
- return FALSE;
- else
return TRUE;
+ else
+ return FALSE;
}
void