Description of problem: With "%_install_langs en_US.utf8" in /etc/rpm/macros.lang, locale is broken after glibc update. ~ ls -lh /usr/lib/locale/locale-archive -rw-r--r-- 1 root root 102K Jul 14 01:32 /usr/lib/locale/locale-archive ~ locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX This is strange since looking at https://bugzilla.redhat.com/show_bug.cgi?id=156477, en_US.utf8 should work. Version-Release number of selected component (if applicable): glibc-common-2.21-7.fc22.x86_64 How reproducible: Set /etc/rpm/macros.lang and reinstall glibc-common Actual results: locale -a gives errors, and only lists C and POSIX Expected results: locale -a should list C, POSIX, and en_US.utf8 Additional info: "%_install_langs en_US" works ~ ls -lh /usr/lib/locale/locale-archive -rw-r--r-- 1 root root 2.1M Jul 14 02:05 /usr/lib/locale/locale-archive ~ locale -a C en_US en_US.iso88591 en_US.iso885915 en_US.utf8 POSIX
(In reply to Loïc Yhuel from comment #0) > Description of problem: > With "%_install_langs en_US.utf8" in /etc/rpm/macros.lang, locale is broken > after glibc update. > ~ ls -lh /usr/lib/locale/locale-archive > -rw-r--r-- 1 root root 102K Jul 14 01:32 /usr/lib/locale/locale-archive > ~ locale -a > locale: Cannot set LC_CTYPE to default locale: No such file or directory > locale: Cannot set LC_MESSAGES to default locale: No such file or directory > locale: Cannot set LC_COLLATE to default locale: No such file or directory > C > POSIX > > This is strange since looking at > https://bugzilla.redhat.com/show_bug.cgi?id=156477, en_US.utf8 should work. > > > Version-Release number of selected component (if applicable): > glibc-common-2.21-7.fc22.x86_64 > > > How reproducible: > Set /etc/rpm/macros.lang and reinstall glibc-common > > Actual results: > locale -a gives errors, and only lists C and POSIX > > Expected results: > locale -a should list C, POSIX, and en_US.utf8 This is certainly odd. Since this is exactly the scenario we tested. I'll have to try this myself and get back to you.
I'm seeing this on a relatively fresh rawhide install with: echo '%_install_langs C:en_US:en_US.UTF-8' > /mnt/sysimage/etc/rpm/macros but not on my f22 systems. glibc-2.22.90-3.fc24.x86_64
Seeing the same on F23. # build-local-archive build-locale-archive: cannot read archive header # ls -l /usr/lib/locale total 4 -rw-r--r--. 1 root root 103860 Sep 15 16:13 locale-archive -rw-r--r--. 1 root root 0 Sep 15 16:13 locale-archive.tmpl # ls /usr/share/locale af de eu ja ne ta all_languages el fa ka nl te ar en fi kf5_all_languages nn tg as en@arabic fr kk or th ast en@boldquot fy km pa tr be en@cyrillic ga kn pl tt be@latin en@greek gl ko ps ug bg en@hebrew gu ku pt uk bn en@piglatin ha l10n pt_BR uz bn_IN en@quot he lb ro uz@cyrillic br en@shaw hi locale.alias ru vi bs en_AU hne lt se wa ca en_CA hr lv si xh ca@valencia en_GB hsb mai sl zh_CN crh en_NZ hu mk sq zh_HK cs en_US hy ml sr zh_TW csb en_US@piglatin ia mr sr@ijekavian currency eo id ms sr@ijekavianlatin cy es is nb sr@latin da et it nds sv # locale -a locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory C POSIX glibc-2.22-2.fc23.x86_64
On F23 we've found and fixed bug 1262040, which should be coming soon as an update. Could you please test the F23 update when it's done building? http://koji.fedoraproject.org/koji/buildinfo?buildID=685815
Yup, that did the trick, thanks: # locale -a C en_US en_US.iso88591 en_US.iso885915 en_US.utf8 POSIX
(In reply to Orion Poplawski from comment #5) > Yup, that did the trick, thanks: > > # locale -a > C > en_US > en_US.iso88591 > en_US.iso885915 > en_US.utf8 > POSIX Awesome, I'm marking this as a duplicate of the other then. *** This bug has been marked as a duplicate of bug 1262040 ***
For me it didn't fail with en_US, and failed with en_US.utf8, but it's probably just random. I'm still on f22, so I can't test the updated package. I will check when I update, hopefully soon.
I see this now on a fresh F22 install with glibc-2.21-7.fc22.x86_64 so reopening so it gets fixed there too.
(In reply to Orion Poplawski from comment #8) > I see this now on a fresh F22 install with glibc-2.21-7.fc22.x86_64 so > reopening so it gets fixed there too. Mike, Would it be possible to get a backport of your F23 fix to F22 for %_install_langs? Thanks you!
Yes, I am doing an update for F22 now.
https://bugzilla.redhat.com/show_bug.cgi?id=1262040#c21 glibc-2.21-8.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-6eb4b16455
(In reply to Mike FABIAN from comment #11) > https://bugzilla.redhat.com/show_bug.cgi?id=1262040#c21 > > glibc-2.21-8.fc22 has been submitted as an update to Fedora 22. > https://bodhi.fedoraproject.org/updates/FEDORA-2015-6eb4b16455 Thanks Mike!
The f23 fix already went stable so I don't believe this needs to be marked as F23Blocker any more, right? Re-propose if I missed something.