DevHeads.net

F30 System-Wide Change proposal: Replace Comps Language Group With Langpacks

Congratulations to the last System-Wide Change proposal of F30!

<a href="https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With_Langpacks" title="https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With_Langpacks">https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With...</a>

== Summary ==
Language support groups in Comps file will get replaced by langpacks
package. With this Change we want meta-packages like langpacks-ja to
also install required fonts and input-methods for the given language.

== Owner ==
* Name: [[User:petersen| Jens Petersen]]
* Email: petersen at fedoraproject dot org
* Name: [[User:pnemade| Parag Nemade]]
* Email: pnemade at fedoraproject dot org

== Detailed Description ==
This change will remove the need of having the language specific comps
groups in Fedora.

We already have ''langpacks-*'' packages in Fedora since F24.
Currently they are installing language packages for translations,
dictionaries etc. but not fonts or input-methods. With this Change we
will try to install fonts and input-methods as well.
E.g. if you net-install Fedora in Japanese language then installation
of any base package like libreoffice-core or man-pages are installing
automatically libreoffice-langpack-ja or man-pages-ja but langpacks-ja
is not installing any Japanese font or input-method.
But now with using RPM tags or weak dependencies like Supplements, we
can get font as well as input-method packages installed as well on the
system.
There is no need of language comps groups to exist, they will be
replaced by langpacks.

This Change is originally submitted at <a href="https://pagure.io/i18n/issue/97" title="https://pagure.io/i18n/issue/97">https://pagure.io/i18n/issue/97</a>

== Benefit to Fedora ==
Users can install complete language support now using langpacks only.
This will also help to remove the language support groups from the
comps file.

== Scope ==
* Proposal owners: Check all langpacks providing packages (like fonts,
input-methods) add Supplements tag in their SPEC file and build them.
We will track the progress of this Change in
[https://copr.fedorainfracloud.org/coprs/pnemade/langpacks/ Langpacks
Copr] project.
* Other developers: To all other developers of packages who provides
langpacks, they need to add the Supplements tag as given in this
[https://fedoraproject.org/wiki/Packaging:Langpacks Langpacks
guideline] to each langpack subpackage.
* Release engineering: none
* Policies and guidelines: none

== Upgrade/compatibility impact ==
None.

== How To Test ==

* [[QA:Langpacks]]

== User Experience ==
Currently users can get complete language support installed only using
"''dnf group install <lang-support>''" command. After this Change gets
implemented end users can get language support installed using
meta-packages "''langpacks-<langcode>"'' only

== Dependencies ==
No Other Change depend on this.

== Contingency Plan ==
* Contingency mechanism: If this change is not completed by final
development freeze then we need to target this for F31. We are just
proposing to add additional information in langpacks packages that is
Supplements tag. This should not affect individual langpacks packages
installation by dnf.
* Contingency deadline: I don't think we will need anything to revert
or apply any contingency plan here if this is not completed by beta
freeze.
* Blocks release? No
* Blocks product? N/A

== Documentation ==
* Need to add about this in the Release notes

Comments

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Owen Taylor at 01/21/2019 - 03:58

If I understand the proposal, I'm slightly concerned that the proposed
use of Supplements: means that there will be no longer any single
place where we declare "this is our recommended font for LangX, this
is our recommended input method for LangX" - the history of this will
be collectively over all of dist-git and hard to extract. (And it will
be necessary to go to packages we stop using and remove Supplemenets)

What is the reason for the use of Supplements instead of just adding
Recommends: to the langpacks packages?

Owen

On Wed, Jan 9, 2019 at 2:58 PM Ben Cotton < ... at redhat dot com> wrote:

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By =?UTF-8?Q?Parag... at 01/21/2019 - 05:24

Thanks. I have corrected it in the Change wiki page. Initially it was a
thought to use Supplements. You can see Recommends is used already in test
langpacks spec
<https://copr-dist-git.fedorainfracloud.org/cgit/pnemade/langpacks/langpacks.git/tree/langpacks.spec>
file.

Parag

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Zbigniew =?utf-... at 01/17/2019 - 15:17

On Wed, Jan 09, 2019 at 02:56:59PM -0500, Ben Cotton wrote:
What is the actual benefit of this change? It looks like a nice
cleanup, but apart from that? It seems that 'dnf install group @lang-foo'
is not different from 'dnf install langpack-bar'.

