xorg.libX11: Fix spurious Xerror when running synchronized (#354891)

This commit is contained in:
Bobby Rong
2024-11-11 08:00:24 +08:00
committed by GitHub
+8
View File
@@ -149,6 +149,14 @@ self: super:
libX11 = super.libX11.overrideAttrs (attrs: {
outputs = [ "out" "dev" "man" ];
patches = [
# Fix spurious Xerror when running synchronized
# https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/264
(fetchpatch {
url = "https://gitlab.freedesktop.org/xorg/lib/libx11/-/commit/f3d6ebac35301d4ad068e307f0fbe6aa12ccbccb.patch";
hash = "sha256-wQNMsbQ+h9VlNiWr+r34AxvViC8fq02ZhcARRnw7O9k=";
})
];
configureFlags = attrs.configureFlags or []
++ malloc0ReturnsNullCrossFlag
++ lib.optional (stdenv.targetPlatform.useLLVM or false) "ac_cv_path_RAWCPP=cpp";