Bug 11815 - Cannot install glibc locale.alias in image
Summary: Cannot install glibc locale.alias in image
Status: RESOLVED OBSOLETE
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium minor
Target Milestone: 4.99
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-07-20 15:00 UTC by Joshua Watt
Modified: 2021-03-04 16:27 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Watt 2017-07-20 15:00:14 UTC
The current packaging process for glibc causes the /usr/share/locale/locale.alias file to get picked up by the automated locale package generation code in package.bblcass. This results in a package called: glibc-locale-locale.alias, which is not a valid package that can be installed in an image (presumably because it contains a "." ?)

I think it would be ideal if the alias file could be installed by specifying it in the IMAGE_LINGUAS variable (e.g. IMAGE_LINGUAS = "alias")

A Documentation change is probably not strictly necessary, but it might be nice to document how to get the locale.alias file on an image.
Comment 1 Khem Raj 2017-07-20 15:16:00 UTC
This can be packaged into /etc
I think it can be
Comment 2 Joshua Watt 2017-07-20 16:10:09 UTC
IIRC it can be in /etc, but glibc installs it in /usr/share/locale. Would we try to change the location of the file from where glibc places it?

Also, I do have a patch to fix this, I just haven't had time to send it to the mailing list yet.
Comment 3 Khem Raj 2017-07-20 16:12:21 UTC
(In reply to comment #2)
> IIRC it can be in /etc, but glibc installs it in /usr/share/locale. Would we
> try to change the location of the file from where glibc places it?
> 

thats one way to get the issue resolved.

> Also, I do have a patch to fix this, I just haven't had time to send it to
> the mailing list yet.

please post your patch.
Comment 4 Joshua Watt 2017-07-21 13:10:38 UTC
It turns out that even with my patch, the locale.alias file seems to be ignored (regardless of if it is in /usr/share/locale or /etc). None of the aliased locales show up when I run the locale program, so I want to look into why that is happening.
Comment 5 Randy MacLeod 2021-03-04 16:27:23 UTC
Not seen in years. Reopen if seen.