spman; a package manager for porteus 5.0, very interesting

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

spman; a package manager for porteus 5.0, very interesting

Post#16 by francois » 08 Mar 2023, 12:28

Finallly, I got libfm with get-mod or slapt-get download mode.

Code: Select all

root@porteus:/home/guest# spman -q --install
...


...
Slackware package /root/spman/build/spacefm-1.0.6-x86_64-1_SBo.txz created.


+==============================================================================
| Installing new package /root/spman/build/spacefm-1.0.6-x86_64-1_SBo.txz
+==============================================================================

Verifying package spacefm-1.0.6-x86_64-1_SBo.txz.
Installing package spacefm-1.0.6-x86_64-1_SBo.txz:
PACKAGE DESCRIPTION:
# spacefm (Multi-panel tabbed file manager)
#
# SpaceFM is a multi-panel tabbed file manager for Linux
# with built-in VFS, udev-based device manager,
# customizable menu system, and bash integration.
#
# Homepage: http://ignorantguru.github.com/spacefm/
#
Executing install script for spacefm-1.0.6-x86_64-1_SBo.txz.
Package spacefm-1.0.6-x86_64-1_SBo.txz installed.
root@porteus:/home/guest# 
Prendre son temps, profiter de celui qui passe.

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

spman; a package manager for porteus 5.0, very interesting

Post#17 by francois » 08 Mar 2023, 12:29

@babam:
And you are right spman will not build sbo dependencies if they are missing. spman will find the dependencies, you will have to build them and then when activated build you final package.

And according to:

Code: Select all

root@porteus:/home/guest# slapt-src -i -d spacefm
Unable to find all specified slackbuilds.
root@porteus:/home/guest# 
slapt-src will not do better. And will not even tell you which are the missing dependencies. Though I have have built and installed the four needed dependencies on my system.

But maybe this is a bug.
Prendre son temps, profiter de celui qui passe.

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

spman; a package manager for porteus 5.0, very interesting

Post#18 by francois » 08 Mar 2023, 12:41

As:

Code: Select all

root@porteus:/home/guest# spman -p pcmanfm
1.  libfm-extra
2.  lxmenu-data
3.  menu-cache
4.  libfm
root@porteus:/home/guest# 
And:

Code: Select all

root@porteus:/home/guest# getmod -s libfm
libfm-1.2.4-x86_64-2alien  (pcmanfm core libraries)
libfm-1.3.2-x86_64-1gv  (PCManFM library)
libfm-1.3.2-x86_64-2ponce  (pcmanfm library)
libfm-1.3.2-x86_64-2salix15.0  (pcmanfm library)
libfm-1.3.2-x86_64-3_slonly  (pcmanfm library)
libfm-extra-1.2.4-x86_64-2alien  (pcmanfm library)
libfm-extra-1.3.2-x86_64-2_slonly  (pcmanfm library)
libfm-extra-1.3.2-x86_64-2ponce  (pcmanfm library)
libfm-extra-1.3.2-x86_64-2salix15.0  (pcmanfm library)
libfm-qt-0.11.1-x86_64-2alien  (pcmanfm core libraries)
libfm-qt-1.2.0-x86_64-1gv  (Core library of PCManFM-Qt)
root@porteus:/home/guest#
And:

Code: Select all

root@porteus:/home/guest# getmod -s lxmenu
lxmenu-data-0.1.5-noarch-2alien  (desktop menus for LXQt)
lxmenu-data-0.1.5-x86_64-1_slonly  (desktop menus for LXDE)
lxmenu-data-0.1.5-x86_64-1ponce  (desktop menus for LXDE)
lxmenu-data-0.1.5-x86_64-1salix15.0  (desktop menus for LXDE)
root@porteus:/home/guest# getmod -s menu-cache
menu-cache-1.0.2-x86_64-2alien  (lightweight replacement of libgnome-menu)
menu-cache-1.1.0-x86_64-2_slonly  (lightweight replacement of libgnome-menu)
menu-cache-1.1.0-x86_64-2ponce  (lightweight replacement of libgnome-menu)
menu-cache-1.1.0-x86_64-2salix15.0  (lightweight replacement of libgnome-menu)
root@porteus:/home/guest# 
It seems that there is a bug with slapt-get, because all the dependencies are there, spacefm is not built.
:shock:
Prendre son temps, profiter de celui qui passe.

