diff --git a/srcpkgs/lutris/patches/musl-locale.patch b/srcpkgs/lutris/patches/musl-locale.patch new file mode 100644 index 00000000000..2da4aeca616 --- /dev/null +++ b/srcpkgs/lutris/patches/musl-locale.patch @@ -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 + + diff --git a/srcpkgs/lutris/template b/srcpkgs/lutris/template index a426ceaaab6..5156d545e76 100644 --- a/srcpkgs/lutris/template +++ b/srcpkgs/lutris/template @@ -1,7 +1,7 @@ # Template file for 'lutris' pkgname=lutris version=0.5.11 -revision=1 +revision=2 build_style=meson hostmakedepends="gettext python3-setuptools python3-gobject gtk+3-devel" depends="python3-dbus python3-gobject python3-yaml python3-evdev python3-Pillow