After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780261 - Pkcon used for installing flatpak-builder fails since is not installed by default in some distros
Pkcon used for installing flatpak-builder fails since is not installed by def...
Status: RESOLVED OBSOLETE
Product: gnome-builder
Classification: Other
Component: general
3.23.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks: 781010
 
 
Reported: 2017-03-19 14:41 UTC by Carlos Soriano
Modified: 2018-01-11 10:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carlos Soriano 2017-03-19 14:41:16 UTC
In this case, Ubuntu 16.04.2. I think they should have it installed by default, since there is no other tool to be able to guess packages right?

Anyway, if Builder uses it maybe it should depend on it when Flatpak build is enabled?
Comment 1 Carlos Soriano 2017-03-19 14:49:08 UTC
fwiw it's not a big problem for regular contribution (in case that matters). We will say to install it beforehand together with flatpak.
Comment 2 Christian Hergert 2017-03-19 23:06:19 UTC
Is pkcon installed by default on Ubuntu GNOME?
Comment 3 Dominique Leuenberger 2017-03-20 14:55:25 UTC
I think interacting with a frontend (pkcon) to get anything installed sounds like the wrong approach.

It would likely be cleaner to use packagekit-glib or the dbus directly - this offers you after all a programmable interface, unlike any cli tool
Comment 4 Carlos Soriano 2017-03-20 14:56:54 UTC
(In reply to Christian Hergert from comment #2)
> Is pkcon installed by default on Ubuntu GNOME?

From Jeremy Bicha: No, only since 16.10
Comment 5 Carlos Soriano 2017-03-20 15:40:27 UTC
I mean yes, but only since 16.10 :)
Comment 6 Jeremy Bicha 2017-03-20 16:04:28 UTC
Ubuntu (Unity) and Ubuntu GNOME both install libpackagekit-glib by default in 16.04 LTS. Note that 16.04 LTS uses packagekit 0.8. (16.10 uses packagekit 1.0).

In Debian/Ubuntu, pkcon is in the 'packagekit-tools' binary package which is why it wasn't installed previously.
Comment 7 Christian Hergert 2017-03-20 20:36:35 UTC
On systems where Builder is installed form packages, we can simply depend on pkcon.

But for Flatpak, we're running inside the sandbox so we can't just use the libraries directly (afaik). We would have to use the DBus interface. And before we used pkcon, that is exactly what I was doing.

However, the DBus API doesn't properly execute the operation (it would only update the page in Software and tell the user additional software was required) nor does it provide progress of the operation.
Comment 8 GNOME Infrastructure Team 2018-01-11 10:22:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/199.