slpkg : package builder (manager) linux

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.
beny
Full of knowledge
Full of knowledge
Posts: 902
Joined: 02 Jan 2011, 11:33
Location: italy

slpkg : package builder (manager) linux

Post#16 by beny » 08 Sep 2020, 16:20

root@porteus:/home/guest# slpkg -F solitaire
Packages with name matching [ solitaire ]

+==============================================================================
| Repository Package Size
+==============================================================================
sbo tty-solitaire-1.1.0 0 K

Found summary
===============================================================================
Total found 1 packages in 1 repositories.

root@porteus:/home/guest#

https://gitlab.com/dslackw/slpkg/blob/m ... XAMPLES.md hi Ed_P this is a good link to know

User avatar
Ed_P
Moderator
Moderator
Posts: 5690
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

slpkg : package builder (manager) linux

Post#17 by Ed_P » 08 Sep 2020, 18:33

:o Thank you beny. I had thought you were the app's author. :oops:

Added in 1 hour 9 minutes 16 seconds:
The app needs work imho. :(

Code: Select all

root@porteus:/home/guest# slpkg -F solitaire
Packages with name matching [ solitaire ]

+==============================================================================
| Repository Package                                                       Size
+==============================================================================
  sbo         tty-solitaire-1.1.0                                           0 K

Found summary
===============================================================================
Total found 1 packages in 1 repositories.

root@porteus:/home/guest# slpkg -p sbo tty-solitaire*
No such package tty-solitaire*: No matching
root@porteus:/home/guest# slpkg -p sbo tty-solitaire-1.1.0
No such package tty-solitaire-1.1.0: No matching
root@porteus:/home/guest# slpkg -F games
Packages with name matching [ games ]

+==============================================================================
| Repository Package                                                       Size
+==============================================================================
  slack       bsd-games-2.13-x86_64-12.txz                               1724 K
  slack       libkdegames-4.14.3-x86_64-2.txz                            5700 K
  slack       xgames-0.3-x86_64-4.txz                                     112 K
  sbo         cgames-2.2a                                                   0 K

Found summary
===============================================================================
Total found 4 packages in 2 repositories.

root@porteus:/home/guest# slpkg -p slack xgames-0.3-x86_64-4.txz
No such package xgames-0.3-x86_64-4.txz: No matching
root@porteus:/home/guest# 
Ed

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

slpkg : package builder (manager) linux

Post#18 by beny » 09 Sep 2020, 10:25

hi Ed_P we need to know well the syntax slpkg seem a bit complex, for the sbo repos you have to build packages so you have into the /tmp directory but the txz packages,how to manage without an automatic installation:
root@porteus:/home/guest# slpkg -s slack xgames
Reading package lists... Done
Resolving dependencies... Done

The following packages will be automatically installed or upgraded
with new version:

+==============================================================================
| Package New Version Arch Build Repos Size
+==============================================================================
Installing:
xgames 0.3 x86_64 4 slack 112 K

Installing summary
===============================================================================
Total 1 package.
1 package will be installed, 0 will be upgraded and 0 will be reinstalled.
Need to get 112 Kb of archives.
After this process, 370 Kb of additional disk space will be used.

Would you like to continue [y/N]?

User avatar
Ed_P
Moderator
Moderator
Posts: 5690
Joined: 06 Feb 2013, 22:12
Distribution: 4.0 & 5.0rc2 Cinnamon 64 ISOs
Location: Western NY, USA

slpkg : package builder (manager) linux

Post#19 by Ed_P » 09 Sep 2020, 12:37

So what got installed?? :%)

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# slpkg -s slack xgames
Reading package lists... Done
Resolving dependencies... Done

The following packages will be automatically installed or upgraded 
with new version:

+==============================================================================
| Package                 New Version        Arch    Build  Repos          Size
+==============================================================================
Installing:
  xgames                  0.3                x86_64  4      slack         112 K

Installing summary
===============================================================================
Total 1 package.
1 package will be installed, 0 will be upgraded and 0 will be reinstalled.
Need to get 112 Kb of archives.
After this process, 370 Kb of additional disk space will be used.

Would you like to continue [y/N]? y

[1/1][ Download ] --> xgames-0.3-x86_64-4.txz

URL transformed to HTTPS due to an HSTS policy
--2020-09-09 08:09:12--  https://mirrors.slackware.com/slackware/slackware64-14.2/slackware64/xap/xgames-0.3-x86_64-4.txz
Resolving mirrors.slackware.com (mirrors.slackware.com)... 207.223.116.213
Connecting to mirrors.slackware.com (mirrors.slackware.com)|207.223.116.213|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://mirror.lug.udel.edu/pub/slackware/slackware64-14.2/slackware64/xap/xgames-0.3-x86_64-4.txz [following]
--2020-09-09 08:09:13--  http://mirror.lug.udel.edu/pub/slackware/slackware64-14.2/slackware64/xap/xgames-0.3-x86_64-4.txz
Resolving mirror.lug.udel.edu (mirror.lug.udel.edu)... 128.4.11.201
Connecting to mirror.lug.udel.edu (mirror.lug.udel.edu)|128.4.11.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 114676 (112K) [text/plain]
Saving to: ‘/tmp/slpkg/packages/xgames-0.3-x86_64-4.txz’

