Page 11 of 15

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

Posted: 12 Oct 2022, 08:07
by rych
babam wrote:
11 Oct 2022, 12:35
Update 2022.10.11:
getmod ---> Fixes.
Thanks. It doesn't seem to like a dash though?

Code: Select all

root@porteus:~# getmod -m gc-8
Reading Package Lists...Done
No such package: gc-8
root@porteus:~# getmod -s gc-8
gc-8.0.6-x86_64-1  (garbage collector library)
root@porteus:~# getmod -m gc-8.0.6-x86_64-1
Reading Package Lists...Done
The following NEW packages will be installed:
  gc 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 280.0kB of archives.
Do you want to continue? [y/N] y
1/1 Get http://slackware.uk/salix/x86_64/slackware-15.0/ gc 8.0.6-x86_64-1 [280.0kB]...Done

Done
Verifying package gc-8.0.6-x86_64-1.txz.
Installing package gc-8.0.6-x86_64-1.txz:
PACKAGE DESCRIPTION:
# gc (garbage collector library)
#
# The Boehm-Demers-Weiser conservative garbage collector can be used as
# a garbage collecting replacement for C malloc or C++ new.
#
# Homepage: http://www.hboehm.info/gc/
#
Executing install script for gc-8.0.6-x86_64-1.txz.
Package gc-8.0.6-x86_64-1.txz installed.
Parallel mksquashfs: Using 6 processors
Creating 4.0 filesystem on /tmp/.xzm, block size 1048576.
[=================================================================/] 94/94 100%

Exportable Squashfs 4.0 filesystem, zstd compressed, data block size 1048576
	compressed data, compressed metadata, compressed fragments,
	compressed xattrs, compressed ids
	duplicates are removed
Filesystem size 198.28 Kbytes (0.19 Mbytes)
	17.82% of uncompressed filesystem size (1112.66 Kbytes)
Inode table size 1159 bytes (1.13 Kbytes)
	27.05% of uncompressed inode table size (4284 bytes)
Directory table size 1379 bytes (1.35 Kbytes)
	48.57% of uncompressed directory table size (2839 bytes)
Number of duplicate files found 0
Number of inodes 131
Number of files 94
Number of fragments 2
Number of symbolic links 9
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 28
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

====> '/tmp/.xzm' was created successfully.

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

Posted: 12 Oct 2022, 08:29
by rych
Rava wrote:
12 Oct 2022, 03:23
But yay! Newest inkscape:
inkscape-1.1.2-x86_64-1gv.xzm
I run a newer 1.2 (the newest is 1.2.1 on their website). Had to chase dependencies one-by-one with getmod, but inkscape-1.2-x86_64-1_slonly.xzm is from pmod

Code: Select all

root@porteus:/mnt/sda2/porteus/optional/Inkscape/1.2# ls -oh *xzm|cut -c 18-
 1.9M Oct 12 21:15 GraphicsMagick-1.3.36-x86_64-2salix15.0.xzm
  13M Oct 12 20:56 boost-1.78.0-x86_64-2_slack15.0.xzm
 200K Oct 12 21:02 gc-8.0.6-x86_64-1.xzm
  36M Oct 12 20:47 inkscape-1.2-x86_64-1_slonly.xzm
 368K Oct 12 21:13 libcdr-0.1.6-x86_64-3salix15.0.xzm
 236K Oct 12 21:13 libvisio-0.1.7-x86_64-7.xzm
 452K Oct 12 21:12 libwpg-0.3.3-x86_64-3.xzm
 1.8M Oct 12 21:11 poppler-21.12.0-x86_64-2_slack15.0.xzm
  80K Oct 12 21:14 potrace-1.16-x86_64-1dj.xzm

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

Posted: 12 Oct 2022, 09:03
by babam
rych wrote:
12 Oct 2022, 08:07
Thanks. It doesn't seem to like a dash though?

Code: Select all

root@porteus:~# getmod -m gc-8
Reading Package Lists...Done
No such package: gc-8
root@porteus:~# getmod -s gc-8
gc-8.0.6-x86_64-1  (garbage collector library)
root@porteus:~# getmod -m gc-8.0.6-x86_64-1
Reading Package Lists...Done
The following NEW packages will be installed:
  gc 
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 280.0kB of archives.
Do you want to continue? [y/N] y
Package name is gc

Code: Select all

$ getmod -m gc

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

Posted: 12 Oct 2022, 15:19
by Rava
rych wrote:
12 Oct 2022, 08:29
Rava wrote:
12 Oct 2022, 03:23
But yay! Newest inkscape:
inkscape-1.1.2-x86_64-1gv.xzm
I run a newer 1.2 (the newest is 1.2.1 on their website). Had to chase dependencies one-by-one with getmod, but inkscape-1.2-x86_64-1_slonly.xzm is f●rom pmod

Code: Select all

