Page 2 of 2

snap (snapd) for Porteus?

Posted: 19 Jul 2019, 12:43
by ncmprhnsbl
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?

snap (snapd) for Porteus?

Posted: 21 Jul 2019, 08:16
by Kulle
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??

snap (snapd) for Porteus?

Posted: 22 Jul 2019, 05:04
by ncmprhnsbl
can you post a list of all the packages you've used for this?

snap (snapd) for Porteus?

Posted: 22 Jul 2019, 11:13
by Kulle
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 ?

snap (snapd) for Porteus?

Posted: 22 Jul 2019, 13:19
by ncmprhnsbl
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.

snap (snapd) for Porteus?

Posted: 23 Jul 2019, 07:07
by Kulle

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

snap (snapd) for Porteus?

Posted: 21 Aug 2019, 02:33
by francois
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!

snap or flatpak for Porteus?

Posted: 21 Aug 2019, 13:03
by francois
Oh, also I have changed the title of the thread to reflect its content. I hope you do not mind. ;)

snap or flatpak for Porteus?

Posted: 23 Aug 2019, 13:09
by francois
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)

snap or flatpak for Porteus?

Posted: 15 Feb 2020, 20:28
by joejac
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

snap or flatpak for Porteus?

Posted: 06 Mar 2020, 15:16
by francois
Hello joejac. Are you using flatpak on porteus or another distribution with a certain assiduity?

snap or flatpak for Porteus?

Posted: 27 Mar 2020, 12:05
by Jappie Toutenhoofd
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?

snap or flatpak for Porteus?

Posted: 28 Mar 2020, 02:11
by francois
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.

snap or flatpak for Porteus?

Posted: 27 Feb 2023, 11:09
by francois
@kulle:
Reviving flatpak on porteus by using sbotools:
https://dataswamp.org/~solene/2020-11-1 ... uilds.html

I fell on this link trying to get the best tool to work on slackware with sbo. Yet I did not try it, but it is on my lower priority agenda. The procedure seems quite straightforward.

If anyone would like to try it. Just do it.
Thanks.

snap or flatpak for Porteus?

Posted: 28 Feb 2023, 21:30
by francois
Finally, flatpak was installed thru:
root@porteus:/home/guest# getmod -m flatpak

error message:

Code: Select all

guest@porteus:~$ flatpak update

Note that the directories 

'/var/lib/flatpak/exports/share'
'/home/guest/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for updates…
Nothing to do.
guest@porteus:~$ source ~/.xsessionrc
guest@porteus:~$ flatpak update

Note that the directory 

'/var/lib/flatpak/exports/share'

is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Looking for updates…
Nothing to do.
guest@porteus:~$ 
I tried to fix the issue:
https://unix.stackexchange.com/question ... -data-dirs
Create file /home/guest/.xsessionrc
execute this line and log in again, and it should work:
echo export 'XDG_DATA_DIRS="/opt/myapp/share:$XDG_DATA_DIRS"' >> ~/.xsessionrc

Code: Select all

guest@porteus:~$ set
BASEDIR=/home/guest/.config/xfce4
BASH=/usr/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=([0]="0")
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="5" [1]="1" [2]="16" [3]="1" [4]="release" [5]="x86_64-slackware-linux-gnu")
BASH_VERSION='5.1.16(1)-release'
BOOTDEV=/mnt/isoloop
BOOT_IMAGE='(loop)/boot/syslinux/vmlinuz'
COLORTERM=truecolor
COLUMNS=80
CONSOLE=/dev/console
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-c8EsBdjEwD,guid=6c7b968a065c25908451cd0b63fe58e5
DESKTOP_SESSION=/usr/bin/startxfce4
DIRSTACK=()
DISPLAY=:0.0
DISTRO=porteus
EDITOR=/usr/bin/nano
EUID=1000
FREETYPE_PROPERTIES=truetype:interpreter-version=40
GDK_USE_XFT=1
GNOME_KEYRING_CONTROL=/home/guest/.cache/keyring-SDOJ01
GROUPS=()
G_BROKEN_FILENAMES=1
G_FILENAME_ENCODING=@locale
HISTFILE=/home/guest/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/home/guest
HOSTNAME=porteus.example.net
HOSTTYPE=x86_64
IFS=$' \t\n'
INIT_VERSION=sysvinit-2.96
INPUTRC=/etc/inputrc
JAVA_HOME=/usr/lib64/zulu-openjdk8
KDEDIRS=/usr
LANG=en_US.UTF-8
LC_COLLATE=C
LESSOPEN='|lesspipe.sh %s'
LINES=24
LOGNAME=guest
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.bat=01;32:*.btm=01;32:*.cmd=01;32:*.com=01;32:*.dll=01;32:*.exe=01;32:*.7z=01;31:*.ace=01;31:*.arj=01;31:*.bz2=01;31:*.cpio=01;31:*.deb=01;31:*.dz=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lz=01;31:*.lzh=01;31:*.lzma=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tlz=01;31:*.trz=01;31:*.txz=01;31:*.tz=01;31:*.tz2=01;31:*.tzst=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.aac=01;35:*.anx=01;35:*.asf=01;35:*.au=01;35:*.axa=01;35:*.axv=01;35:*.avi=01;35:*.bmp=01;35:*.divx=01;35:*.flac=01;35:*.flv=01;35:*.gif=01;35:*.ico=01;35:*.jpg=01;35:*.jpeg=01;35:*.m2a=01;35:*.m2t=01;35:*.m2v=01;35:*.m4a=01;35:*.m4p=01;35:*.m4v=01;35:*.mid=01;35:*.midi=01;35:*.mka=01;35:*.mkv=01;35:*.mov=01;35:*.mp3=01;35:*.mp4=01;35:*.mp4v=01;35:*.mpc=01;35:*.mpeg=01;35:*.mpg=01;35:*.nuv=01;35:*.oga=01;35:*.ogv=01;35:*.ogx=01;35:*.ogg=01;35:*.opus=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.qt=01;35:*.ra=01;35:*.ram=01;35:*.rm=01;35:*.spx=01;35:*.svg=01;35:*.svgz=01;35:*.tga=01;35:*.tif=01;35:*.tiff=01;35:*.vob=01;35:*.wav=01;35:*.webm=01;35:*.webp=01;35:*.wma=01;35:*.wmv=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.xspf=01;35:*.xwd=01;35:*.xvid=01;35:'
LS_OPTIONS='-F -b -T 0 --color=auto'
MACHTYPE=x86_64-slackware-linux-gnu
MAILCHECK=60
MANPATH=:/usr/lib64/zulu-openjdk8/man
MINICOM='-c on'
MODDIR=/mnt/isoloop/porteus/modules
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/libexec/kf5:/usr/lib64/qt5/bin:/usr/lib64/zulu-openjdk8/bin:/usr/lib64/zulu-openjdk8/jre/bin
PIPESTATUS=([0]="0")
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
PORTCFG=/mnt/isoloop/porteus/porteus-v5.0-x86_64.cfg
PORTDIR=/mnt/isoloop/porteus
PPID=1723
PREVLEVEL=N
PS1='\[\033[01;32m\]\u@\h:\[\033[01;32m\]\w\$\[\033[00m\] '
PS2='> '
PS4='+ '
PWD=/home/guest
QT5DIR=/usr/lib64/qt5
RUNLEVEL=4
SESSION_MANAGER=local/porteus.example.net:@/tmp/.ICE-unix/1605,unix/porteus.example.net:/tmp/.ICE-unix/1605
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=4
TERM=xterm-256color
UID=1000
USER=guest
VDPAU_DRIVER=va_gl
VDPAU_LOG=0
VTE_VERSION=6800
WINDOWID=27263041
XAUTHORITY=/home/guest/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg:/etc/kde/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=XFCE
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_MENU_PREFIX=xfce-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_CLASS=user
XDG_SESSION_ID=c1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
_=EDITOR=/usr/bin/nano
changes=/50_porteus
extramod=/50_porteus/xfce
from=/isos/Porteus-XFCE-v5.0-x86_64.iso
login=root