From 4d1b0e5b3531fdae28490aca5c8d5a6a1f8019fe Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Thu, 16 Apr 2026 11:10:25 +0200 Subject: [PATCH] snapcraft, hooks: include /usr/share/X11/XErrorDB Include /usr/share/X11/XErrorDB (~42KB). This avoids needing to ship the file in the GPU drivers snap (typically mesa-2604) and setting it up in place with the help of snap layouts, which in turn would require construction of a writable mimic on top of /usr/share/X11. Signed-off-by: Maciek Borzecki --- hooks/602-cleanup-xkb.chroot | 1 - snapcraft.yaml | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/602-cleanup-xkb.chroot b/hooks/602-cleanup-xkb.chroot index 9f5683c7..823640c8 100755 --- a/hooks/602-cleanup-xkb.chroot +++ b/hooks/602-cleanup-xkb.chroot @@ -10,4 +10,3 @@ echo "I: Removing xkb data" # Remove /usr/share/xkeyboard-config-2 and the symlink to it (/usr/share/X11/xkb) rm -rv /usr/share/xkeyboard-config-2 rm -v /usr/share/X11/xkb -rmdir /usr/share/X11 diff --git a/snapcraft.yaml b/snapcraft.yaml index 8ec12520..5abf4146 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -138,6 +138,7 @@ parts: libpam-pwquality_libs libpciaccess0_libs libwrap0_host-files + libx11-data_xerrordb locales_standard netcat-openbsd_bins