-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
locale_gen: fix/improvements #9238
locale_gen: fix/improvements #9238
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
0bff56e
to
2840fd3
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Hi @ltog @samikhelil83 @lukasz-zaroda Could you please review the PR? Thanks in advance! Happy holidays! |
763d6fc
to
23eb438
Compare
- test is failing
- add changelog fragment - improved docs
68af963
to
7d2b53d
Compare
Rebased |
Co-authored-by: Felix Fontein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides these two details, it looks good!
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
Backport to stable-9: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 6bb7a1c on top of patchback/backports/stable-9/6bb7a1cc735eb7f7ca1907d5a3cc0797ff7fa8f2/pr-9238 Backporting merged PR #9238 into main
🤖 @patchback |
@russoz thanks for improving/fixing this! |
Backport to stable-10: 💚 backport PR created✅ Backport PR branch: Backported as #9481 🤖 @patchback |
* locale_gen: fix/improvements * fix sanity * add RV doc * add integration test forcing mechanism=debian - test is failing * fix RETURN doc * reformat yaml * comment out the test for ubuntu_mode=True * multiple changes: - add changelog fragment - improved docs * normalize docs after rebasing * Update changelogs/fragments/9131-locale-gen-rewrite.yml * apply recommendations from review * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/9238-locale-gen-rewrite.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6bb7a1c)
…9481) locale_gen: fix/improvements (#9238) * locale_gen: fix/improvements * fix sanity * add RV doc * add integration test forcing mechanism=debian - test is failing * fix RETURN doc * reformat yaml * comment out the test for ubuntu_mode=True * multiple changes: - add changelog fragment - improved docs * normalize docs after rebasing * Update changelogs/fragments/9131-locale-gen-rewrite.yml * apply recommendations from review * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/9238-locale-gen-rewrite.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 6bb7a1c) Co-authored-by: Alexei Znamensky <[email protected]>
* locale_gen: fix/improvements * fix sanity * add RV doc * add integration test forcing mechanism=debian - test is failing * fix RETURN doc * reformat yaml * comment out the test for ubuntu_mode=True * multiple changes: - add changelog fragment - improved docs * normalize docs after rebasing * Update changelogs/fragments/9131-locale-gen-rewrite.yml * apply recommendations from review * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update changelogs/fragments/9238-locale-gen-rewrite.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/locale_gen.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
It introduces a RV
mechanism
that declares the mode in a more descriptive way:Refer to #9131 (comment) for a more complete rationale.
Change the logic to determine whether
ubuntu_mode
isTrue
orFalse
.Formerly it would:
ubuntu_mode=True
if/var/lib/locales/supported.d
existed,False
if/etc/locale.gen
exists,With this PR it will:
ubuntu_mode=False
is/etc/locale.gen
is present,True
if the/var/lib/...
directory exists,Canonical made a deliberate decision to move towards the glibc support, so all Ubuntu versions since 16.04 have
/etc/locale.gen
. I have tested locally in Debian 11 and 12 and both of them worked using glibc mode.The PR will include tests forcing
ubuntu_mode=True
.Fixes #8487 #9131
ISSUE TYPE
COMPONENT NAME
locale_gen