diff --git a/srcpkgs/qtile/patches/musl.patch b/srcpkgs/qtile/patches/musl.patch new file mode 100644 index 00000000000..93fbf89bb07 --- /dev/null +++ b/srcpkgs/qtile/patches/musl.patch @@ -0,0 +1,16 @@ +musl doesn't have posix_spawn_file_actions_addclosefrom_np, so python doesn't +have os.POSIX_SPAWN_CLOSEFROM on musl. + +see: https://github.com/qtile/qtile/issues/5210 + +--- a/libqtile/core/manager.py ++++ b/libqtile/core/manager.py +@@ -1331,7 +1331,7 @@ + (os.POSIX_SPAWN_DUP2, 2, null.fileno()), + ] + +- if sys.version_info.major >= 3 and sys.version_info.minor >= 13: ++ if hasattr(os, "POSIX_SPAWN_CLOSEFROM"): + # we should close all fds so that child processes don't + # accidentally write to our x11 event loop or whatever; we never + # used to do this, so it seems fine to only do it on python 3.13 or diff --git a/srcpkgs/qtile/template b/srcpkgs/qtile/template index 63ba2e7c0a0..7d2b9ec01c6 100644 --- a/srcpkgs/qtile/template +++ b/srcpkgs/qtile/template @@ -1,7 +1,7 @@ # Template file for 'qtile' pkgname=qtile version=0.31.0 -revision=1 +revision=2 build_style=python3-pep517 _wlroots=0.17 hostmakedepends="python3-setuptools_scm python3-cairocffi python3-xcffib python3-wheel