summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/libxcb/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libxcb/package.py b/var/spack/repos/builtin/packages/libxcb/package.py
index fefdebd20c..2d5959cc8c 100644
--- a/var/spack/repos/builtin/packages/libxcb/package.py
+++ b/var/spack/repos/builtin/packages/libxcb/package.py
@@ -60,3 +60,13 @@ class Libxcb(AutotoolsPackage, XorgPackage):
def patch(self):
filter_file("typedef struct xcb_auth_info_t {", "typedef struct {", "src/xcb.h")
+
+ # libxcb fails to build with non-UTF-8 locales, see:
+ # https://www.linuxfromscratch.org/blfs/view/git/x/libxcb.html
+ # https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/53 (merged in 1.17.0)
+ # https://gitlab.freedesktop.org/xorg/lib/libxcb/-/merge_requests/60
+ # If a newer release can be verified to build with LC_ALL=en_US.ISO-8859-1,
+ # then we can limit the following function, e.g.
+ # when("@:1.17")
+ def setup_build_environment(self, env):
+ env.set("LC_ALL", "C.UTF-8")