root@porteus:/mnt/sda2/porteus/optional/Inkscape/1.2# ls -oh *xzm|cut -c 18-
 1.9M Oct 12 21:15 GraphicsMagick-1.3.36-x86_64-2salix15.0.xzm
  13M Oct 12 20:56 boost-1.78.0-x86_64-2_slack15.0.xzm
 200K Oct 12 21:02 gc-8.0.6-x86_64-1.xzm
  36M Oct 12 20:47 inkscape-1.2-x86_64-1_slonly.xzm
 368K Oct 12 21:13 libcdr-0.1.6-x86_64-3salix15.0.xzm
 236K Oct 12 21:13 libvisio-0.1.7-x86_64-7.xzm
 452K Oct 12 21:12 libwpg-0.3.3-x86_64-3.xzm
 1.8M Oct 12 21:11 poppler-21.12.0-x86_64-2_slack15.0.xzm
  80K Oct 12 21:14 potrace-1.16-x86_64-1dj.xzm
Why not upload the complete module and promote it here:
x86_64 xzm modules
Or even better: upload two versions:
● one the merged module with all the dependencies you listed (the module I presumed you created for you own system),
● and the other one as a tar.xz that has all the single xzm's as listed inside so that users can create their own fitting module (because their current Port 5.0 setup already has e.g. poppler)

Sounds good? :Rose:

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

Posted: 13 Oct 2022, 09:09
by babam
Update 2022.10.13:
getmod ---> Added ZSTD and XZ compression options.

Download:
https://drive.google.com/uc?export=down ... -SLGDl252S

MD5SUM:
050b41dc3cbcb25133e7b8ce3f94b703

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

Posted: 15 Oct 2022, 08:37
by raja
babam, thanks for your getmod. Works perfect with many applications.Finally, a good package manager for Porteus-5.0.

It quits when one of the dependencies experience server error during download. It should continue with other files, so that we can find and add missing file.

example: audacity

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# getmod -m audacity
Reading Package Lists...Done
The following NEW packages will be installed:
  GConf expat gnome-vfs libid3tag portmidi audacity 
0 upgraded, 0 reinstalled, 6 newly installed, 0 to remove, 0 not upgraded.
Need to get 13.2MB of archives.
Do you want to continue? [y/N] y
1/6 Get http://slackware.uk/salix/x86_64/slackware-15.0/ GConf 3.2.6-x86_64-7 [908.0kB]...Done
2/6 Get http://slackware.uk/salix/x86_64/slackware-15.0/ expat 2.4.7-x86_64-1_slack15.0 [128.0kB]...Failed to download: HTTP response code said error
it quits with expat*.*

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

Posted: 15 Oct 2022, 10:07
by babam
raja wrote:
15 Oct 2022, 08:37
It quits when one of the dependencies experience server error during download. It should continue with other files, so that we can find and add missing file.
Try again and it should work, usually a temporary server issue.

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

Posted: 16 Oct 2022, 16:45
by Ed_P
babam wrote:
15 Oct 2022, 10:07
Try again and it should work, usually a temporary server issue.
Any trap command that could support letting the downloads that follow continue? Or, respond with a friendly msg that there was a server issue and to try again later?

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

Posted: 21 Oct 2022, 21:45
by babam
Update 2022.10.22:
getmod ---> Fixes.

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

MD5SUM:
ca26bb28deacb3121ef50f1845608c55

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

Posted: 22 Oct 2022, 05:25
by Ed_P
:good:

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

Posted: 22 Oct 2022, 05:49
by Rava
babam wrote:
10 Jul 2022, 15:17
Update 2022.10.22: Image date: Oct 21 16:44
(highlighting by me)
I presume the highlighted part is of your doing, Ed_P, as you wrote in the reason for editing the initial post
Added SysSnapshot image date to Update date.
but when I download it via wget by

Code: Select all

guest@porteus:/mybackup$ wget "https://drive.google.com/uc?export=download&id=1CbsVxakiRWEzMfvDOvtP_kzfqGp5X8Wj"
this is the date and time string wget gives to the file:

Code: Select all

guest@porteus:/mybackup$ ls -oh uc\?export\=download\&id\=1CbsVxakiRWEzMfvDOvtP_kzfqGp5X8Wj |cut -c 20-
716K 2022-10-22 07:38 uc?export=download&id=1CbsVxakiRWEzMfvDOvtP_kzfqGp5X8Wj
As you can see, the xzm date as given by the drive.gøøgle.cøm/ server is always the current time and date at download time, since gøøgle.cøm is inapt in giving a time and date info together with its uploaded files; just as the very one large upload site you had issues with in the past is also unable assigning proper date and time info with its files. ( I meant mediafir€.com )

If that date/time info not assigned to the file is what you meant, Ed_P, then we all should leave out that info in the future since as you can see by my manual download via wget - gøøgle.cøm is as unable as mediafir€.com is in providing the time/date stamp to its uploaded files. :wall:
____________________________________________