Zbyszek

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By =?UTF-8?Q?Parag... at 01/18/2019 - 01:05

On Fri, Jan 18, 2019 at 12:49 AM Zbigniew Jędrzejewski-Szmek <

This Change will benefit to install all the possible language related
packages for a given language using langpacks-<lang> meta-package. First
this Change is important so that once we get single package installation
giving needed language support packages we can further work to use this
meta-package in gnome-software or in the required Gnome package to install
the language support automatically.

Also, This will benefit libreoffice package to remove following from its
specfile and only test the libreoffice UI rendering for the given default
language font(s) using langpacks

Requires: font(:lang=<lang>)

Regards,
Parag

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By David Tardon at 01/10/2019 - 08:06

Hi,

On Wed, 2019-01-09 at 14:56 -0500, Ben Cotton wrote:
Actually in this specific case a Japanese font is installed, because
libreoffice-langpack-ja requires one :-)

D.

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By =?UTF-8?Q?Parag... at 01/10/2019 - 08:54

Yes that is true. But I did some testing for this Change implementation in
F29 Container. If you only install libreoffice-langpack-ja then
adobe-source-han-code-jp-fonts package is getting installed because it
matches what libreoffice-langpack-ja is requiring that is "font(:lang=ja)"
whereas if langpacks-ja is installed then google-noto-sans-cjk-ttc-fonts
and google-noto-serif-cjk-ttc-fonts are getting installed.

Regards,
Parag

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Michael Catanzaro at 01/10/2019 - 13:36

Will gnome-control-center be able to install missing language packs and
input sources?

What about gnome-initial-setup?

In the future, we'd like to switch to running gnome-initial-setup prior
to anaconda for language and keyboard layout selection, then anaconda,
then gnome-initial-setup again on firstboot. Anaconda would therefore
not be used for language selection at all. What would happen if
language was selected only in gnome-initial-setup. Would the right
language packs be installed? Would the languages even appear in the
list to allow selection?

Michael

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Jens Petersen at 01/10/2019 - 23:56

Good questions but that is outside the scope of this Change. :-)

Eventually we would like that to be the case yes - but currently we are
looking at first doing it for gnome-software.

Note this Change has no impact on the content of current Fedora editions or
release artefacts, since the language groups are not used by anaconda or
composes etc.
(Beyond users running `dnf install @<lang>-support`, the only usage of
comps lang groups I am aware of currently is in fedora-kickstarts/l10n.)

Jens

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Michael Catanzaro at 01/10/2019 - 13:49

On Thu, Jan 10, 2019 at 11:36 AM, <a href="mailto: ... at gnome dot org"> ... at gnome dot org</a> wrote:
BTW, the rationale for this is that anaconda is too late to do language
selection. It's basically impossible to select your language or input
method on the live system unless you know English. Ditto for keyboard
layout and input sources. And if you don't know English, you might not
be able to read the "Try Fedora / Install Fedora" screen.

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Zbigniew =?utf-... at 01/09/2019 - 18:53

On Wed, Jan 09, 2019 at 02:56:59PM -0500, Ben Cotton wrote:
Do you plan to remove the comps groups? And if yes, in F30 or later?

Zbyszek

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By =?UTF-8?Q?Parag... at 01/10/2019 - 03:01

On Thu, Jan 10, 2019 at 4:23 AM Zbigniew Jędrzejewski-Szmek <

Yes, Plan is to remove language support group entries from comps files for
F30+. Added same to Scope section of Change page now.

Regards,
Parag

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By Zbigniew =?utf-... at 01/10/2019 - 03:23

On Thu, Jan 10, 2019 at 12:31:38PM +0530, Parag Nemade wrote:
Contingency Plan needs to be changed too to revert the comps removal.
(I'm mostly wondering when the best moment to trim comps is.)

Zbyszek

Re: F30 System-Wide Change proposal: Replace Comps Language Grou

By =?UTF-8?Q?Parag... at 01/10/2019 - 08:41

On Thu, Jan 10, 2019 at 12:55 PM Zbigniew Jędrzejewski-Szmek <

Updated
<a href="https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With_Langpacks#Contingency_Plan" title="https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With_Langpacks#Contingency_Plan">https://fedoraproject.org/wiki/Changes/Replace_Comps_Language_Group_With...</a>

Parag