From c8f629bbedde5ecfa9c2731ddd6fdb11e9c90820 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Mon, 18 Aug 2025 04:54:06 -0600 Subject: [PATCH] pkgsel: add propagation of installer-chosen locale to tasksel --- ...e_installer-chosen_locale_to_tasksel.patch | 24 +++++++++++++++++++ helpers/make-pkgsel | 9 ++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 helpers/DATA/pkgsel/patch_changes/000-propagate_installer-chosen_locale_to_tasksel.patch diff --git a/helpers/DATA/pkgsel/patch_changes/000-propagate_installer-chosen_locale_to_tasksel.patch b/helpers/DATA/pkgsel/patch_changes/000-propagate_installer-chosen_locale_to_tasksel.patch new file mode 100644 index 0000000..83b0403 --- /dev/null +++ b/helpers/DATA/pkgsel/patch_changes/000-propagate_installer-chosen_locale_to_tasksel.patch @@ -0,0 +1,24 @@ +diff --git a/debian/postinst b/debian/postinst +index 2f35032b..da97a4c7 100755 +--- a/debian/postinst ++++ b/debian/postinst +@@ -158,8 +158,18 @@ fi + if db_get pkgsel/run_tasksel && [ "$RET" = true ]; then + log "starting tasksel" + db_progress INFO pkgsel/progress/tasksel ++ # Propagate installer-chosen locale to tasksel so tests/lang can auto-select l10n ++ db_get debian-installer/locale || true ++ LOCALE="$RET" ++ if [ -n "$LOCALE" ]; then ++ LANG="$LOCALE" ++ NOENC="${LOCALE%%.*}" ++ BASE="${NOENC%%_*}" ++ LANGUAGE="${NOENC}:${BASE}" ++ export LANG LANGUAGE ++ fi + apt-install tasksel # ensure tasksel is installed +- DEBIAN_TASKS_ONLY=1 in-target sh -c "tasksel --new-install --debconf-apt-progress='--from $tasksel_start --to $tasksel_end --logstderr'" || aptfailed ++ DEBIAN_TASKS_ONLY=1 in-target sh -c "LANG='$LANG' LANGUAGE='$LANGUAGE' tasksel --new-install --debconf-apt-progress='--from $tasksel_start --to $tasksel_end --logstderr'" || aptfailed + fi + + if db_get pkgsel/include/install-recommends; then diff --git a/helpers/make-pkgsel b/helpers/make-pkgsel index fc44f3c..27ac459 100644 --- a/helpers/make-pkgsel +++ b/helpers/make-pkgsel @@ -1,5 +1,6 @@ #!/bin/sh # +# Copyright (C) 2025 Luis Guzmán # Copyright (C) 2009-2021 Rubén Rodríguez # # This program is free software; you can redistribute it and/or modify @@ -17,11 +18,13 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=2 +VERSION=3 EXTERNAL='deb-src http://ftp.debian.org/debian trixie main' -REPOKEY=0E98404D386FA1D9 +REPOKEY=6ED0E7B82643E131 NETINST=true . ./config -changelog "Rebranded and adapted for Trisquel" +apply_patch_changes + +changelog "Add propagation of installer-chosen locale to tasksel" package