1
0
mirror of https://pagure.io/fedora-kickstarts.git synced 2025-04-14 08:25:30 +00:00
Debarshi Ray f2c6224ade container-toolbox: Install all languages (part 2)
This is a continuation from commit 94564296249b060f, which tried to
ensure that all languages are present in the fedora-toolbox OCI image by
removing --inst-langs=en from fedora-container-toolbox.ks.  Sadly, this
wasn't enough.

The image was still missing various localization bits like translations
for programs and manuals.  All translations for all programs, such as
LC_MESSAGES and LC_TIME, were missing, except for those coming from
glibc-all-langpacks.  eg., see:
  $ LANG=cs_CZ.UTF-8 cp foo bar
  cp: cannot stat 'foo': Adresář nebo soubor neexistuje

Only the part coming from glibc is translated.  The part coming from
coreutils isn't.  There are lots and lots of such packages.  eg., bash,
coreutils, dnf, grep, rpm, sed, tar, etc..

Any package with translated manuals marked with %lang() in their %files
section were missing them.  eg., man-db, passwd, psmisc, etc..

Finally, even though the %pre section in fedora-container-toolbox.ks
removes %_install_langs from /etc/rpm/macros.image-language-conf, it was
still set to en_US in the final image.

This was happening because fedora-container-toolbox.ks includes
fedora-container-common.ks, and some unintended bits from the latter
were leaking into the fedora-toolbox OCI image's build.

The image was still being built with '%packages --inst-langs=en',
possibly since fedora-container-common.ks has '%package --instLangs=en'.
That option wasn't just being applied to the packages being installed by
fedora-container-common.ks, but also to those being installed by
fedora-container-toolbox.ks [1].

Secondly, fedora-container-common.ks sets %_install_langs to en_US in
its %post section.  This will strip out all non-English languages from
future RPM transactions in containers created from the image.

To address this, fedora-container-toolbox.ks has now been decoupled from
fedora-container-common.ks, by copying over the relevant bits.

[1] https://koji.fedoraproject.org/koji/buildinfo?buildID=2311452
    https://kojipkgs.fedoraproject.org//packages/Fedora-Container-Toolbox/Rawhide/20231025.n.0/images/fedora-container-toolbox.ks
    https://kojipkgs.fedoraproject.org//packages/Fedora-Container-Toolbox/Rawhide/20231025.n.0/images/koji-f40-build-108073454-base.ks
    https://kojipkgs.fedoraproject.org//packages/Fedora-Container-Toolbox/Rawhide/20231025.n.0/data/logs/image/oz-aarch64.log

https://bugzilla.redhat.com/show_bug.cgi?id=2244503
https://pagure.io/fedora-kickstarts/pull-request/1004
2023-10-25 20:19:51 +02:00
2020-07-17 22:17:10 +00:00
2013-01-30 10:41:58 -08:00
2013-01-08 12:41:26 -08:00
2023-01-03 22:43:20 +00:00
2023-09-26 17:00:54 -03:00
2023-08-08 17:22:01 -07:00
2023-01-03 22:43:20 +00:00
2023-09-26 17:00:54 -03:00
2023-08-08 17:22:01 -07:00

fedora-kickstarts

This project is used to manage the Fedora kickstart files used in composing Fedora release images.

The master branch is used by rawhide and each release branch is used by that release.

All changes should be made via the PR workflow.

This project is packaged in Fedora as the spin-kickstarts package allowing users to see and modify the kickstart files for their local needs.

Maintainers for each image are listed in the maintainers.toml file.

To make a release

git clone ssh://git@pagure.io/fedora-kickstarts.git fedora-kickstarts
cd fedora-kickstarts
# If you need a specific branch other than master:
git checkout BRANCHNAME
# No tag has been added yet tag HEAD with
git tag VERSION
git push --tags
make
# Publish the released tar ball
make publish
# Clean up the generated files:
make clean

Build logs

To see build logs go to

https://koji.fedoraproject.org/koji

"Packages" tab, and filter by Fedora-Workstation-Live for example.

Technical info about the officialy released images can be found at

https://kojipkgs.fedoraproject.org/compose/

bug reports

Bugs should be reported to the spin-kickstarts bugzilla component:

https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=spin-kickstarts

Description
This project is used to manage the Fedora kickstart files used in composing Fedora release images.
Readme 2.8 MiB
Languages
Python 58.3%
JavaScript 33%
Makefile 8.7%