[Porteus 5.0's USM replacement] getmod: A wrapper for slapt-get to build modules

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
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#61 by Rava » 25 Sep 2022, 12:07

^
Thanks for that :friends: , the link finally got me here:

https://sourceforge.net/projects/mtpain ... aint/3.50/

Code: Select all

Name				size		weekly downloads
mtpaint_handbook-3.50.zip 	2.7 MB 		7
Cheers!
Yours Rava

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#62 by Rava » 25 Sep 2022, 13:53

When you run slapt-get -i -d where does slapt-get save the package?
Not in $PWD, and not in /tmp. ???

Code: Select all

root@porteus:/Porteus_modules_sdb4/telegram# slapt-get -i -d telegram
Reading Package Lists...Done
The following NEW packages will be installed:
  telegram 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 38.9MB of archives.
1/1 Get http://slackware.uk/salix/x86_64/extra-15.0/ telegram 3.7.3-x86_64-1salix15.0 [38.9MB]...Done

Done
root@porteus:/Porteus_modules_sdb4/telegram# ls
telegram-3.6.1-x86_64-1_slonly.txz  telegram-4.1.0-x86_64-1smt.xzm
telegram-3.6.1-x86_64-1_slonly.xzm  telegram-cli-20200106-x86_64-1smt.txz
telegram-4.1.0-x86_64-1smt.txz      telegram-cli-20200106-x86_64-1smt.xzm
Where is the allegedly downloaded telegram 3.7.3-x86_64-1salix15.0.txz?
The others I downloaded via the https://slakfinder.org link https://slakfinder.org/index.php?act=se ... e=#results

Update
and the manual download link is nil this http://slackware.uk/salix/x86_64/extra- ... ix15.0.txz
but this: http://slackware.uk/salix/x86_64/extra- ... ix15.0.txz
Cheers!
Yours Rava

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

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#63 by beny » 25 Sep 2022, 15:39

hi /var/slapt-get but is better getmod for porteus...

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#64 by Rava » 25 Sep 2022, 15:42

slapt-get seems to recreate the servers folder hierarchy:

Code: Select all

root@porteus:/# ls /var/slapt-get/salix/network/
telegram-3.7.3-x86_64-1salix15.0.txz
beny wrote:
25 Sep 2022, 15:39
but is better getmod for porteus...
When I recall correct that downloads it into the $PWD?
Cheers!
Yours Rava

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

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#65 by beny » 25 Sep 2022, 15:48

slapt-get -d -i look like this with directories like slackpkg when update system:
/var/slapt-get/salix/ap
/var/slapt-get/salix/development
/var/slapt-get/salix/l
/var/slapt-get/salix/libraries
/var/slapt-get/salix/misc
/var/slapt-get/salix/multimedia
/var/slapt-get/salix/n
/var/slapt-get/salix/system
and there is also a slackware directories:
/var/slapt-get/slackware64/l all this for the vlc package but you have to work on it to make the xzm the getmod do it for you in auto way getmod -m vlc

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#66 by Rava » 25 Sep 2022, 16:37

beny wrote:
25 Sep 2022, 15:48
all this for the vlc package but you have to work on it to make the xzm the getmod do it for you in auto way getmod -m vlc
So, with the example of vlc - getmod would (like USM did) solve the dependency issues by itself and build a module that runs 100% ?
Cheers!
Yours Rava

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

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#67 by beny » 25 Sep 2022, 17:34

hi Rava, is confirmed getmod does it, try it

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#68 by Rava » 25 Sep 2022, 17:38

Code: Select all

root@porteus:/mybin/linux/vlc# getmod -m vlc 
Reading Package Lists...Done
Suggested packages:
  alsa-lib bzip2 elfutils eudev gcc libffi libjpeg-turbo libpng pcre xz zlib 
  brotli cairo cdparanoia elfutils fontconfig freetype fribidi graphite2 
  harfbuzz libX11 libXau libXdmcp libXext libXrender libXv libdrm libglvnd 
  libgudev libogg libtheora libunwind libvisual libvorbis libxcb libxml2 mesa 
  opus orc pixman wayland 
The following NEW packages will be installed:
  expat pango gtk+3 graphene gstreamer gst-plugins-base hunspell jasper gtk4 
  libwacom libinput llvm judy mariadb openal-soft speech-dispatcher 
  xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm qt5 avahi 
  celt chromaprint fluidsynth libconfig libiec61883 libxml++ libffado jack2 
  libavc1394 libdc1394 libdca libdvbpsi libkate libmpeg2 libnfs libshout 
  libsidplay2 libtar libvncserver live555 libcuefile libreplaygain 
  musepack-tools projectM protobuf3 schroedinger zvbi portaudio jack 
  libmodplug vcdimager dirac GConf gnome-mime-data libidl ORBit2 libbonobo 
  gnome-vfs libdvdcss libminizip vlc 
0 upgraded, 0 reinstalled, 63 newly installed, 0 to remove, 0 not upgraded.
Need to get 240.5MB of archives.
Do you want to continue? [y/N] 
Abort.
Why is the list of the suggested packages shorter than the list of the packages it will download?
Cheers!
Yours Rava

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

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#69 by beny » 25 Sep 2022, 17:41

the software check into the system and report ,so you have more packages that need to be downloaded to run vlc in my vlc are 41 but what is mybin/linux/vlc? suggested package seem system packages that porteus have yet or not so maybe the path of your search is wrong a lot of the packages are installed.
Last edited by beny on 25 Sep 2022, 17:49, edited 1 time in total.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#70 by Rava » 25 Sep 2022, 17:45

beny wrote:
25 Sep 2022, 17:41
what is mybin/linux/vlc
/mybin/ is a symlink to the folder where my binaries are. :D
Cheers!
Yours Rava

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#71 by babam » 25 Sep 2022, 19:00

Rava wrote:
25 Sep 2022, 17:38

Code: Select all

root@porteus:/mybin/linux/vlc# getmod -m vlc 
Reading Package Lists...Done
Suggested packages:
  alsa-lib bzip2 elfutils eudev gcc libffi libjpeg-turbo libpng pcre xz zlib 
  brotli cairo cdparanoia elfutils fontconfig freetype fribidi graphite2 
  harfbuzz libX11 libXau libXdmcp libXext libXrender libXv libdrm libglvnd 
  libgudev libogg libtheora libunwind libvisual libvorbis libxcb libxml2 mesa 
  opus orc pixman wayland 
The following NEW packages will be installed:
  expat pango gtk+3 graphene gstreamer gst-plugins-base hunspell jasper gtk4 
  libwacom libinput llvm judy mariadb openal-soft speech-dispatcher 
  xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm qt5 avahi 
  celt chromaprint fluidsynth libconfig libiec61883 libxml++ libffado jack2 
  libavc1394 libdc1394 libdca libdvbpsi libkate libmpeg2 libnfs libshout 
  libsidplay2 libtar libvncserver live555 libcuefile libreplaygain 
  musepack-tools projectM protobuf3 schroedinger zvbi portaudio jack 
  libmodplug vcdimager dirac GConf gnome-mime-data libidl ORBit2 libbonobo 
  gnome-vfs libdvdcss libminizip vlc 
0 upgraded, 0 reinstalled, 63 newly installed, 0 to remove, 0 not upgraded.
Need to get 240.5MB of archives.
Do you want to continue? [y/N] 
Abort.
Why is the list of the suggested packages shorter than the list of the packages it will download?
Download and activate http://dl.porteus.org/x86_64/Porteus-v5 ... -gnome.xzm

Code: Select all

# getmod -m vlc xcb-util-image xcb-util-keysyms xcb-util-renderutil xcb-util-wm
You will see the difference.

This is weird, VLC doesn't need gtk+3 and gtk4.
Did you do what I suggested to create symlinks slapt-get: slapt-get is an APT like system for Slackware package management. (Post by babam #89197)
Sorry, my English is bad.

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

slapt-get: slapt-get is an APT like system for Slackware package management.

Post#72 by Rava » 25 Sep 2022, 19:49

babam wrote:
25 Sep 2022, 19:00
This is weird, VLC doesn't need gtk+3 and gtk4.
Did you do what I suggested to create symlinks slapt-get: slapt-get is an APT like system for Slackware package management. (Post by babam #89197)
I indeed forgot, after doing it it still wants "173.4MB of archives":

Code: Select all

root@porteus:/mybin/linux/vlc# getmod -m vlc 
Reading Package Lists...Done
Suggested packages:
  alsa-lib bzip2 elfutils eudev gcc libffi libjpeg-turbo libpng pcre xz zlib 
  brotli cairo cdparanoia elfutils fontconfig freetype fribidi graphite2 
  harfbuzz libX11 libXau libXdmcp libXext libXrender libXv libdrm libglvnd 
  libgudev libogg libtheora libunwind libvisual libvorbis libxcb libxml2 mesa 
  opus orc pixman wayland 
The following NEW packages will be installed:
  expat pango graphene gstreamer gst-plugins-base hunspell jasper gtk4 libwacom 
  libinput judy mariadb openal-soft speech-dispatcher xcb-util-image 
  xcb-util-keysyms xcb-util-renderutil xcb-util-wm qt5 avahi celt chromaprint 
  fluidsynth libconfig libiec61883 libxml++ libffado jack2 libavc1394 
  libdc1394 libdca libdvbpsi libkate libmpeg2 libnfs libshout libsidplay2 
  libtar libvncserver live555 libcuefile libreplaygain musepack-tools projectM 
  protobuf3 schroedinger zvbi portaudio jack libmodplug vcdimager dirac GConf 
  gnome-mime-data libidl ORBit2 libbonobo gnome-vfs libdvdcss libminizip vlc 
0 upgraded, 0 reinstalled, 61 newly installed, 0 to remove, 0 not upgraded.
Need to get 173.4MB of archives.
Do you want to continue? [y/N] 
Abort.
Added in 2 minutes 55 seconds:
Edit
your suggested bundle did indeed a good trick. After activating qt5-base-5.15.3_20220318-x86_64-xfce-cinnamon-openbox-lxde-mate-gnome.xzm

Code: Select all

Reading Package Lists...Done
Suggested packages:
  alsa-lib bzip2 elfutils eudev gcc libffi libjpeg-turbo libpng pcre xz zlib 
  brotli cairo cdparanoia elfutils fontconfig freetype fribidi graphite2 
  harfbuzz libX11 libXau libXdmcp libXext libXrender libXv libdrm libglvnd 
  libgudev libogg libtheora libunwind libvisual libvorbis libxcb libxml2 mesa 
  opus orc pixman wayland 
The following NEW packages will be installed:
  expat pango avahi celt chromaprint fluidsynth graphene gstreamer 
  gst-plugins-base libconfig libiec61883 libxml++ libffado jack2 libavc1394 
  libdc1394 libdca libdvbpsi libkate libmpeg2 libnfs libshout libsidplay2 
  libtar libvncserver live555 libcuefile libreplaygain musepack-tools projectM 
  protobuf3 schroedinger xcb-util-keysyms zvbi portaudio jack libmodplug 
  vcdimager dirac GConf gnome-mime-data libidl ORBit2 libbonobo gnome-vfs 
  libdvdcss libminizip vlc 
0 upgraded, 0 reinstalled, 48 newly installed, 0 to remove, 0 not upgraded.
Need to get 29.0MB of archives.
Do you want to continue? [y/N] 
Abort.
Added in 4 hours 49 minutes 2 seconds:
About the 2nd search attempt above. The one with "Need to get 29.0MB of archives"
I manually looked up some of these "Suggested packages:"

Code: Select all

guest@porteus:/$ l /usr/lib64/imlib2/loaders/zlib.so*
-rwxr-xr-x 1 root 14400 2022-07-23 11:24 /usr/lib64/imlib2/loaders/zlib.so
guest@porteus:/$ l /usr/lib64/libcairo.so*
lrwxrwxrwx 1 root      21 2022-07-23 11:22 /usr/lib64/libcairo.so -> libcairo.so.2.11600.0
lrwxrwxrwx 1 root      21 2022-07-23 11:22 /usr/lib64/libcairo.so.2 -> libcairo.so.2.11600.0
-rwxr-xr-x 1 root 1261824 2022-07-23 11:24 /usr/lib64/libcairo.so.2.11600.0
Do we need to create a symlink in /usr/lib64/ that directs to /usr/lib64/imlib2/loaders/zlib.so or is a loader a different thing than a regular library?

Is the cairo it wants not libcairo?

Also, we have elfutils installed:

Code: Select all

guest@porteus:/mnt/live/memory/images$ find . 2>/dev/null|grep -E "elfutils"
./001-core.xzm/var/lib/pkgtools/packages/elfutils-0.186-x86_64-1
(These are the only ones I checked)
Cheers!
Yours Rava

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

Porteus 5.0's USM replacement: slapt-get, getmod

Post#73 by beny » 26 Sep 2022, 11:48

hi Rava, i don't have a prefered packages with getmod,maybe you have to do the search on home directory most of this packages are installed, ok the gcc maybe you don't have the devel.xzm but other are part of the core system,if we have the same porteus5 system...

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Porteus 5.0's USM replacement: slapt-get, getmod

Post#74 by Rava » 28 Sep 2022, 00:57

I removed some off-topic posts. I also moved my posts about the failed attempt in incorporating the symlink creation by module activation.

babam, some suggestions:

● getmod should have a higher priority and should be placed first in the initial post since it is better suited for all things Porteus, and it has the ability to solve dependencies on its own.

If you agree, I can edit the initial post for you. Please tell how and / or what I should do.
______________________________________

For the rest, unfortunately I have no solution yet:

● I tried, but failed (at times it seems to work when activating my module, and then it doesn't and I do not get why that is) [I removed my posts about that since my own module is not working as intended, use babam's instead and do manually create the symlinks.], but hopefully one of the many module creators should be good enough with making a module to add the creation of the needed symlinks the Slackware way - by using the correct folder hierarchy.
The module I examined and used as reference had its symlink creation script in /var/log/scripts/ - that's where I put mine to make 011-slapt-get-0.11.6-x86_64-2gv_rava.xzm the malfunctioning module.

Now I looked into a different module it also uses the same path for its symlink creation script:
a module based on the ponce package fbreader-0.12.10-x86_64-2ponce has this in its /var/log/scripts

For now I do not get why my module is so unreliable when other modules using the same path for the script work fine. :wall:
Cheers!
Yours Rava

User avatar
babam
Warlord
Warlord
Posts: 526
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K6.1.1
Location: Rainy city

Porteus 5.0's USM replacement: slapt-get, getmod

Post#75 by babam » 29 Sep 2022, 09:30

Rava wrote:
28 Sep 2022, 00:57

babam, some suggestions:

● getmod should have a higher priority and should be placed first in the initial post since it is better suited for all things Porteus, and it has the ability to solve dependencies on its own.

If you agree, I can edit the initial post for you. Please tell how and / or what I should do.
You are free to edit the initial post, I leave this thread to you.
Sorry, my English is bad.

Post Reply