public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] meta: Remove locale.conf hack for newer systemd
Date: Fri, 30 Jun 2023 18:14:08 +0300	[thread overview]
Message-ID: <20230630151408.174865-1-amikan@ilbers.de> (raw)

Starting from systemd 253 /etc/locale.conf creation is already handled
by systemd package itself. So do not create symlink manually.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/classes/image-locales-extension.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/image-locales-extension.bbclass b/meta/classes/image-locales-extension.bbclass
index b48bcec8..9149d643 100644
--- a/meta/classes/image-locales-extension.bbclass
+++ b/meta/classes/image-locales-extension.bbclass
@@ -90,7 +90,9 @@ __EOF__
                 --show systemd || echo "0" )
 
             if dpkg --compare-versions "$SYSTEMD_VERSION" "ge" "251"; then
-                ln -s /etc/default/locale /etc/locale.conf
+                if dpkg --compare-versions "$SYSTEMD_VERSION" "lt" "253"; then
+                    ln -s /etc/default/locale /etc/locale.conf
+                fi
             fi
 
             echo 'reconfigure locales'
-- 
2.34.1


             reply	other threads:[~2023-06-30 15:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-30 15:14 Anton Mikanovich [this message]
2023-07-06  4:43 ` Uladzimir Bely

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=20230630151408.174865-1-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox