at-spi2-core: patch for version 2.40.1 and beyond (#28497)

at-spi2-core is automatically selecting dbus-broker and enabling systemd if it finds dbus-broker-launch which some systems might have even without systemd being part of the actual spack environment. This is not ideal for a spack package.
This commit is contained in:
Desmond Orton 2022-01-28 03:40:26 -06:00 committed by GitHub
parent f7f7a168e9
commit bf80a9f83a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,10 @@ class AtSpi2Core(MesonPackage):
depends_on('python', type='build')
depends_on('gobject-introspection')
@when('@2.40.1:')
def patch(self):
filter_file(r'dbus_broker.found\(\)', 'false', 'bus/meson.build')
def url_for_version(self, version):
"""Handle gnome's version-based custom URLs."""
url = 'http://ftp.gnome.org/pub/gnome/sources/at-spi2-core'