Github messages for voidlinux
 help / color / mirror / Atom feed
From: oreo639 <oreo639@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gdm: fix language selection by ensuring LANG=GDM_LANG
Date: Tue, 20 Jun 2023 23:21:50 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44545@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

There is a new pull request by oreo639 against master on the void-packages repository

https://github.com/oreo639/void-packages gdm
https://github.com/void-linux/void-packages/pull/44545

gdm: fix language selection by ensuring LANG=GDM_LANG
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44545.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gdm-44545.patch --]
[-- Type: text/x-diff, Size: 1017 bytes --]

From 4479ae617dd2a1c66aad2132448652df68cacc88 Mon Sep 17 00:00:00 2001
From: oreo639 <oreo6391@gmail.com>
Date: Tue, 20 Jun 2023 14:19:39 -0700
Subject: [PATCH] gdm: fix language selection by ensuring LANG=GDM_LANG

---
 srcpkgs/gdm/files/zz-gdm.sh | 5 +++++
 srcpkgs/gdm/template        | 2 ++
 2 files changed, 7 insertions(+)
 create mode 100644 srcpkgs/gdm/files/zz-gdm.sh

diff --git a/srcpkgs/gdm/files/zz-gdm.sh b/srcpkgs/gdm/files/zz-gdm.sh
new file mode 100644
index 000000000000..bd9b995e3f11
--- /dev/null
+++ b/srcpkgs/gdm/files/zz-gdm.sh
@@ -0,0 +1,5 @@
+# This must run after locale.sh
+
+if [ -n "$GDM_LANG" ]; then
+	export LANG="$GDM_LANG"
+fi
diff --git a/srcpkgs/gdm/template b/srcpkgs/gdm/template
index 5cdcf618cb83..d02bc3442ed8 100644
--- a/srcpkgs/gdm/template
+++ b/srcpkgs/gdm/template
@@ -56,6 +56,8 @@ post_install() {
 			vsed -i "s/pam_systemd\.so/pam_elogind.so/" "$f"
 		fi
 	done
+	vmkdir etc/profile.d
+	vinstall ${FILESDIR}/zz-gdm.sh 644 etc/profile.d
 
 	# runit service
 	vsv gdm

             reply	other threads:[~2023-06-20 21:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20 21:21 oreo639 [this message]
2023-06-20 21:33 ` [PR PATCH] [Updated] " oreo639
2023-09-19  1:45 ` gdm: fix language selection by ensuring LANG equals GDM_LANG github-actions
2023-09-19  2:00 ` oreo639
2023-09-22 20:42 ` [PR REVIEW] " ahesford
2023-09-22 20:42 ` ahesford
2023-12-22  1:46 ` github-actions
2023-12-22  2:17 ` [PR PATCH] [Updated] " oreo639
2023-12-22  2:26 ` oreo639
2024-03-23  1:44 ` github-actions
2024-04-07  1:46 ` [PR PATCH] [Closed]: " github-actions

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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44545@inbox.vuxu.org \
    --to=oreo639@users.noreply.github.com \
    --cc=ml@inbox.vuxu.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).