Hello,
a package I co-mainatin bundles google-noto-sans-fonts and
google-noto-sans-cjk-fonts upstream.
The fonts are removed from the package. We want to add a dependency on them,
like this:
Requires: google-noto-sans-fonts
Requires: google-noto-sans-cjk-fonts
However, it was pointed out in [1] that the cjk fonts are quire large and
probably no use for non-APAC users. (CJK is the shorthand collective name for
the Chinese, Japanese, and Korean writing systems.)
We could do:
Requires: google-noto-sans-fonts
Recommends: google-noto-sans-cjk-fonts
But that still installs it to everybody by default.
I was wondering if there is a rich dep magic I could use.
E.g.
Requires: google-noto-sans-fonts
Requires: (google-noto-sans-cjk-fonts if langpacks-fonts-...)
However, there seem to be no general langpack for cjk.
I could try to reverse engineering all the langpacks that need cjk fonts from,
the code [2], but perhaps there is a more general way?
I see that langpacks-fonts-ja/ko/zh_* Requires
google-noto-sans-mono-cjk-vf-fonts and google-noto-serif-cjk-vf-fonts. So I can do:
Requires: (google-noto-sans-cjk-fonts if google-noto-serif-cjk-vf-fonts)
But can I assume this will always be the case?
[1] https://bugzilla.redhat.com/show_bug.cgi?id=2281392#c12
[2]
https://github.com/prusa3d/PrusaSlicer/blob/version_2.8.0/src/slic3r/GUI/ImGuiWrapper.cpp#L220-L223
--
Miro Hrončok
--
Phone: +420777974800
Fedora Matrix: mhroncok
--
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue