snap or flatpak for Porteus?

Non release banter
User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2480
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

snap (snapd) for Porteus?

Post#16 by ncmprhnsbl » 19 Jul 2019, 12:43

hmm.. glibc is already in 001-core ... maybe it needs some devel part.. perhaps try with devel module..

"?bwrap?" sounds like bubblewrap .. do you have that?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Shogun
Shogun
Posts: 211
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

snap (snapd) for Porteus?

Post#17 by Kulle » 21 Jul 2019, 08:16

Hi ncmprhnsbl
"?bwrap?" sounds like bubblewrap
That is the solution!
Look here: https://wiki.archlinux.org/index.php/Bubblewrap
I have activated additionally bubblewrap-0.2.0-x86_64-1_slonly.xzm
(created via usm)
Now flatpak works.
An example (image-optimizer):

Code: Select all

guest@porteus:~$ sudo flatpak install --from $HOME/Downloads/com.github.gijsgoudzwaard.image-optimizer.flatpakref

(flatpak install:1986): GLib-GObject-WARNING **: 05:34:42.086: g_object_class_override_property: Can't find property to override for 'GTlsConnectionGnutls::advertised-protocols'
Installing: com.github.gijsgoudzwaard.image-optimizer/x86_64/stable
Required runtime for com.github.gijsgoudzwaard.image-optimizer/x86_64/stable (org.freedesktop.Platform/x86_64/18.08) is not installed, searching...
Found in remote flathub, do you want to install it? [y/n]: y
Installing: org.freedesktop.Platform/x86_64/18.08 from flathub
...
[####################] 513 metadata, 68 content objects fetched; 165 KiB transfe
guest@porteus:~$ flatpak run com.github.gijsgoudzwaard.image-optimizer
Conclusion:
In principle, flatpak works (under Porteus 4.0 Xfce)
But there are always GLib warnings, e.g.
GLib-GObject-WARNING **: 05:49:15.393: g_object_class_override_property: Can't find property to override for 'GTlsConnectionGnutls::negotiated-protocol'
GLib-CRITICAL **: 05:40:15.393: g_strsplit: assertion 'string != NULL' failed
That can be ignored??

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2480
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

snap (snapd) for Porteus?

Post#18 by ncmprhnsbl » 22 Jul 2019, 05:04

can you post a list of all the packages you've used for this?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Shogun
Shogun
Posts: 211
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

snap (snapd) for Porteus?

Post#19 by Kulle » 22 Jul 2019, 11:13

Hi ncmprhnsbl,
I have used (created via usm):
flatpak-0.11.7-x86_64-bundle.xzm
glib-networking-2.60.3-x86_64-1.xzm
bubblewrap-0.2.0-x86_64-1_slonly.xzm
and
gsettings-desktop-schemas-3.18.1-x86_64-1.xzm
(because in my Xfce is gsettings not included)

glibc is already in 001-core, but an older version!
Therefore the GLib warnings ??

So flatpak could be provided in Porteus 5.0 ?

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 2480
Joined: 20 Mar 2012, 03:42
Distribution: 5.0rc1-64bit all-DE+more
Location: australia
Contact:

snap (snapd) for Porteus?

Post#20 by ncmprhnsbl » 22 Jul 2019, 13:19

Kulle wrote:
22 Jul 2019, 11:13
flatpak-0.11.7-x86_64-bundle.xzm
what packages are in this? look in /var/log/packages of this module.. (if it's activated look in /mnt/live/memory/images/flatpak-0.11.7-x86_64-bundle.xzm/var/log/packages)
Kulle wrote:
22 Jul 2019, 11:13
glibc is already in 001-core, but an older version!
Therefore the GLib warnings ??
possibly .. or too new .. far as i can see, that slackonly flatpack package was built for 14.2 .. 14.2 glibc is at 2.23. current is at 2.29. i imagine 4.0 is somewhere in between?
Kulle wrote:
22 Jul 2019, 11:13
So flatpak could be provided in Porteus 5.0 ?
seems possible.
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Kulle
Shogun
Shogun
Posts: 211
Joined: 28 Jan 2017, 10:39
Distribution: v4.0 64bit Xfce
Location: Berlin

snap (snapd) for Porteus?

Post#21 by Kulle » 23 Jul 2019, 07:07

Code: Select all

guest@porteus:~$ ls /mnt/live/memory/images/flatpak-0.11.7-x86_64-bundle.xzm/var/log/packages
appstream-glib-0.7.9-x86_64-1_slonly  json-glib-1.2.0-x86_64-1gv
flatpak-0.11.7-x86_64-1_slonly        libseccomp-2.3.3-x86_64-1_slonly
gcab-0.6-x86_64-1_slonly              libyaml-0.1.6-x86_64-1
gpgme-1.6.0-x86_64-1                  ostree-2017.14-x86_64-1_slonly
icu4c-56.1-x86_64-2                   rpm-4.12.0.1-x86_64-1

User avatar
francois
Contributor
Contributor
Posts: 5787
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

snap (snapd) for Porteus?

Post#22 by francois » 21 Aug 2019, 02:33

Bravo Kulle!

Your efforts have yielded something very interesting. Flatpak could be a good contender to replace usm or as an alternative to usm.

A look to flatpak productivity software section only is quite interesting:
libre-office, abiword, wps office, okular, evince.

Archlinux howto on flatpak
https://wiki.archlinux.org/index.php/Flatpak

It would be interesting to see how the system will perform with some of these packages compared to usm modules. I am eager to test the thing once the conflicting libraries issues is settle.

Great work!
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 5787
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

snap or flatpak for Porteus?

Post#23 by francois » 21 Aug 2019, 13:03

Oh, also I have changed the title of the thread to reflect its content. I hope you do not mind. ;)
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 5787
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

snap or flatpak for Porteus?

Post#24 by francois » 23 Aug 2019, 13:09

With usm sbo flatpak, I built flatpak-1.1.0-x86_64-1_SBo.xzm. It needed more recent libraries, but it works: I downloaded abiword and gnome chess.

However, there is still this GLib-GObject-WARNING.

It would be nice to have a /usr/share/applications/flatpak.desktop that could be called by the browser and install the package.
It would be good to respect porteus modularity that each new porteus package could be striped transformed into a module and installed in /porteus/modules instead of being installed permanently (it seems that abiword is installed into /var/lib/flatpak/app/com.abisource.AbiWord)
Prendre son temps, profiter de celui qui passe.

joejac
Black ninja
Black ninja
Posts: 62
Joined: 16 May 2015, 23:55
Distribution: Porteus 3.1
Location: ve

snap or flatpak for Porteus?

Post#25 by joejac » 15 Feb 2020, 20:28

Hello,
I agree with Francois, it would be very nice if Porteus 5 can use all the programs of Flatpak and to assembly the xzm module. This is my view from the perspective of a user, I am not a programmer. Thanks to all for the efforts.
Regards
joejac

User avatar
francois
Contributor
Contributor
Posts: 5787
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

snap or flatpak for Porteus?

Post#26 by francois » 06 Mar 2020, 15:16

Hello joejac. Are you using flatpak on porteus or another distribution with a certain assiduity?
Prendre son temps, profiter de celui qui passe.

Jappie Toutenhoofd
Ronin
Ronin
Posts: 1
Joined: 27 Mar 2020, 11:55
Distribution: v5-RC1

snap or flatpak for Porteus?

Post#27 by Jappie Toutenhoofd » 27 Mar 2020, 12:05

Funny, you are installing Flatpak or Snap application as a module.
The topic drew my attention because in my (rooky) mind it would be a script that converted snap or flatpack packages into a (compressed)module.

example: download jetbrain-snap
run: snap2mdl.sh jetbrain-snap /optional/jetbrain

Would that be possible? snap or flatpak?

User avatar
francois
Contributor
Contributor
Posts: 5787
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

snap or flatpak for Porteus?

Post#28 by francois » 28 Mar 2020, 02:11

A module under porteus is any software. Thus snap or flatpak are sofwares, but specificaly package manager. Once they are on your porteus system, they do what they do. So flatpak and snap will get and build sofware for your porteus installation.

On debian the equivalent of snap or flatpak would be synaptic. On porteus at present the packager is usm. We would like to replace it.
Prendre son temps, profiter de celui qui passe.

Post Reply