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

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

Post#196 by beny » 29 Oct 2022, 10:01

hi ncmprhnsbl no problem at all the mismatch for getmod is only for the slackware aufs current version not porteus5 and i have told in the tread,

User avatar
babam
Shogun
Shogun
Posts: 445
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K5.19.6
Location: Rainy city

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

Post#197 by babam » 29 Oct 2022, 18:09

Update 2022.10.30:
getmod ---> Fixes

Download:
https://drive.google.com/uc?export=down ... 13TxjR9A8F

MD5SUM:
7a675fe37c1db418656c7176a0207641
Sorry, my English is bad.

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

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

Post#198 by Rava » 29 Oct 2022, 20:01

Ed_P wrote:
29 Oct 2022, 00:13
Yet you install a module that is a Java Development Kit:
No, I did not when I realized what it was (I not always read the dependency description though I was immediately put of by zulu's size)

Lookie here:
Rava wrote:
28 Oct 2022, 23:26
the purge…

Code: Select all

root@porteus:/Porteus_modules# rm -rv /7/tmp/mucommander-0.9.0+zulu-openjdk8-8.0.322-x86_64.xzm /7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/*
removed '/7/tmp/mucommander-0.9.0+zulu-openjdk8-8.0.322-x86_64.xzm'
removed '/7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/development/zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz'
removed directory '/7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/development'
removed '/7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/system/mucommander-0.9.0-noarch-1salix15.0.txz'
removed directory '/7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/system'
:teehee:
Added in 9 hours 24 minutes 29 seconds:
babam wrote:
29 Oct 2022, 00:50
Enter package name without version-architecture
Indeed that works. (Most recent version aka 011-slapt-get-0.11.6-x86_64-2gv_2022.10.30.xzm )
When I recall right I did add the arch since otherwise it would also not work, but since I rebooted and the olden terminal output that could confirm my recollection is now lost in its digital bit & bytes recycling rebirth.

Code: Select all

root@porteus:/7/tmp# TMP=/7/tmp/ getmod -M mucommander
Reading Package Lists...Done
The following NEW packages will be installed:
  zulu-openjdk8 mucommander 
0 upgraded, 0 reinstalled, 2 newly installed, 0 to remove, 0 not upgraded.
Need to get 86.3MB of archives.
Do you want to continue? [y/N] y
1/2 Get http://slackware.uk/salix/x86_64/extra-15.0/ zulu-openjdk8 8.0.322-x86_64-1salix15.0 [82.3MB]...Done
2/2 Get http://slackware.uk/salix/x86_64/extra-15.0/ mucommander 0.9.0-noarch-1salix15.0 [4.0MB]...Done

Done
Verifying package zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz.
Installing package zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz:
PACKAGE DESCRIPTION:
# zulu-openjdk8 (Open Implementation of JDK)
#
# Zulu is a Java Development Kit (JDK), and a compliant implementation
# of the Java Standard Edition (SE) specification that contains all the
# Java components needed to build and run Java SE applications. Zulu
# has been verified by passing all tests in the Java SE 8 version of
# the OpenJDK Community Technology Compatibility Kit (TCK).
#
# https://www.azul.com/downloads/
#
Executing install script for zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz.
Package zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz installed.
Verifying package mucommander-0.9.0-noarch-1salix15.0.txz.
Installing package mucommander-0.9.0-noarch-1salix15.0.txz:
PACKAGE DESCRIPTION:
# mucommander (cross-platform file manager)
#
# muCommander is a lightweight, cross-platform file manager with a
# dual-pane interface.  It runs on any operating system with Java
# support.
#
# muCommander has virtual file system support for local volumes,
# FTP, SFTP, SMB, NFS, HTTP, Amazon S3, Hadoop HDFS and Bonjour.  It
# can browse, create and uncompress ZIP, RAR, 7z, TAR, GZip, BZip2,
# ISO/NRG, AR/Deb and LST archives.
#
Executing install script for mucommander-0.9.0-noarch-1salix15.0.txz.
Package mucommander-0.9.0-noarch-1salix15.0.txz installed.
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /7/tmp//mucommander-0.9.0-noarch-1salix15.0.xzm, block size 262144.
[=============================================================\] 1369/1369 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments,
	compressed xattrs, compressed ids
	duplicates are removed
Filesystem size 98343.54 Kbytes (96.04 Mbytes)
	46.11% of uncompressed filesystem size (213288.28 Kbytes)
Inode table size 8312 bytes (8.12 Kbytes)
	29.37% of uncompressed inode table size (28300 bytes)
Directory table size 6922 bytes (6.76 Kbytes)
	40.44% of uncompressed directory table size (17116 bytes)
Number of duplicate files found 33
Number of inodes 779
Number of files 592
Number of fragments 48
Number of symbolic links 9
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 178
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

====> '/7/tmp//mucommander-0.9.0-noarch-1salix15.0.xzm' was created successfully.
Of course, all I now do is the same as above:

Code: Select all

root@porteus:/7/tmp# du -scm GETMOD/mucommander mucommander-0.9.0-noarch-1salix15.0.xzm 
87	GETMOD/mucommander
97	mucommander-0.9.0-noarch-1salix15.0.xzm
183	total
root@porteus:/7/tmp# rm -r GETMOD/mucommander mucommander-0.9.0-noarch-1salix15.0.xzm
this was just a test run if getmod works.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 7324
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

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

Post#199 by Ed_P » 05 Dec 2022, 06:32

Any fix for these 2 errors

Code: Select all

/usr/bin/getmod: line 42: [: gtk+3-3.24.33-x86_64-1: binary operator expected

Verifying checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...No key for verification
from

Code: Select all

guest@porteus:~$ getmod -u
Enter root's password: 
/usr/bin/getmod: line 42: [: gtk+3-3.24.33-x86_64-1: binary operator expected
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Retrieving patch list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Retrieving checksum list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Retrieving checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Verifying checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...No key for verification
Retrieving ChangeLog.txt [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Reading Package Lists...Done
 ...
:%)

Code: Select all

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : Jul 2 03:32
001-core.xzm : Oct 6 01:00
002-xorg.xzm : Oct 6 01:07
002-xtra.xzm : Jun 30 03:13
003-cinnamon.xzm : Sep 25 01:21
011-slapt-get-0.11.6-x86_64-2gv.xzm : Oct 29 13:51
07-printing-x86_64-2022-08-06.xzm : Aug 6 07:54
Dellsound.xzm : May 14 2022
Dellwifi2.xzm : Jul 30 00:31
changes : Dec 4 20:11
firefox-94.0.2-x86_64-en-US.xzm : Nov 24 2021
updater-test-22-10-31.xzm : Oct 30 03:04
Ed

User avatar
babam
Shogun
Shogun
Posts: 445
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K5.19.6
Location: Rainy city

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

Post#200 by babam » 05 Dec 2022, 06:45

Ed_P wrote:
05 Dec 2022, 06:32
Any fix for these 2 errors

Code: Select all

/usr/bin/getmod: line 42: [: gtk+3-3.24.33-x86_64-1: binary operator expected

Code: Select all

ls /var/lib/pkgtools/packages/gtk+3*
Sorry, my English is bad.

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

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

Post#201 by Rava » 05 Dec 2022, 06:56

No issues in my system.
In lack of version number my script has the md5sum of:

Code: Select all

5f950c8798ec66c1cad7b9eba0ab49e2  /usr/bin/getmod

Code: Select all

root@porteus:/# getmod -u
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/]...  0Done
Retrieving patch list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Done
Retrieving checksum list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Retrieving checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...Cached
Verifying checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...No key for verification
Retrieving ChangeLog.txt [http://slackware.uk/salix/x86_64/slackware-15.0/]...  Done
Reading Package Lists...Done
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...Done
Retrieving patch list [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...Done
Retrieving checksum list [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...Cached
Retrieving checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...Cached
Verifying checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...No key for verification
Retrieving ChangeLog.txt [http://slackware.uk/salix/x86_64/slackware-15.0/extra/]...Done
Reading Package Lists...Done
Retrieving package data [http://slackware.uk/salix/x86_64/15.0/]...Cached
Retrieving patch list [http://slackware.uk/salix/x86_64/15.0/]...Done
Retrieving checksum list [http://slackware.uk/salix/x86_64/15.0/]...Cached
Retrieving checksum signature [http://slackware.uk/salix/x86_64/15.0/]...Cached
Verifying checksum signature [http://slackware.uk/salix/x86_64/15.0/]...No key for verification
Retrieving ChangeLog.txt [http://slackware.uk/salix/x86_64/15.0/]...Cached
Reading Package Lists...Done
Retrieving package data [http://slackware.uk/salix/x86_64/extra-15.0/]...Cached
Retrieving patch list [http://slackware.uk/salix/x86_64/extra-15.0/]...Done
Retrieving checksum list [http://slackware.uk/salix/x86_64/extra-15.0/]...Cached
Retrieving checksum signature [http://slackware.uk/salix/x86_64/extra-15.0/]...Cached
Verifying checksum signature [http://slackware.uk/salix/x86_64/extra-15.0/]...No key for verification
Retrieving ChangeLog.txt [http://slackware.uk/salix/x86_64/extra-15.0/]...Cached
Reading Package Lists...Done
root@porteus:/# echo $?
0

Code: Select all

root@porteus:/mnt/live/memory/images# ls -l /var/lib/pkgtools/packages/gtk+3*
lrwxrwxrwx 1 root root 32 2022-12-03 20:47 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm
My system:

Code: Select all

root@porteus:~# cat /etc/porteus/00*
001-core.xzm:20221006
002-xorg.xzm:20220723
002-xtra.xzm:20220630
003-xfce.xzm:20220925
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 7324
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

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

Post#202 by Ed_P » 05 Dec 2022, 08:11

babam wrote:
05 Dec 2022, 06:45

Code: Select all

ls /var/lib/pkgtools/packages/gtk+3*

Code: Select all

guest@porteus:~$ ls /var/lib/pkgtools/packages/gtk+3*
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1@
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm@
guest@porteus:~$ 
Rava wrote:
05 Dec 2022, 06:56

Code: Select all

root@porteus:/mnt/live/memory/images# ls -l /var/lib/pkgtools/packages/gtk+3*
lrwxrwxrwx 1 root root 32 2022-12-03 20:47 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm

Code: Select all

guest@porteus:~$ ls -l /var/lib/pkgtools/packages/gtk+3*
lrwxrwxrwx 1 root root 32 Oct 30 02:19 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1 -> gtk3-classic-3.24.33-x86_64-2ncm
lrwxrwxrwx 1 root root 32 Oct  8 15:13 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm
guest@porteus:~$ 

Code: Select all

guest@porteus:~$ cat /etc/porteus/00*
001-core.xzm:20221006
002-xorg.xzm:20221006
002-xtra.xzm:20220630
003-cinnamon.xzm:20220925
guest@porteus:~$ 
Ed

User avatar
babam
Shogun
Shogun
Posts: 445
Joined: 16 Nov 2016, 10:30
Distribution: Porteus 5.0rc3 Xfce K5.19.6
Location: Rainy city

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

Post#203 by babam » 05 Dec 2022, 08:34

Ed_P wrote:
05 Dec 2022, 08:11

Code: Select all

guest@porteus:~$ ls -l /var/lib/pkgtools/packages/gtk+3*
lrwxrwxrwx 1 root root 32 Oct 30 02:19 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1 -> gtk3-classic-3.24.33-x86_64-2ncm
lrwxrwxrwx 1 root root 32 Oct  8 15:13 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm
You see something wrong?
Remove gtk+3-3.24.33-x86_64-1
Sorry, my English is bad.

User avatar
Ed_P
Contributor
Contributor
Posts: 7324
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

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

Post#204 by Ed_P » 05 Dec 2022, 18:41

babam wrote:
05 Dec 2022, 08:34
You see something wrong?
Remove gtk+3-3.24.33-x86_64-1
Thank you babam. Do you see where it's loaded?

Code: Select all

~#  uname -a
Linux porteus.example.net 5.18.8-porteus #1 SMP PREEMPT_DYNAMIC Sat Jul 2 10:05:31 MSK 2022 x86_64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz GenuineIntel GNU/Linux

~#  cat /etc/porteus/*
001-core.xzm:20221006
002-xorg.xzm:20221006
002-xtra.xzm:20220630
003-cinnamon.xzm:20220925
initrd.xz:20220928

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : Jul 2 03:32
001-core.xzm : Oct 6 01:00
002-xorg.xzm : Oct 6 01:07
002-xtra.xzm : Jun 30 03:13
003-cinnamon.xzm : Sep 25 01:21
011-slapt-get-0.11.6-x86_64-2gv.xzm : Oct 29 13:51
07-printing-x86_64-2022-08-06.xzm : Aug 6 07:54
Dellautonet.xzm : Oct 22 01:14
Dellsound.xzm : May 14 2022
Dellwifi2.xzm : Jul 30 00:31
firefox-94.0.2-x86_64-en-US.xzm : Nov 24 2021
mychanges.xzm : Dec 5 03:14
updater-test-22-10-31.xzm : Oct 30 03:04
And no, it's not in here.

Code: Select all

guest@porteus:~$ ls -oh /mnt/live/memory/images/mychanges.xzm/var/lib/pkgtools/packages
total 0
lrwxrwxrwx 1 root 29 Oct  8 15:13 binutils-2.37-x86_64-port -> binutils-min-2.37-x86_64-port
lrwxrwxrwx 1 root 40 Oct  8 15:13 boost-1.78.0-x86_64-2_slack15.0 -> boost-stripped-1.78.0-x86_64-2_slack15.0
lrwxrwxrwx 1 root 32 Oct  8 15:13 gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm
lrwxrwxrwx 1 root 29 Oct  8 15:13 llvm-13.0.0-x86_64-2 -> llvm-stripped-13.0.0-x86_64-2
lrwxrwxrwx 1 root 34 Oct  8 15:13 mozjs78-78.15.0esr-x86_64-port -> mozjs78-lib-78.15.0esr-x86_64-port
guest@porteus:~$ 
Ed

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

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

Post#205 by Rava » 05 Dec 2022, 19:10

^
It also could be a setup script of one of your programs that creates the link.
You can use rc.local to use at bootup to check if the link exists an if it does, remove it.
I suggest coding rc.local in a more verbose way, e.g. using

Code: Select all

if  [ -L /path/to/link ]; then
	rm -v /path/to/link
else
	echo rc.local: symlink /path/to/link not yet existing.
fi
; My rc.local even tells me when it's loaded so that I know at bootup what is done by it.
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 7324
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 4.0 & 5.0 ISOs
Location: Western NY, USA

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

Post#206 by Ed_P » 05 Dec 2022, 22:43

This related to the problem: slapt-get: slapt-get is an APT like system for Slackware package management. (Post by babam #89197)?
babam wrote:
20 Aug 2022, 11:49
Note: Before running getmod (slapt-get) to download/build the module it is highly recommended to do this step

Code: Select all

cd /var/lib/pkgtools/packages
sudo ln -s gtk3-classic* gtk+3-3.24.33-x86_64-1
sudo ln -s boost-stripped* boost-1.78.0-x86_64-1
sudo ln -s llvm-stripped* llvm-13.0.0-x86_64-1
Added in 7 hours 56 minutes 31 seconds:
Rava wrote:
05 Dec 2022, 19:10
rm -v /path/to/link
Seems to have worked. :celebrate3:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# rm -v /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1
removed '/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1'
root@porteus:/home/guest# getmod -u
Retrieving package data [http://slackware.uk/salix/x86_64/slackware-15.0/]...Done
Retrieving patch list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Done
Retrieving checksum list [http://slackware.uk/salix/x86_64/slackware-15.0/]...Done
Retrieving checksum signature [http://slackware.uk/salix/x86_64/slackware-15.0/]...  Done
 ...
Thanks guys. :good:
Ed

Post Reply