mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
qtile: fix crash on musl
This commit is contained in:
parent
b0f4d333d3
commit
f0845a6cd6
2 changed files with 17 additions and 1 deletions
16
srcpkgs/qtile/patches/musl.patch
Normal file
16
srcpkgs/qtile/patches/musl.patch
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue