Bug 1169044 - missing %lang tags for i18n files
Summary: missing %lang tags for i18n files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Siddhesh Poyarekar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-29 11:15 UTC by (GalaxyMaster)
Modified: 2016-11-24 12:11 UTC (History)
8 users (show)

Fixed In Version: glibc-2.20-7.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-05 13:24:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.