User avatar
Ed_P
Contributor
Contributor
Posts: 8343
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

spman; a package manager for porteus 5.0, very interesting

Post#19 by Ed_P » 09 Mar 2023, 00:00

getmod works for it.

Code: Select all

guest@porteus:~$ getmod -s pcmanfm
Enter root's password
Password: 

libfm-1.2.4-x86_64-2alien  (pcmanfm core libraries)
libfm-1.3.2-x86_64-1gv  (PCManFM library)
libfm-1.3.2-x86_64-2ponce  (pcmanfm library)
libfm-1.3.2-x86_64-2salix15.0  (pcmanfm library)
libfm-extra-1.2.4-x86_64-2alien  (pcmanfm library)
libfm-extra-1.3.2-x86_64-2ponce  (pcmanfm library)
libfm-extra-1.3.2-x86_64-2salix15.0  (pcmanfm library)
libfm-qt-0.11.1-x86_64-2alien  (pcmanfm core libraries)
libfm-qt-1.2.0-x86_64-1gv  (Core library of PCManFM-Qt)
pcmanfm-1.3.2-x86_64-1gv  (a fast and lightweight file manager)
pcmanfm-1.3.2-x86_64-2ponce  (PCMan File Manager)
pcmanfm-qt-0.11.1-x86_64-2alien  (File- and desktop icon manager)
pcmanfm-qt-1.2.0-x86_64-1gv  (File manager and desktop icon manager)

Code: Select all

guest@porteus:~$ getmod -m pcmanfm
Enter root's password
Password: 

Reading Package Lists...Done
The following NEW packages will be installed:
  libfm-extra menu-cache pango libfm pcmanfm 
0 upgraded, 0 reinstalled, 5 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.2MB of archives.
Do you want to continue? [y/N] y
1/5 Get http://slackware.uk/salix/x86_64/extra-15.0/ libfm-extra 1.3.2-x86_64-2salix15.0 [33.0kB]...Done
2/5 Get http://slackware.uk/salix/x86_64/extra-15.0/ menu-cache 1.1.0-x86_64-2salix15.0 [43.0kB]...Done
3/5 Get http://slackware.uk/salix/x86_64/slackware-15.0/ pango 1.48.11-x86_64-1 [372.0kB]...Done
4/5 Get http://slackware.uk/salix/x86_64/15.0/ libfm 1.3.2-x86_64-1gv [546.0kB]...  0Done
5/5 Get http://slackware.uk/salix/x86_64/15.0/ pcmanfm 1.3.2-x86_64-1gv [278.0kB]... Done

Done
Verifying package pango-1.48.11-x86_64-1.txz.
Installing package pango-1.48.11-x86_64-1.txz:
PACKAGE DESCRIPTION:
# pango (library for layout and rendering of text)
#
# Pango is a library for layout and rendering of text, with an emphasis
# on internationalization. Pango can be used anywhere that text layout
# is needed; however, most of the work on Pango was done using the GTK+
# widget toolkit as a test platform. Pango forms the core of text and
# font handling for GTK.
#
Executing install script for pango-1.48.11-x86_64-1.txz.
Package pango-1.48.11-x86_64-1.txz installed.
Verifying package pcmanfm-1.3.2-x86_64-1gv.txz.
Installing package pcmanfm-1.3.2-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# pcmanfm (a fast and lightweight file manager)
# 
# PCman file manager is an extremely fast, lightweight, yet feature-rich
# file manager with tabbed browsing.
# 
Executing install script for pcmanfm-1.3.2-x86_64-1gv.txz.
Package pcmanfm-1.3.2-x86_64-1gv.txz installed.
Verifying package libfm-1.3.2-x86_64-1gv.txz.
Installing package libfm-1.3.2-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# libfm (PCManFM library)
# 
# LibFM provides file management functions built on top of Glib/GIO,
# giving a convenient higher-level API.
# 
Executing install script for libfm-1.3.2-x86_64-1gv.txz.
Package libfm-1.3.2-x86_64-1gv.txz installed.
Verifying package menu-cache-1.1.0-x86_64-2salix15.0.txz.
Installing package menu-cache-1.1.0-x86_64-2salix15.0.txz:
PACKAGE DESCRIPTION:
# menu-cache (lightweight replacement of libgnome-menu)
#
# Libmenu-cache is a library creating and utilizing caches to speed
# up the manipulation for freedesktop.org defined application menus.
# It can be used as a replacement of libgnome-menu of gnome-menus.
#
# Homepage: https://lxde.org
#
Executing install script for menu-cache-1.1.0-x86_64-2salix15.0.txz.
Package menu-cache-1.1.0-x86_64-2salix15.0.txz installed.
Verifying package libfm-extra-1.3.2-x86_64-2salix15.0.txz.
Installing package libfm-extra-1.3.2-x86_64-2salix15.0.txz:
PACKAGE DESCRIPTION:
# libfm-extra (pcmanfm library)
#
# LibFM provides file management functions built on top of Glib/GIO,
# giving a convenient higher-level API.
#
# This package contains a library and other files required by
# menu-cache-gen libexec of the recent menu-cache >= 1.0.0.
#
# Homepage: https://wiki.lxde.org/en/Libfm
#
Executing install script for libfm-extra-1.3.2-x86_64-2salix15.0.txz.
Package libfm-extra-1.3.2-x86_64-2salix15.0.txz installed.
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /tmp/pcmanfm-1.3.2-x86_64-1gv.xzm, block size 262144.
[====================================================================-] 204/204 100%

