Page 12 of 15

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

Posted: 22 Oct 2022, 18:19
by babam
raja wrote:
22 Oct 2022, 17:08
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.
Try this:

Code: Select all

getmod -n audacity GConf gnome-vfs libid3tag portmidi

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

Posted: 23 Oct 2022, 00:19
by ncmprhnsbl
raja wrote:
22 Oct 2022, 17:08
'pacman' always skips the server showing error and goes to the next in line
surely you mean slapt-get ...no pacman here :)

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

Posted: 23 Oct 2022, 08:27
by Rava
Ed_P wrote:
22 Oct 2022, 07:07
And I download via my browser not wget.
Then you will always get the current time (unless you use a downloading AddOn that supports setting the file date/time stamp of the downloads to what the server tells.)
But like I said, drive.gøøgle.cøm or mediafir€.com are incapable of giving that info, but many servers do, like the porteus mirrors for your xzm updates or ISO's.

And usually I also download my 011-slapt-get-0.11.6-x86_64-2gv-YYYY-MM.DD.xzm via browser since it will also only get the current date/time when the download happened when done by wget due to the above mentioned incapability.

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

Posted: 23 Oct 2022, 12:52
by ncmprhnsbl
@babam, i notice you're using a block size of 1 MB in the mksquashfs.. my understanding is that while this gives a better compression ratio(smaller module) it also leads to more ram usage (because in the aufs on demand loop mounting, bigger chunks (than maybe necessary) are loaded)
might not matter much with some small programs(or bigger ones?) or if you have plenty of ram..
when we experimented with this (1 MB block size) on the whole system, the extra memory usage was quite noticable, in the hundreds of MBs ...
so we stuck with 256K..

spitballing: maybe with locales: detect the system default ($LANG) and retain that one (or an option to do so)
maybe an option to retain the man pages (or just the localized ones)

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

Posted: 23 Oct 2022, 22:41
by babam
ncmprhnsbl wrote:
23 Oct 2022, 12:52
@babam, i notice you're using a block size of 1 MB in the mksquashfs.. my understanding is that while this gives a better compression ratio(smaller module) it also leads to more ram usage (because in the aufs on demand loop mounting, bigger chunks (than maybe necessary) are loaded)
might not matter much with some small programs(or bigger ones?) or if you have plenty of ram..
when we experimented with this (1 MB block size) on the whole system, the extra memory usage was quite noticable, in the hundreds of MBs ...
so we stuck with 256K..
1M ---> 256K
ncmprhnsbl wrote:
23 Oct 2022, 12:52
spitballing: maybe with locales: detect the system default ($LANG) and retain that one (or an option to do so)
maybe an option to retain the man pages (or just the localized ones)
I need your help, give me a patch.

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

Posted: 27 Oct 2022, 21:11
by benjibasson
Hi

I notice that getmod is broken:

Code: Select all

guest@porteus:~$ getmod -m vlc
Reading Package Lists...Failed to open /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm: No such file or directory
it worked until yesterday: how to repair please? I desactivate and reactivate: it still fail to open gtk+3-3.24.33-x86_64-1ncm althought I never uninstall gtk

Code: Select all

guest@porteus:~$ find /var/lib/pkgtools/packages/ -name gtk+3-3.24.33-x86_64-1ncm
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm

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

Posted: 27 Oct 2022, 21:34
by Rava
@benjibasson »
I my case I get this:
root@porteus:~# find /var/lib/pkgtools/packages/ -name gtk+3-3.24.33-x86_64-1ncm
root@porteus:~# find /var/lib/pkgtools/packages/ |grep gtk+3
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm
(highlighting by me)

And getmod -m vlc would work:

Code: Select all

root@porteus:~# 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 pango pixman wayland 
The following NEW packages will be installed:
  expat gtk+2 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 179.6MB of archives.
Do you want to continue? [y/N] N
Abort.
benjibasson, I recommend a reboot.

Added in 3 minutes 14 seconds:
I even did a

Code: Select all

getmod -u
and then a

Code: Select all

getmod -m vlc
and the result is as quoted above (still "Need to get 179.6MB of archives" ) :)

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

Posted: 27 Oct 2022, 21:48
by benjibasson
Hi Rava,
I did a reboot and it doesn't work
I get

Code: Select all

guest@porteus:~$ find /var/lib/pkgtools/packages/ -name gtk+3-3.24.33-x86_64-1ncm
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm
guest@porteus:~$ find /var/lib/pkgtools/packages/ |grep gtk+3
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm
/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm
/var/lib/pkgtools/packages/gpicview-gtk+3-0.2.5-x86_64-4_ncm

Code: Select all

