all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: 70280@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#70280] [PATCH 4/5] services: build-vm: Provide only one locale.
Date: Mon,  8 Apr 2024 16:24:34 +0200	[thread overview]
Message-ID: <782fcd725ad7a8e576f6ee24259697d8aff714dd.1712585810.git.ludo@gnu.org> (raw)
In-Reply-To: <cover.1712585810.git.ludo@gnu.org>

* gnu/services/virtualization.scm (%virtual-build-machine-operating-system)
[locale, locale-definitions]: New fields.

Change-Id: Ieb24b3a0c210291d8c04412e4c263b5e377b5704
---
 gnu/services/virtualization.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm
index fc5adb94d0..d87e494348 100644
--- a/gnu/services/virtualization.scm
+++ b/gnu/services/virtualization.scm
@@ -46,6 +46,7 @@ (define-module (gnu services virtualization)
   #:use-module (gnu system shadow)
   #:autoload   (gnu system vm) (linux-image-startup-command
                                 virtualized-operating-system)
+  #:autoload   (gnu system locale) (locale-definition)
   #:use-module (gnu system)
   #:use-module (guix derivations)
   #:use-module (guix gexp)
@@ -1190,6 +1191,14 @@ (define %minimal-vm-syslog-config
 (define %virtual-build-machine-operating-system
   (operating-system
     (host-name "build-machine")
+
+    (locale "en_US.utf8")
+    (locale-definitions
+     ;; Save space by providing only one locale.
+     (list (locale-definition (name "en_US.utf8")
+                              (source "en_US")
+                              (charset "UTF-8"))))
+
     (bootloader (bootloader-configuration         ;unused
                  (bootloader grub-minimal-bootloader)
                  (targets '("/dev/null"))))
-- 
2.41.0





  parent reply	other threads:[~2024-04-08 14:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 14:22 [bug#70280] [PATCH 0/5] Reducing system size: locales and initrd Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 1/5] system: Remove ‘glibc-2.33’ from ‘%default-locale-libcs’ Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 2/5] system: ‘operating-system-locale-definitions’ includes the OS’ locale Ludovic Courtès
2024-04-10  9:09   ` pelzflorian (Florian Pelz)
2024-04-10  9:52     ` pelzflorian (Florian Pelz)
2024-04-15 16:23     ` Ludovic Courtès
2024-04-15 22:51       ` pelzflorian (Florian Pelz)
2024-04-17 15:16         ` Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 3/5] locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales Ludovic Courtès
2024-04-09 19:38   ` pelzflorian (Florian Pelz)
2024-04-15 16:22     ` Ludovic Courtès
2024-04-15 22:32       ` pelzflorian (Florian Pelz)
2024-04-17 15:20         ` Ludovic Courtès
2024-04-29 22:30           ` bug#70280: " Ludovic Courtès
2024-04-08 14:24 ` Ludovic Courtès [this message]
2024-04-08 14:24 ` [bug#70280] [PATCH 5/5] linux-initrd: Further strip the static Guile Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=782fcd725ad7a8e576f6ee24259697d8aff714dd.1712585810.git.ludo@gnu.org \
    --to=ludo@gnu.org \
    --cc=70280@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.