[packagekit] Plugin Interface for Backends, Hooks for Backends

Neal Gompa ngompa13 at gmail.com
Tue Sep 13 01:09:36 UTC 2022


On Mon, Sep 12, 2022 at 6:35 PM Gerion Entrup <gerion.entrup at flump.de> wrote:
>
> Hi,
>
> I have the situation that I want to use Gentoo on a tablet with low
> performance. Gentoo normally compiles everything which is absolutely not
> possible on that device. Because of that, I have configured Portage (the Gentoo
> package manager) to use a binary host (another much more powerful PC), where I
> cross compile the packages into binary packages first.
> So my package installation in total works as follows:
> 1. Decide which package should be installed.
> 2. Trigger the build process on the binary host.
> 3. Install the packages locally (as binary packages).
>
> This tablet has no (real) keyboard but touch, so doing this per command line
> is hard. PackageKit with Discover comes to the rescue here.
> The problem is that – while there is a Portage backend – it is not able to
> trigger the building on the binary host (mainly because Portage itself is not
> able to do this).
>
> My question here is: What are my best options to get this to work regardless?

You're going to have to modify the Portage backend.

> - Does PackageKit has some kind of plugin backend API? So, put a script with a
> determined interface somewhere and PackageKit can use it as backend.

Yes.

> - Are there some "hooks" in the existing backends or the PackageKit root
> functions? So can I place a script somewhere so that PackageKit executes some
> arbitrary commands before or after using the regular backend?

No.

> - Do I have to modify the Portage backend?

Yes.

>
> Best,
> Gerion

Good luck!



-- 
真実はいつも一つ!/ Always, there's only one truth!


More information about the PackageKit mailing list