There is one info that one can give that would make sense: the date/time string of the main folder the xzm is made of. Cave! When loaded from my $PORTDIR/base/ the name of 011-slapt-get is "011-slapt-get-0.11.6-x86_64-2gv-RECENT.xzm" and always points to the most recent version of the downloaded 011-slapt-get modules. Currently that is "011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm" :)

See that time/date string of that current module for yourself:
root@porteus:/mnt/live/memory/images# ls -od 011-slapt-get-0.11.6-x86_64-2gv-RECENT.xzm/|cut -c 19-
60 2022-10-21 22:44 011-slapt-get-0.11.6-x86_64-2gv-RECENT.xzm/
(highlighting by me)

I presume "2022-10-21 22:44" is the date/time when the module got created.

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

Posted: 22 Oct 2022, 06:30
by Ed_P
Rava wrote:
22 Oct 2022, 05:49
I presume "2022-10-21 22:44" is the date/time when the module got created.
I agree.

What I see with SysSnapshot:

Code: Select all

~#  ls -l /mnt/live/memory/images
000-kernel.xzm : Jul 2 03:32
001-core.xzm : Jul 23 05:21
002-xorg.xzm : Jul 23 05:24
002-xtra.xzm : Jun 30 03:13
003-cinnamon.xzm : May 11 08:46
011-slapt-get-0.11.6-x86_64-2gv.xzm : Oct 21 16:44
07-printing-x86_64-2022-08-06.xzm : Aug 6 07:54
Dellsound.xzm : May 14 00:20
Dellwifi2.xzm : Jul 30 00:31
firefox-94.0.2-x86_64-en-US.xzm : Nov 24 2021
mychanges.xzm : Oct 21 01:18
The problem for me is I see that there has been an update, so I check the version I have by clicking on a desktop icon for SysSnapshot. If the date SysSnapshot displays is earlier than the Update posted date I download the updated module and replace the module I have with it. And after deactivating and reactivating I see that the module I just downloaded is the same as the one I had. :wall:

The difference between your "2022-10-21 22:44" time stamp and my SysSnapshot one Oct 21 16:44, which translates to 2022-10-21 16:44, I believe is time zone related and since the other numbers all agree, yyyy-mm-dd **:ss, the file is the same one.

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

Posted: 22 Oct 2022, 06:37
by Rava
This is what my system tells me via ls -l /mnt/live/memory/images|grep 011-

Code: Select all

root@porteus:~# ls -l /mnt/live/memory/images|grep 011-
drwxr-xr-x  6 root  root    60 2022-10-21 22:44 011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm
This time it displays the correct target file name - 011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm - which has the same time/date stamp as it's the same file.
Ed_P wrote:
22 Oct 2022, 06:30
If the date SysSnapshot displays is earlier than the Update posted date I download the updated module and replace the module I have with it. And after deactivating and reactivating I see that the module I just downloaded is the same as the one I had.
I am quite sure if you make it like I do, assign the date/time to all 011-slapt-get-* modules you would not get into that issue.

It is only a tiny bit more work at download, adding the date to the filename by using the date of the posting babam published the URL, but from then on it makes your life much easier. :)

Since "011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm" will always stay as "011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm" - and I go by the date/time babam uploaded his file and posted the URL in here. :)

Added in 2 minutes 14 seconds:
Or, when in question due to different time zones (and I presume his module creation time reflects his local time and not UTC) I go by the module creation time as shown above.
(For the most recent module that is the quoted "2022-10-21 22:44" )

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

Posted: 22 Oct 2022, 07:06
by Ed_P
This is what I see:

Code: Select all

guest@porteus:~$ ls -od --color=never  /mnt/live/memory/images/011*
drwxr-xr-x 6 root 60 Oct 21 16:44 /mnt/live/memory/images/011-slapt-get-0.11.6-x86_64-2gv.xzm/
guest@porteus:~$ 
and for the modules I've downloaded:

Code: Select all

guest@porteus:~$ ls -od --color=never  /mnt/nvme0n1p7/porteus5.0/Modules/011*
-rwxrwxrwx 1 guest 737280 Oct 20 15:14 /mnt/nvme0n1p7/porteus5.0/Modules/011-slapt-get-0.11.6-x86_64-2gv.xyzm*
-rwxrwxrwx 1 guest 733184 Oct 22 00:29 /mnt/nvme0n1p7/porteus5.0/Modules/011-slapt-get-0.11.6-x86_64-2gv.xzm*
guest@porteus:~$ 
with the bottom one being my recent download of the Oct 21 16:44 version.

Added in 1 minute 32 seconds:
And I download via my browser not wget.

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

Posted: 22 Oct 2022, 17:08
by raja
babam, tried to build 'audacity' twice with your new offering....same status.

it does not go ahead to the next dependency, when 'expat' shows server error...

'pacman' always skips the server showing error and goes to the next in line.