xgames-0.3-x86_64-4 100%[===================>] 111.99K   470KB/s    in 0.2s    

2020-09-09 08:09:13 (470 KB/s) - ‘/tmp/slpkg/packages/xgames-0.3-x86_64-4.txz’ saved [114676/114676]


+==============================================================================
| MD5SUM check for xgames-0.3-x86_64-4.txz [ PASSED ]
+==============================================================================

[ installing ] --> xgames-0.3-x86_64-4.txz

+==============================================================================
| Installing new package /tmp/slpkg/packages/xgames-0.3-x86_64-4.txz
+==============================================================================

Verifying package xgames-0.3-x86_64-4.txz.
Installing package xgames-0.3-x86_64-4.txz:
PACKAGE DESCRIPTION:
# xgames (small X games collection)
#
# A few small and historic games and toys for X.
#
# Includes maze, spider, xcolormap, xlander, xminesweep, xroach, xsnow.
#
Package xgames-0.3-x86_64-4.txz installed.
Completed!

+==============================================================================
| Total 1 package installed and 0 package upgraded
+==============================================================================
| Package xgames-0.3 installed successfully
+==============================================================================

root@porteus:/home/guest# ./changes.sh 2
 mmin = 2
******
/mnt/live/memory/changes/home/guest/.local/share
/mnt/live/memory/changes/home/guest/.local/share/recently-used.xbel
/mnt/live/memory/changes/home/guest/.local/share/gvfs-metadata
/mnt/live/memory/changes/home/guest/.local/share/gvfs-metadata/root
/mnt/live/memory/changes/home/guest/.local/share/gvfs-metadata/root-087ac7e2.log
/mnt/live/memory/changes/home/guest/.config/dconf
/mnt/live/memory/changes/home/guest/.config/dconf/user
/mnt/live/memory/changes/home/guest/.mozilla/firefox/dxsqumip.default/sessionstore-backups
/mnt/live/memory/changes/home/guest/.mozilla/firefox/dxsqumip.default/sessionstore-backups/recovery.jsonlz4
/mnt/live/memory/changes/var/lib/NetworkManager
/mnt/live/memory/changes/var/lib/NetworkManager/timestamps
/mnt/live/memory/changes/var/log/secure

root@porteus:/home/guest# ls -R /tmp/slpkg
/tmp/slpkg:
build/  packages/  patches/

/tmp/slpkg/build:
_SOURCES/

/tmp/slpkg/build/_SOURCES:

/tmp/slpkg/packages:

/tmp/slpkg/patches:
root@porteus:/home/guest# 
But some of the games do work, minesweep for example. And xneko! :o

Hard to convert txz downloads to xzm without knowing what got installed. :wall:

Added in 31 minutes 10 seconds:
Ok, reran and this time got more info.

Code: Select all

root@porteus:/home/guest# ./changes.sh
 mmin = 1
******
/mnt/live/memory/changes
/mnt/live/memory/changes/root
/mnt/live/memory/changes/root/.wget-hsts
/mnt/live/memory/changes/root/.bash_history
/mnt/live/memory/changes/tmp
/mnt/live/memory/changes/tmp/slpkg/packages
/mnt/live/memory/changes/usr/lib64
/mnt/live/memory/changes/usr/lib64/libColorGearC.so.2
/mnt/live/memory/changes/usr/lib64/libXvMCgallium.so.1
/mnt/live/memory/changes/usr/lib64/libudev.so.1
/mnt/live/memory/changes/home/guest
/mnt/live/memory/changes/home/guest/.bash_history
/mnt/live/memory/changes/var/cache
/mnt/live/memory/changes/var/cache/ldconfig
/mnt/live/memory/changes/var/cache/ldconfig/aux-cache
/mnt/live/memory/changes/var/lib
/mnt/live/memory/changes/var/lib/pkgtools
/mnt/live/memory/changes/var/lib/pkgtools/packages
/mnt/live/memory/changes/var/lib/pkgtools/packages/xgames-0.3-x86_64-4
/mnt/live/memory/changes/var/lib/pkgtools/setup
/mnt/live/memory/changes/var/lib/pkgtools/setup/tmp
/mnt/live/memory/changes/var/lib/NetworkManager
/mnt/live/memory/changes/var/lib/NetworkManager/timestamps
/mnt/live/memory/changes/var/log/slpkg
/mnt/live/memory/changes/var/log/slpkg/dep
/mnt/live/memory/changes/var/log/secure
/mnt/live/memory/changes/etc
/mnt/live/memory/changes/etc/ld.so.cache

root@porteus:/home/guest# xneko
The /mnt/live/memory/changes/var/lib/pkgtools/packages/xgames-0.3-x86_64-4 file proved interesting.

Code: Select all