Exportable Squashfs 4.0 filesystem, zstd compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments,
	compressed xattrs, compressed ids
	duplicates are removed
Filesystem size 874.92 Kbytes (0.85 Mbytes)
	22.12% of uncompressed filesystem size (3954.71 Kbytes)
Inode table size 2415 bytes (2.36 Kbytes)
	27.21% of uncompressed inode table size (8877 bytes)
Directory table size 2772 bytes (2.71 Kbytes)
	43.78% of uncompressed directory table size (6332 bytes)
Number of duplicate files found 5
Number of inodes 268
Number of files 203
Number of fragments 9
Number of symbolic links 20
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 45
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

====> '/tmp/pcmanfm-1.3.2-x86_64-1gv.xzm' was created successfully.

guest@porteus:~$ 
Looks like slapt-get worked for me.

Code: Select all

guest@porteus:~$ pcmanfm

** (pcmanfm:14378): WARNING **: 19:46:33.287: The directory '~/Templates' doesn't exist, ignoring it

(pcmanfm:14378): Gtk-WARNING **: 19:46:33.426: Theme parsing error: <data>:2:27: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(pcmanfm:14378): Gtk-WARNING **: 19:46:33.426: Theme parsing error: <data>:3:30: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version
Ed

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

spman; a package manager for porteus 5.0, very interesting

Post#20 by francois » 09 Mar 2023, 00:56

Interesting.

spacefm-1.0.6-x86_64-1_SBo.txz
and
pcmanfm-1.3.2-x86_64-1gv.xzm
are different.
Yours is more recent than mine, but mine was built on porteus from sbo.

And arch proposes version 1.3.2.1:
https://github.com/archlinux/svntogit-c ... k/PKGBUILD

So I would need to change something in the slackbuild to get the more recent version which is 1.3.2.

But still slapt-src will not build from source or sbo for a reason or another.

Thanks.
Prendre son temps, profiter de celui qui passe.

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

spman; a package manager for porteus 5.0, very interesting

Post#21 by Rapha_ » 11 Mar 2023, 16:07

francois ,

What's wrong?

I activated spman after downloading it with getmod, but even when installing the requirements (bash-completion, sbbdep ). I still get this kind of error :

Code: Select all

root@porteus:/home/guest# spman --update
Traceback (most recent call last):
  File "/usr/sbin/spman", line 46, in <module>
    sys.exit(start())
  File "/usr/sbin/spman", line 41, in start
    Main().start()
  File "/usr/lib64/python3.9/site-packages/spman/main.py", line 116, in start
    self.commands[self.args[0]]()
  File "/usr/lib64/python3.9/site-packages/spman/main.py", line 149, in update
    from .update import Update
  File "/usr/lib64/python3.9/site-packages/spman/update.py", line 23, in <module>
    from .download import Download
  File "/usr/lib64/python3.9/site-packages/spman/download.py", line 25, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
