Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903503 - lxde-base/lxdm-0.5.3-r4: lxdm overwrites LC_MESSAGES=C with LC_MESSAGES=en_GB.utf8
Summary: lxde-base/lxdm-0.5.3-r4: lxdm overwrites LC_MESSAGES=C with LC_MESSAGES=en_GB...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-28 22:30 UTC by Jonas Stein
Modified: 2023-06-25 13:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lxdm-0.5.3-r4.log (lxde-base:lxdm-0.5.3-r4:20230328-223254.log,2.20 KB, text/plain)
2023-03-28 22:48 UTC, Jonas Stein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Stein gentoo-dev 2023-03-28 22:30:37 UTC
lxdm overwrites LC_MESSAGES=C with LC_MESSAGES=en_GB.utf8

The wrong LC_MESSAGES value causes also 
"setlocale: unsupported locale setting"
as follows:

# emerge --info lxde-base/lxdm
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Portage 3.0.45.3 (python 3.10.10-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-12, glibc-2.37-r1, 5.15.104-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.104-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.37
KiB Mem:    65788528 total,  60814760 free
KiB Swap:     524284 total,    524284 free
Timestamp of repository gentoo: Tue, 28 Mar 2023 20:30:01 +0000
Head commit of repository gentoo: 1dd0c846294dcb78a7d16ae2922c9b24b28474c3
sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p3) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust:             1.68.1::gentoo
dev-util/cmake:            3.26.1::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.1::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r3::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r1::gentoo, 16.0.0::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo, 16.0.0::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r1::gentoo
Repositories:

gentoo
    location: /var/db/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE MakeMKV-EULA NPSL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en"
MAKEOPTS="-j28"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bash-completion bzip2 cdda cdr cli corefonts crypt cups dbus dbusudev dri dvd dvdr encode flac fortran gdbm gif git iconv ipv6 jpeg latex libglvnd libtirpc mad mp3 mp4 mpeg mpx multilib ncurses nls nptl ogg opengl openmp pam pcre pdf pm-utils png popcnt pulseaudio qt5 readline seccomp smp sna ssl svg systemd test-rust tiff truetype udev udisks unicode utf8 vim vim-syntax vorbis xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sha sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby31" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

lxde-base/lxdm-0.5.3-r4::gentoo was built with the following:
USE="nls pam systemd -debug (-elogind)" ABI_X86="(64)"


Reproducible: Always

Steps to Reproduce:
1. systemctl start sddm.service
2. run locale
$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

# all is fine


3. systemctl disable sddm.service 
   systemctl enable lxdm.service

4. run locale
$ locale
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES=en_GB.utf8
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

# LC_MESSAGES=en_GB.utf8 is set. Yet unclear why exactly.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-28 22:35:42 UTC
$ grep -rsin en_GB.utf8 /var/tmp/portage/lxde-base/lxdm-0.5.3-r4/work/lxdm-0.5.3
# nothing
$ grep -rsin en_GB /var/tmp/portage/lxde-base/lxdm-0.5.3-r4/work/lxdm-0.5.3
# nothing

What's in the systemd service?
Comment 2 Jonas Stein gentoo-dev 2023-03-28 22:48:37 UTC
Created attachment 859209 [details]
lxdm-0.5.3-r4.log

Users who started lxde will see typical warnings during the emerge of packages:

stein@mib > sudo -s
root@mib> emerge -1a lxde-base/lxdm
....

var/tmp/portage/lxde-base/lxdm-0.5.3-r4/temp/environment: line 95: warning: setlocale: LC_MESSAGES: cannot change locale (en_GB.utf8)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_GB.utf8",
	LC_ALL = (unset),
	LC_MESSAGES = "en_GB.utf8",
	LC_CTYPE = "C.UTF-8",
	LC_COLLATE = "C",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_GB.utf8",
	LC_ALL = (unset),
	LC_MESSAGES = "en_GB.utf8",
	LC_CTYPE = "C.UTF-8",
	LC_COLLATE = "C",
	LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/var/tmp/portage/lxde-base/lxdm-0.5.3-r4/temp/environment: line 95: warning: setlocale: LC_MESSAGES: cannot change locale (en_GB.utf8)
/var/tmp/portage/lxde-base/lxdm-0.5.3-r4/temp/environment: line 95: warning: setlocale: LC_MESSAGES: cannot change locale (en_GB.utf8)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-28 22:50:01 UTC
(In reply to Jonas Stein from comment #2)
> Created attachment 859209 [details]
> lxdm-0.5.3-r4.log
> 
> Users who started lxde will see typical warnings during the emerge of
> packages:
> 
> stein@mib > sudo -s
> root@mib> emerge -1a lxde-base/lxdm
> 

This part isn't relevant - if it's already been set, then you'll get those warnings. We need to know how it got set in the first place.

What does 'systemctl cat lxdm.service' say?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-28 22:51:30 UTC
It's also weird if it *immediately* affects your shell.

grep -rsin en_GB /etc?
Comment 5 Jonas Stein gentoo-dev 2023-03-29 01:24:00 UTC
# grep -rsin en_GB /etc | egrep -v -i 'config-archive|speech-dispatcher'
/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop:12:Name[en_GB]=PolicyKit Authentication Agent
/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop:60:Comment[en_GB]=PolicyKit Authentication Agent


# systemctl cat lxdm.service                       
# Warning: lxdm.service changed on disk, the version systemd has loaded is outdated.
# This output shows the current version of the unit's original fragment and drop-in files.
# If fragments or drop-ins were added or removed, they are not properly reflected in this output.
# Run 'systemctl daemon-reload' to reload units.
# /usr/lib/systemd/system/lxdm.service
[Unit]
Description=LXDE Display Manager
Conflicts=getty@tty1.service plymouth-quit.service
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service

[Service]
ExecStart=/usr/sbin/lxdm
Restart=always
IgnoreSIGPIPE=no

[Install]
Alias=display-manager.service



lxdm has a dropdown menu for "Language". I left it on default. Perhaps something is happening there. I could not investigate it any further yet.