parent
102b2000ed
commit
c694d7e333
23
srcpkgs/lutris/patches/musl-locale.patch
Normal file
23
srcpkgs/lutris/patches/musl-locale.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
upstreamed in https://github.com/lutris/lutris/pull/4496
|
||||||
|
|
||||||
|
--- a/lutris/util/system.py
|
||||||
|
+++ b/lutris/util/system.py
|
||||||
|
@@ -431,9 +431,15 @@
|
||||||
|
|
||||||
|
def get_locale_list():
|
||||||
|
"""Return list of available locales"""
|
||||||
|
- with subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE) as locale_getter:
|
||||||
|
- output = locale_getter.communicate()
|
||||||
|
- locales = output[0].decode('ASCII').split() # locale names use only ascii characters
|
||||||
|
+ try:
|
||||||
|
+ with subprocess.Popen(['locale', '-a'], stdout=subprocess.PIPE) as locale_getter:
|
||||||
|
+ output = locale_getter.communicate()
|
||||||
|
+ locales = output[0].decode('ASCII').split() # locale names use only ascii characters
|
||||||
|
+ except FileNotFoundError:
|
||||||
|
+ if lang := os.environ.get('LANG', ''):
|
||||||
|
+ locales = [lang]
|
||||||
|
+ else:
|
||||||
|
+ locales = []
|
||||||
|
return locales
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
# Template file for 'lutris'
|
# Template file for 'lutris'
|
||||||
pkgname=lutris
|
pkgname=lutris
|
||||||
version=0.5.11
|
version=0.5.11
|
||||||
revision=1
|
revision=2
|
||||||
build_style=meson
|
build_style=meson
|
||||||
hostmakedepends="gettext python3-setuptools python3-gobject gtk+3-devel"
|
hostmakedepends="gettext python3-setuptools python3-gobject gtk+3-devel"
|
||||||
depends="python3-dbus python3-gobject python3-yaml python3-evdev python3-Pillow
|
depends="python3-dbus python3-gobject python3-yaml python3-evdev python3-Pillow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user