:(

What should I do ?

  • For info my config is based on Porteus 5.0 :
    core, xorg, xtra (2022-06-30), xfce4 (2022-05-05)

User avatar
Blaze
DEV Team
DEV Team
Posts: 3869
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus current ☯ all DEs ☯
Location: ☭ Russian Federation, Lipetsk region, Dankov
Contact:

spman; a package manager for porteus 5.0, very interesting

Post#22 by Blaze » 11 Mar 2023, 16:16

Hi Rapha_.
How about to get and activate python-requests

Code: Select all

su
toor
getpkg python-requests
?
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

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

spman; a package manager for porteus 5.0, very interesting

Post#23 by francois » 11 Mar 2023, 16:58

I am sure that blaze might be right.

But in case, here is the procedure by the author of spman that I have used:
https://github.com/MyRequiem/spman#readme

Code: Select all

Build and install:
`~# wget https://github.com/MyRequiem/spman/archive/2.2.3/spman-2.2.3.tar.gz
~# tar -xvzf spman-2.2.3.tar.gz
~# cd spman-2.2.3/slackbuild
~# ./spman.SlackBuild
~# upgradepkg --install-new --reinstall /tmp/spman-2.2.3-*.t?z
Prendre son temps, profiter de celui qui passe.

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

spman; a package manager for porteus 5.0, very interesting

Post#24 by Rapha_ » 12 Mar 2023, 00:11

Thank you Blaze and francois :good:

Then, with these new error messages end :

Code: Select all

...
Exception: You need either charset_normalizer or chardet installed

Code: Select all

...
ModuleNotFoundError: No module named 'certifi'

Code: Select all

...
ModuleNotFoundError: No module named 'idna'
I added ;
python-requests-2.26.0-x86_64-3.xzm
python-charset-normalizer-2.0.10-x86_64-1.xzm
python-certifi-2021.10.8-x86_64-2.xzm
python-idna-3.3-x86_64-2.xzm

Now the update (-u) seem to work !


Thanks :)

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

spman; a package manager for porteus 5.0, very interesting

Post#25 by francois » 12 Mar 2023, 01:23

@rapha:
Good catch!
I like the way spman works.
Have fun.
Prendre son temps, profiter de celui qui passe.

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

spman; a package manager for porteus 5.0, very interesting

Post#26 by francois » 31 May 2023, 11:34

@babam:
spman supports dependency resolution for
1) already built packages
2) slackbuids see vlc.
spman to build zoom, openoffice, vlc from sbo
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

spman; a package manager for porteus 5.0, very interesting

Post#27 by beny » 01 Jun 2023, 17:38

Code: Select all

 oot@porteus:/tmp# sboui
Cloning into 'repo'...
remote: Enumerating objects: 498, done.
remote: Counting objects: 100% (498/498), done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 663584 (delta 385), reused 393 (delta 351), pack-reused 663086
Receiving objects: 100% (663584/663584), 141.46 MiB | 3.70 MiB/s, done.
Resolving deltas: 100% (485179/485179), done.
Updating files: 100% (43887/43887), done.
Switched to a new branch '15.0'
Press Enter to return to main window ...
                                           
well here the sync.... try to do this with open window of sboui not with the terminal it have a different way to work from sbopkg.but have the same working directory in /tmp

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

spman; a package manager for porteus 5.0, very interesting

Post#28 by francois » 02 Jun 2023, 00:15

Hello beny.
sboui is a very simple gui interface for many package builder of manager. It looks like midnight commander (mc)

Maybe you already know, but sboui could build sbo with different package builder:
1) sboui built-in
2) sbopkg mode
3) sbotools mode
4) custom mode, which means that given the commands of another sbo package builder, would be the interface for spman, slapt-src, etc.

You can set the package builder with the File > option menu (top left)

I have tried to figure out for spman, but I am not sure. I was to explore that more in depth.

:happy62:
Prendre son temps, profiter de celui qui passe.

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

spman; a package manager for porteus 5.0, very interesting

Post#29 by francois » 02 Jun 2023, 20:37

@beny:

Rereading your last post, I am not sure what your question or intervention was. :)
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2086
Joined: 02 Jan 2011, 11:33
Location: italy

spman; a package manager for porteus 5.0, very interesting

Post#30 by beny » 03 Jun 2023, 15:34

hi francois it is an answer to the linux question tread https://www.linuxquestions.org/question ... age16.html well you have upgraded sbopkg inside sboui? I have told you the sboui have another way to work,but is ok

Post Reply