PACKAGE NAME:     xgames-0.3-x86_64-4
COMPRESSED PACKAGE SIZE:     112K
UNCOMPRESSED PACKAGE SIZE:     370K
PACKAGE LOCATION: /tmp/slpkg/packages/xgames-0.3-x86_64-4.txz
PACKAGE DESCRIPTION:
xgames: xgames (small X games collection)
xgames:
xgames: A few small and historic games and toys for X.
xgames:
xgames: Includes maze, spider, xcolormap, xlander, xminesweep, xroach, xsnow.
xgames:
xgames:
xgames:
xgames:
xgames:
xgames:
FILE LIST:
./
install/
install/slack-desc
usr/
usr/bin/
usr/bin/maze
usr/bin/spider
usr/bin/xcolormap
usr/bin/xcuckoo
usr/bin/xlander
usr/bin/xminesweep
usr/bin/xneko
usr/bin/xroach
usr/bin/xsnow
usr/doc/
usr/doc/xgames-0.3/
usr/doc/xgames-0.3/maze/
usr/doc/xgames-0.3/maze/README
usr/doc/xgames-0.3/spider/
usr/doc/xgames-0.3/spider/README
usr/doc/xgames-0.3/spider/README.linux
usr/doc/xgames-0.3/xcolormap/
usr/doc/xgames-0.3/xcolormap/README
usr/doc/xgames-0.3/xcuckoo/
usr/doc/xgames-0.3/xcuckoo/CHANGES
usr/doc/xgames-0.3/xlander/
usr/doc/xgames-0.3/xlander/README
usr/doc/xgames-0.3/xminesweep/
usr/doc/xgames-0.3/xminesweep/README
usr/doc/xgames-0.3/xneko/
usr/doc/xgames-0.3/xneko/README
usr/doc/xgames-0.3/xroach/
usr/doc/xgames-0.3/xroach/README.linux
usr/doc/xgames-0.3/xsnow/
usr/doc/xgames-0.3/xsnow/README
usr/man/
usr/man/man6/
usr/man/man6/maze.6.gz
usr/man/man6/spider.6.gz
usr/man/man6/xcuckoo.6.gz
usr/man/man6/xlander.6.gz
usr/man/man6/xminesweep.6.gz
usr/man/man6/xneko.6.gz
usr/man/man6/xroach.6.gz
usr/man/man6/xsnow.6.gz
Added in 6 minutes 40 seconds:
So, to convert the xgames install files to an xzm would be doable but it is easier to simply download the txz file and run it thru txz2xzm. It becomes more complex if a package has multiple dependencies.
Ed

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

slpkg : package builder (manager) linux

Post#20 by francois » 02 Oct 2020, 21:44

So how are you guys doing with slpkg? Are you using it regularly? Is it more handy than slackyd?

@beny:
Is slackyd package still maintained?
Prendre son temps, profiter de celui qui passe.

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

slpkg : package builder (manager) linux

Post#21 by ncmprhnsbl » 03 Oct 2020, 00:32

slpkg is great, in that it can be configured to multiple repos... but as far as dependency provision goes: it depends ;) : while some repos provide some dependency lists, they only refer to packages also in the same repo.. other repos provide no dep list at all, and afaics there's no cross check with what's already installed.
this is all fine on a full slackware installation, because (almost)everything is included , where porteus, although it uses slackware packages, is not slackware
ultimately, usm will need to be resurrected or reinvented, because any package manager designed for slackware isn't going to fill in the gaps we put in porteus that gives it it's size/portability/speed..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

slpkg : package builder (manager) linux

Post#22 by beny » 04 Oct 2020, 16:31

hi, well the goal of a package manager is to made the user life simpler,my trust is only for ponce repos and alien bob repos too, when i need a software i build it with sbo and i like the build from source,in porteus also when you have the changes directory package error give your system unstable,slpkg is a great software but we need to handle it with care.

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

slpkg : package builder (manager) linux

Post#23 by francois » 18 Oct 2020, 01:30

I am under porteus 4.0 with the 05-devel.xzm

Code: Select all

root@porteus:/# slpkg
Traceback (most recent call last):
  File "/usr/bin/slpkg", line 35, in <module>
    from slpkg.main import main
ModuleNotFoundError: No module named 'slpkg'
root@porteus:/# 
I have used slpkg binary from:
https://sourceforge.net/projects/slpkg/

Code: Select all

root@porteus:/mnt/sdb3/64_V40/porteus/porteus/optional/slpkg# ls
aria2-1.22.0-x86_64-1rl.xzm
graph-easy-0.76-x86_64-1_slonly.xzm
pygraphviz-1.3.1-x86_64-bundle.xzm
python3-pythondialog-3.5.1-x86_64-1_slonly.xzm
slpkg-3.9.0-x86_64-1_dsw.xzm
root@porteus:/mnt/sdb3/64_V40/porteus/porteus/optional/slpkg# 
What is wrong in my case?
Thanks.
Prendre son temps, profiter de celui qui passe.

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

slpkg : package builder (manager) linux

Post#24 by ncmprhnsbl » 18 Oct 2020, 02:03

that binary appears to be compiled for python-3.7 .. what version(s) of python do you have?
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply