Bug 1169044

Summary: missing %lang tags for i18n files
Product: [Fedora] Fedora Reporter: (GalaxyMaster) <gm.outside+redhat>
Component: glibcAssignee: Siddhesh Poyarekar <spoyarek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: rawhideCC: arjun.is, codonell, fweimer, jakub, law, mnewsome, pfrankli, spoyarek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.20-7.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-05 13:24:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description (GalaxyMaster) 2014-11-29 11:15:15 UTC
Description of problem:

The glibc-common package contains /usr/share/i18n/locales/* files.  The files in /usr/share/i18n/locales are not tagged with the corresponding %lang() in the spec file, hence all locales are always installed regardless of the %_install_langs RPM macro setting.

How reproducible:

Below is the output of the first 10 lines of a query that should have printed the corresponding language tag before the filename:

[root@localhost ~]# rpm -ql --queryformat '[%{FILELANGS}\t%{FILENAMES}\n]' glibc-common | fgrep i18n/locales | head -10
	/usr/share/i18n/locales
	/usr/share/i18n/locales/POSIX
	/usr/share/i18n/locales/aa_DJ
	/usr/share/i18n/locales/aa_ER
	/usr/share/i18n/locales/aa_ER@saaho
	/usr/share/i18n/locales/aa_ET
	/usr/share/i18n/locales/af_ZA
	/usr/share/i18n/locales/am_ET
	/usr/share/i18n/locales/an_ES
	/usr/share/i18n/locales/ar_AE

Expected results:

It was expected that all <lang>_<flavour> files (e.g. 'aa_DJ') would have the <lang> tag assigned to them (e.g. for 'aa_*' the language should be obviously 'aa').

Additional info:

It's possible that the change should be applied in the rpm package instead (to the find-lang.sh) so the %find_lang macro would handle this case.

Comment 2 Siddhesh Poyarekar 2014-12-05 13:24:10 UTC
Those files are only installed by glibc, so it doesn't make sense to patch find-lang.sh for it.  I have pushed a patch in rawhide (2.20.90-12) which should give language tags to these files.  Please test when the build lands in your mirror.

Comment 3 Fedora Update System 2015-01-06 17:36:54 UTC
glibc-2.20-7.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/glibc-2.20-7.fc21

Comment 4 Fedora Update System 2015-01-11 03:00:00 UTC
glibc-2.20-7.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.