Skip to content
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

support different ways of handling installed langpacks beside apt #37

Open
decathorpe opened this issue Dec 27, 2017 · 4 comments
Open

Comments

@decathorpe
Copy link
Contributor

decathorpe commented Dec 27, 2017

The current way to install support for languages (apt) is only available on debian-based systems. Please consider adding support for other mechanisms (for example, fedora's dnf), or relying on a distro-agnostic system (like PackageKit), if possible.

@Conan-Kudo
Copy link

Incidentally, aptdaemon is dead, and users of it are advised to move to PackageKit.

@davidmhewitt
Copy link
Member

Some further information on this one:

The aptcc backend in PackageKit does not support being queried for language support packages, so PackageKit is not a drop in replacement for this unfortunately.

I'll look at implementing support for this in PackageKit, but I suspect this isn't trivial as different Debian/APT based distributions have different ways of doing this. So making it distro-agnostic within PackageKit would be hard. I'd hope they'd accept an Ubuntu specific implementation in aptcc as long as it was clearly written in a way where it'd be easier to add support for it on other distros too.

Before I go any further with this, can I confirm that Fedora's PackageKit dnf backend supports this? i.e. if you do a pkcon what-provides "language(ca)", does it list language support packages for Catalan?

@decathorpe
Copy link
Contributor Author

Running pkcon what-provides "language(ca)" on fedora doesn't show anything.

I don't think that PackageKit can solve this in a distro-agnostic way (at least not yet). Probably an easier solution would be to support different backends (apt, dnf, etc.) in this plug. The backend could then be switched at runtime or even with conditional compilation.

How the language support stuff works with dnf in fedora can be seen at https://fedoraproject.org/wiki/QA:Testcase_langpacks_packages

@Conan-Kudo
Copy link

All language packs associated with various installed packages are weak-installed in Fedora, automatically through the installation of a specific language pack package. They're also weak-removed accordingly when the main language pack package is removed.

As far as I know, we don't have a specific provides for languages, but that's a solvable problem, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants