From 60924d05aa54d104f5b3f0631bb09102927093af Mon Sep 17 00:00:00 2001 From: Lasath Fernando Date: Fri, 4 Oct 2024 11:03:22 +0000 Subject: [PATCH] Speed up build by limiting generated locales to the UTF-8 variants because Qt... --- mkosi.postinst.chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot index 30ea561..22f630c 100755 --- a/mkosi.postinst.chroot +++ b/mkosi.postinst.chroot @@ -22,7 +22,8 @@ rm -rfv /efi/ # Generate all locales. Because /usr/lib is not writable in the target system we need to ship all locales pre-generated. # Sucks. But oh well. -cat /usr/share/i18n/SUPPORTED > /etc/locale.gen +# We can at least limit to UTF-8 variants because nobody uses the rest and Qt doesn't even work with them. +grep UTF-8 /usr/share/i18n/SUPPORTED > /etc/locale.gen locale-gen # Install build and runtime dependencies