guest@porteus:~$ getmod -u
Enter root's password: 
/usr/bin/getmod: line 31: [: gtk+3-3.24.33-x86_64-1ncm: 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
why binary operator expected? I have never deleted executable option in my life!

Code: Select all

guest@porteus:~$ sudo chmod +x /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm
chmod: cannot operate on dangling symlink '/var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm'

between last working getmod, I updated porteus to /porteus/x86_64/Porteus-v5.0/updates/core/20220924/
001-core.xzm 121.4 MiB 2022-10-09 10:48:16
002-xorg.xzm 111.5 MiB 2022-10-09 10:48:16
003-xfce.xzm 13.8 MiB 2022-10-09 10:48:16
initrd.xz 900.4 KiB 2022-10-09 10:48:16

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

Posted: 27 Oct 2022, 22:10
by Rava
Update - my system: XFCE 4.16:

Code: Select all

root@porteus:~# cat /etc/porteus/*
001-core.xzm:20220723
002-xorg.xzm:20220723
002-xtra.xzm:20220630
003-xfce.xzm:20220925
initrd.xz:20220928

──────────────────────────────────────────────
Please do a

Code: Select all

ls -l /var/lib/pkgtools/packages/gtk+3*
Added in 49 seconds:
In my system I get this:

Code: Select all

lrwxrwxrwx 1 root root 32 2022-10-26 22:39 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm
Added in 1 minute 3 seconds:
and this:

Code: Select all

root@porteus:/var/lib/pkgtools/packages# ls -l gtk3-classic-3.24.33-x86_64-2ncm 
-rw-r--r-- 1 root root 39637 2022-07-23 11:22 gtk3-classic-3.24.33-x86_64-2ncm
root@porteus:/var/lib/pkgtools/packages# file gtk3-classic-3.24.33-x86_64-2ncm 
gtk3-classic-3.24.33-x86_64-2ncm: ASCII text

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

Posted: 27 Oct 2022, 23:03
by Rava
@benjibasson

I wrote you a PM about a possible reason why it works for me and not for you. Please read it and reply via PM.

Thanks.

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

Posted: 28 Oct 2022, 04:30
by benjibasson
Hi rava,

on my system I get this

Code: Select all

guest@porteus:~$ ls -l /var/lib/pkgtools/packages/gtk+3*
lrwxrwxrwx 1 root root 32 Oct 26 20:13 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-1ncm -> gtk3-classic-3.24.33-x86_64-1ncm
lrwxrwxrwx 1 root root 32 Oct 27 22:08 /var/lib/pkgtools/packages/gtk+3-3.24.33-x86_64-2ncm -> gtk3-classic-3.24.33-x86_64-2ncm

Code: Select all

root@porteus:/var/lib/pkgtools/packages# ls -l gtk3-classic-3.24.33-x86_64-2ncm 
-rw-r--r-- 1 root root 39637 Oct  6 05:06 gtk3-classic-3.24.33-x86_64-2ncm
root@porteus:/var/lib/pkgtools/packages# file gtk3-classic-3.24.33-x86_64-2ncm 
gtk3-classic-3.24.33-x86_64-2ncm: ASCII text

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

Posted: 28 Oct 2022, 06:05
by Rava
^
What does it say about gtk3-classic-3.24.33-x86_64-1ncm ?
__________________________________________________

my getmod module:
ca26bb28deacb3121ef50f1845608c55 011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm

Now that I tried using getmod I have issues as well.
It does download packages… but why it was neat to begin with - building modules - it no longer does. Look for youself.
First parameter -M

Code: Select all

root@porteus:/# TMP=/7/tmp/ getmod -M mucommander-0.9.0-noarch-1salix15.0
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
then parameter -m

Code: Select all

root@porteus:/# TMP=/7/tmp/ getmod -m mucommander-0.9.0-noarch-1salix15.0
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 0.0kB/86.3MB of archives.
Do you want to continue? [y/N] y

Done
The files are there (in GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/[…] hierarchy - see below), but why it did not build the modules, I have no clue:

Code: Select all

root@porteus:/# ls -od $(find /7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/ -name '*.txz')|cut -c 19-
86318880 2022-05-16 23:08 /7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/development/zulu-openjdk8-8.0.322-x86_64-1salix15.0.txz
 4208644 2022-06-13 09:19 /7/tmp/GETMOD/mucommander-0.9.0-noarch-1salix15.0/salix/system/mucommander-0.9.0-noarch-1salix15.0.txz

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

Posted: 28 Oct 2022, 09:08
by benjibasson
I couldn't wait. Getmod was blocked for every package and every -s option
I have done fresh mode to delete /changes/var/lib/pkgtools/packages/
Don't understand why it is in change since it is static. Come from xzm module

Reboot and getmod work properly

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

Posted: 28 Oct 2022, 15:43
by Ed_P
benjibasson wrote:
28 Oct 2022, 09:08
Reboot and getmod work properly
:good: Good to hear. :Yahoo!:

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

Posted: 28 Oct 2022, 19:59
by Rava
Good for you, Benji, but after I rebooted its the same old fail as above for me:

Code: Select all

root@porteus:~# TMP=/7/tmp/ getmod -M mucommander-0.9.0-noarch-1salix15.0
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 0.0kB/86.3MB of archives.
Do you want to continue? [y/N] y

Done
Any ideas?
Is is a bug specific to the "011-slapt-get-0.11.6-x86_64-2gv_2020.10.21.xzm" version?
Aka by md5sum:
ca26bb28deacb3121ef50f1845608c55