[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

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

Post#136 by Rava » 11 Oct 2022, 08:11

Code: Select all

root@porteus:~# getmod -s nemo
-su: /usr/sbin/getmod: No such file or directory
For whatever reason, my system still thinks getmod is in location /usr/sbin/getmod when now it is in /usr/bin/getmod

Added in 2 minutes 20 seconds:
@rych

Code: Select all

root@porteus:~# /usr/bin/getmod -s nemo
mnemonic-0.15-x86_64-1salix15.0  (reference implementation of BIP-0039)
I think with nemo you meant the Nemo File Manager as in described here
https://wiki.archlinux.org/title/Nemo
and not the "reference implementation of BIP-0039"?
Cheers!
Yours Rava

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

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

Post#137 by ncmprhnsbl » 11 Oct 2022, 08:58

Rava wrote:
11 Oct 2022, 08:13
I think with nemo you meant the Nemo File Manager
you'd need to enable the CSB repo: https://slackware.uk/csb/15.0/x86_64/ in slapt-getrc
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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] getmod: A wrapper for slapt-get to build modules

Post#138 by babam » 11 Oct 2022, 12:35

rych wrote:
11 Oct 2022, 08:01

babam, Actually, it doesn't:

Code: Select all

root@porteus:~# getmod -s nemo
mnemonic-0.15-x86_64-1salix15.0  (reference implementation of BIP-0039)
nemo-5.2.3-x86_64-1_csb  (File Manager)
root@porteus:~# getmod -m nemo
sudo: unknown user mkdir
sudo: error initializing audit plugin sudoers_audit
/usr/bin/getmod: line 139: /tmp/GETMOD/nemo/slapt-getrc: No such file or directory
Failed to open /tmp/GETMOD/nemo/slapt-getrc
/tmp/GETMOD/nemo/slapt-getrc: No such file or directory
Update 2022.10.11:
getmod ---> Fixes.

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

MD5SUM:
9dbf079929d71be1559665df209cdfdf
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

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

Post#139 by Rava » 11 Oct 2022, 14:42

A strange error in the newest version 2020.10.11

This is the content of the GETMOD folder in what I will tell getmod to use as TMP=
I happened to look into that prior starting getmod by chance:

Code: Select all

root@porteus:/# ls /mnt/sda7/tmp/GETMOD/
signal-desktop
Now the error:

Code: Select all

root@porteus:/# TMP=/mnt/sda7/tmp/ getmod -m inkscape
mkdir: cannot create directory ‘/mnt/sda7/tmp//GETMOD/inkscape’: Permission denied
/usr/sbin/getmod: line 139: /mnt/sda7/tmp//GETMOD/inkscape/slapt-getrc: No such file or directory
Failed to open /mnt/sda7/tmp//GETMOD/inkscape/slapt-getrc
/mnt/sda7/tmp//GETMOD/inkscape/slapt-getrc: Not a directory
root@porteus:/# ls -l /mnt/sda7/tmp//GETMOD/
total 4
lrwxrwxrwx 1 root root   27 2022-10-11 16:33 inkscape -> /var/slapt-get/package_data
drwxrwxrwx 3 root root 4096 2022-10-07 23:26 signal-desktop
As you can see, getmod seems to first create a symlink "inkscape" in its given TMP/GETMOD/ and then tries to create a folder by the same name as the just created symlink - which then fails.

_________________________

Suggestion:
babam, please add a "-v / --version" option where getmod displays its version. That would be great.
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] getmod: A wrapper for slapt-get to build modules

Post#140 by babam » 11 Oct 2022, 15:05

Rava wrote:
11 Oct 2022, 14:42

Code: Select all

root@porteus:/# TMP=/mnt/sda7/tmp/ getmod -m inkscape
mkdir: cannot create directory ‘/mnt/sda7/tmp//GETMOD/inkscape’: Permission denied

Code: Select all

ls -dl /mnt/sda7/tmp
Delete /mnt/sda7/tmp and try again

Code: Select all

# rm -rf /mnt/sda7/tmp
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

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

Post#141 by Rava » 11 Oct 2022, 15:55

babam wrote:
11 Oct 2022, 15:05
Delete /mnt/sda7/tmp and try again
I think I give it another name, since I want /mnt/sda7/tmp to stay, it has more in it than just GETMOD/

But that could mean in the long run, I will have to tell getmod this

Code: Select all

TMP=/mnt/sda7/tmp/getmod/ getmod -m inkscape
and then this

Code: Select all

TMP=/mnt/sda7/tmp/getmod2/ getmod -m whatever-2
and then this

Code: Select all

TMP=/mnt/sda7/tmp/getmod3/ getmod -m whatever-3
or just like this:

Code: Select all

TMP=/mnt/sda7/tmp/inkscape/ getmod -m inkscape
and this

Code: Select all

TMP=/mnt/sda7/tmp/gimp/ getmod -m gimp
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

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

Post#142 by Rava » 11 Oct 2022, 16:06

Module creation worked like this
TMP=/mnt/sda7/tmp/getmod/ getmod -m inkscape
when /mnt/sda7/tmp/getmod/ did not exist previously.

Code: Select all

root@porteus:/usr/sbin# TMP=/mnt/sda7/tmp/getmod/ getmod -m inkscape
Reading Package Lists...Done
The following NEW packages will be installed:
  double-conversion gc librevenge libvisio libwpd libwpg potrace inkscape 
0 upgraded, 0 reinstalled, 8 newly installed, 0 to remove, 0 not upgraded.
Need to get 18.4MB of archives.
Do you want to continue? [y/N] y
1/8 Get http://slackware.uk/salix/x86_64/15.0/ double-conversion 3.2.0-x86_64-1gv [49.0kB]...Done
2/8 Get http://slackware.uk/salix/x86_64/slackware-15.0/ gc 8.0.6-x86_64-1 [280.0kB]...Done
3/8 Get http://slackware.uk/salix/x86_64/slackware-15.0/ librevenge 0.0.4-x86_64-4 [272.0kB]...Done
4/8 Get http://slackware.uk/salix/x86_64/slackware-15.0/ libvisio 0.1.7-x86_64-7 [608.0kB]...Done
5/8 Get http://slackware.uk/salix/x86_64/slackware-15.0/ libwpd 0.10.3-x86_64-3 [188.0kB]...Done
6/8 Get http://slackware.uk/salix/x86_64/slackware-15.0/ libwpg 0.3.3-x86_64-3 [140.0kB]...Done
7/8 Get http://slackware.uk/salix/x86_64/15.0/ potrace 1.16-x86_64-1dj [109.0kB]...Done
8/8 Get http://slackware.uk/salix/x86_64/15.0/ inkscape 1.1.2-x86_64-1gv [16.8MB]...Done

Done
Verifying package inkscape-1.1.2-x86_64-1gv.txz.
Installing package inkscape-1.1.2-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# inkscape (an Open Source vector graphics editor)
# 
# Inkscape is an Open Source vector graphics editor, with capabilities
# similar to Illustrator, CorelDraw, or Xara X, using the W3C standard
# Scalable Vector Graphics (SVG) file format. Inkscape supports many
# advanced SVG features (markers, clones, alpha blending, etc.) and
# great care is taken in designing a streamlined interface. It is very
# easy to edit nodes, perform complex path operations, trace bitmaps and
# much more. We also aim to maintain a thriving user and developer
# community by using open, community-oriented development.
# 
Executing install script for inkscape-1.1.2-x86_64-1gv.txz.
Package inkscape-1.1.2-x86_64-1gv.txz installed.
Verifying package double-conversion-3.2.0-x86_64-1gv.txz.
Installing package double-conversion-3.2.0-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# double-conversion (decimal conversion routines for IEEE doubles)
# 
# This project provides binary-decimal and decimal-binary routines for
# IEEE doubles. The library consists of efficient conversion routines
# that have been extracted from the V8 JavaScript engine. The code has
# been refactored and improved so that it can be used more easily in
# other projects.
# 
Executing install script for double-conversion-3.2.0-x86_64-1gv.txz.
Package double-conversion-3.2.0-x86_64-1gv.txz installed.
Verifying package potrace-1.16-x86_64-1dj.txz.
Installing package potrace-1.16-x86_64-1dj.txz:
PACKAGE DESCRIPTION:
# potrace (bitmap utility)
# 
# Potrace is a utility for tracing a bitmap, which means, transforming
# a bitmap into a smooth, scalable image.  The input is a bitmap (PBM,
# PGM, PPM, or BMP format), and the default output is an encapsulated
# PostScript file (EPS).  A typical use is to create EPS files from
# scanned data, such as company or university logos, handwritten notes,
# etc.  The resulting image is not 'jaggy' like a bitmap, but smooth.
# It can then be rendered at any resolution.
# 
Executing install script for potrace-1.16-x86_64-1dj.txz.
Package potrace-1.16-x86_64-1dj.txz installed.
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.
Verifying package librevenge-0.0.4-x86_64-4.txz.
Installing package librevenge-0.0.4-x86_64-4.txz:
PACKAGE DESCRIPTION:
# librevenge (Library for REVerse ENGineered formats filters)
#
# librevenge is a base library for writing document import filters.
# It has interfaces for text documents, vector graphics, spreadsheets,
# and presentations.
#
# Homepage: http://sourceforge.net/p/libwpd/wiki/librevenge/
#
Executing install script for librevenge-0.0.4-x86_64-4.txz.
Package librevenge-0.0.4-x86_64-4.txz installed.
Verifying package libwpg-0.3.3-x86_64-3.txz.
Installing package libwpg-0.3.3-x86_64-3.txz:
PACKAGE DESCRIPTION:
# libwpg (WPG-image reading/converting library)
#
# libwpg is a library for reading and converting WPG images
#
# Homepage: http://libwpg.sourceforge.net/
#
Executing install script for libwpg-0.3.3-x86_64-3.txz.
Package libwpg-0.3.3-x86_64-3.txz installed.
Verifying package libwpd-0.10.3-x86_64-3.txz.
Installing package libwpd-0.10.3-x86_64-3.txz:
PACKAGE DESCRIPTION:
# libwpd (WordPerfect document format library)
#
# This package contains a library (libwpd) and tools to transform
# WordPerfect documents into other formats such as HTML, text, and raw.
#
# libwpd is used by word processors such as Calligra Words.
#
# Homepage: https://sourceforge.net/projects/libwpd
#
Executing install script for libwpd-0.10.3-x86_64-3.txz.
Package libwpd-0.10.3-x86_64-3.txz installed.
Verifying package libvisio-0.1.7-x86_64-7.txz.
Installing package libvisio-0.1.7-x86_64-7.txz:
PACKAGE DESCRIPTION:
# libvisio (Visio document format library)
#
# Libvisio is a library that parses the file format of Microsoft Visio
# documents of all versions.
#
# Homepage: https://wiki.documentfoundation.org/DLP/Libraries/libvisio
#
Executing install script for libvisio-0.1.7-x86_64-7.txz.
Package libvisio-0.1.7-x86_64-7.txz installed.
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm, block size 1048576.
[=============================================================-] 3551/3551 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 17697.56 Kbytes (17.28 Mbytes)
	14.30% of uncompressed filesystem size (123763.77 Kbytes)
Inode table size 28407 bytes (27.74 Kbytes)
	24.02% of uncompressed inode table size (118279 bytes)
Directory table size 39046 bytes (38.13 Kbytes)
	33.97% of uncompressed directory table size (114941 bytes)
Number of duplicate files found 324
Number of inodes 3669
Number of files 3515
Number of fragments 78
Number of symbolic links 26
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 128
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

====> '/mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm' was created successfully.
But one dependency was missed:

Code: Select all

guest@porteus:/mnt/live/memory/images$ inkscape 
inkscape: error while loading shared libraries: libboost_filesystem.so.1.78.0: cannot open shared object file: No such file or directory
guest@porteus:/mnt/live/memory/images$ ldd /usr/bin/inkscape|grep not
	libboost_filesystem.so.1.78.0 => not found
	libboost_filesystem.so.1.78.0 => not found
babam, is there a trick to tell getmod to create a new module out of the previous 8 - but this time add the missing libboost_filesystem.so.1.78.0 ?

Or must that be done completely manually?

Added in 2 minutes 11 seconds:

Code: Select all

root@porteus:~# getmod -s libboost_filesystem
root@porteus:~# 
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] getmod: A wrapper for slapt-get to build modules

Post#143 by babam » 11 Oct 2022, 16:09

Rava wrote:
11 Oct 2022, 15:55
I want /mnt/sda7/tmp to stay
Now /mnt/sda7/tmp is stay

Code: Select all

TMP=/mnt/sda7/tmp/ getmod -m package1

TMP=/mnt/sda7/tmp/ getmod -m package2
TMP=/mnt/sda7/tmp/ getmod -m package3
Last edited by babam on 11 Oct 2022, 16:41, edited 1 time in total.
Sorry, my English is bad.

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] getmod: A wrapper for slapt-get to build modules

Post#144 by babam » 11 Oct 2022, 16:16

Rava wrote:
11 Oct 2022, 16:08

Code: Select all

guest@porteus:/mnt/live/memory/images$ inkscape 
inkscape: error while loading shared libraries: libboost_filesystem.so.1.78.0: cannot open shared object file: No such file or directory
guest@porteus:/mnt/live/memory/images$ ldd /usr/bin/inkscape|grep not
	libboost_filesystem.so.1.78.0 => not found
	libboost_filesystem.so.1.78.0 => not found
babam, is there a trick to tell getmod to create a new module out of the previous 8 - but this time add the missing libboost_filesystem.so.1.78.0 ?

Or must that be done completely manually?

Added in 2 minutes 11 seconds:

Code: Select all

root@porteus:~# getmod -s libboost_filesystem
root@porteus:~# 
The problem is that Porteus uses stripped packages (e.g. boost-stripped-1.78.0-x86_64-2_slack15.0.txz)

Trick

Code: Select all

TMP=/mnt/sda7/tmp/getmod getmod -m inkscape boost
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

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

Post#145 by Rava » 11 Oct 2022, 16:41

0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded sounds less than ideal…

Code: Select all

root@porteus:~# TMP=/mnt/sda7/tmp/getmod/ getmod -m inkscape  boost
Reading Package Lists...Done
inkscape is up to date.
boost is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.
Do you want to continue? [y/N] y

Done
Verifying package inkscape-1.1.2-x86_64-1gv.txz.
Installing package inkscape-1.1.2-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# inkscape (an Open Source vector graphics editor)
# 
# Inkscape is an Open Source vector graphics editor, with capabilities
# similar to Illustrator, CorelDraw, or Xara X, using the W3C standard
# Scalable Vector Graphics (SVG) file format. Inkscape supports many
# advanced SVG features (markers, clones, alpha blending, etc.) and
# great care is taken in designing a streamlined interface. It is very
# easy to edit nodes, perform complex path operations, trace bitmaps and
# much more. We also aim to maintain a thriving user and developer
# community by using open, community-oriented development.
# 
Executing install script for inkscape-1.1.2-x86_64-1gv.txz.
Package inkscape-1.1.2-x86_64-1gv.txz installed.
Verifying package double-conversion-3.2.0-x86_64-1gv.txz.
Installing package double-conversion-3.2.0-x86_64-1gv.txz:
PACKAGE DESCRIPTION:
# double-conversion (decimal conversion routines for IEEE doubles)
# 
# This project provides binary-decimal and decimal-binary routines for
# IEEE doubles. The library consists of efficient conversion routines
# that have been extracted from the V8 JavaScript engine. The code has
# been refactored and improved so that it can be used more easily in
# other projects.
# 
Executing install script for double-conversion-3.2.0-x86_64-1gv.txz.
Package double-conversion-3.2.0-x86_64-1gv.txz installed.
Verifying package potrace-1.16-x86_64-1dj.txz.
Installing package potrace-1.16-x86_64-1dj.txz:
PACKAGE DESCRIPTION:
# potrace (bitmap utility)
# 
# Potrace is a utility for tracing a bitmap, which means, transforming
# a bitmap into a smooth, scalable image.  The input is a bitmap (PBM,
# PGM, PPM, or BMP format), and the default output is an encapsulated
# PostScript file (EPS).  A typical use is to create EPS files from
# scanned data, such as company or university logos, handwritten notes,
# etc.  The resulting image is not 'jaggy' like a bitmap, but smooth.
# It can then be rendered at any resolution.
# 
Executing install script for potrace-1.16-x86_64-1dj.txz.
Package potrace-1.16-x86_64-1dj.txz installed.
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.
Verifying package librevenge-0.0.4-x86_64-4.txz.
Installing package librevenge-0.0.4-x86_64-4.txz:
PACKAGE DESCRIPTION:
# librevenge (Library for REVerse ENGineered formats filters)
#
# librevenge is a base library for writing document import filters.
# It has interfaces for text documents, vector graphics, spreadsheets,
# and presentations.
#
# Homepage: http://sourceforge.net/p/libwpd/wiki/librevenge/
#
Executing install script for librevenge-0.0.4-x86_64-4.txz.
Package librevenge-0.0.4-x86_64-4.txz installed.
Verifying package libwpg-0.3.3-x86_64-3.txz.
Installing package libwpg-0.3.3-x86_64-3.txz:
PACKAGE DESCRIPTION:
# libwpg (WPG-image reading/converting library)
#
# libwpg is a library for reading and converting WPG images
#
# Homepage: http://libwpg.sourceforge.net/
#
Executing install script for libwpg-0.3.3-x86_64-3.txz.
Package libwpg-0.3.3-x86_64-3.txz installed.
Verifying package libwpd-0.10.3-x86_64-3.txz.
Installing package libwpd-0.10.3-x86_64-3.txz:
PACKAGE DESCRIPTION:
# libwpd (WordPerfect document format library)
#
# This package contains a library (libwpd) and tools to transform
# WordPerfect documents into other formats such as HTML, text, and raw.
#
# libwpd is used by word processors such as Calligra Words.
#
# Homepage: https://sourceforge.net/projects/libwpd
#
Executing install script for libwpd-0.10.3-x86_64-3.txz.
Package libwpd-0.10.3-x86_64-3.txz installed.
Verifying package libvisio-0.1.7-x86_64-7.txz.
Installing package libvisio-0.1.7-x86_64-7.txz:
PACKAGE DESCRIPTION:
# libvisio (Visio document format library)
#
# Libvisio is a library that parses the file format of Microsoft Visio
# documents of all versions.
#
# Homepage: https://wiki.documentfoundation.org/DLP/Libraries/libvisio
#
Executing install script for libvisio-0.1.7-x86_64-7.txz.
Package libvisio-0.1.7-x86_64-7.txz installed.
Parallel mksquashfs: Using 8 processors
Creating 4.0 filesystem on /mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm, block size 1048576.
[=============================================================|] 3551/3551 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 17697.56 Kbytes (17.28 Mbytes)
	14.30% of uncompressed filesystem size (123763.77 Kbytes)
Inode table size 28412 bytes (27.75 Kbytes)
	24.02% of uncompressed inode table size (118279 bytes)
Directory table size 39046 bytes (38.13 Kbytes)
	33.97% of uncompressed directory table size (114941 bytes)
Number of duplicate files found 324
Number of inodes 3669
Number of files 3515
Number of fragments 78
Number of symbolic links 26
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 128
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)

====> '/mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm' was created successfully.
I have not saved the previous /mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm (then I could have made a lsxzm comparison of both contents) but since the build process not mentioned anything about boost I presume this version will also lack it.

Activate new version after I deactivated previous version:

Code: Select all

root@porteus:~# activate /mnt/sda7/tmp/getmod//inkscape-1.1.2-x86_64-1gv.xzm
Updating shared library links:  /sbin/ldconfig
Same old same old:

Code: Select all

guest@porteus:/mnt/live/memory/images$ ldd /usr/bin/inkscape|grep not
	libboost_filesystem.so.1.78.0 => not found
	libboost_filesystem.so.1.78.0 => not found
guest@porteus:/mnt/live/memory/images$ inkscape 
inkscape: error while loading shared libraries: libboost_filesystem.so.1.78.0: cannot open shared object file: No such file or directory
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] getmod: A wrapper for slapt-get to build modules

Post#146 by babam » 11 Oct 2022, 16:48

Rava wrote:
11 Oct 2022, 16:41
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded sounds less than ideal…

Code: Select all

# rm /var/lib/pkgtools/packages/boost-1*
# TMP=/mnt/sda7/tmp/getmod getmod -m inkscape boost
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

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

Post#147 by Rava » 11 Oct 2022, 17:19

Code: Select all

root@porteus:/mnt/sda7/tmp/getmod# ls -o *xzm|cut -c 20-
31277056 2022-10-11 18:54 inkscape-1.1.2-x86_64-1gv.xzm
18124800 2022-10-11 18:35 inkscape-1.1.2-x86_64-1gv_rava2.xzm
Quite the huge difference, from 17.29 MB to 29.83 MB…

Added in 16 minutes 15 seconds:
But yay! Newest inkscape:
https://abload.de/img/inkscape_1.1.2b0fhj.png (FullHD screenshot, 290.49 kB)
Thanks so much babam! :friends:

Added in 9 hours 47 minutes 27 seconds:
And now, when the cold and wet autumns or winter nights hit the Franconian Switzerland then I could get motivated to aggressively slim down the 29.83 MB inkscape-1.1.2-x86_64-1gv.xzm module into a just able to run one for Porteus 5.0 XFCE … :D
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#148 by Ed_P » 12 Oct 2022, 05:22

Rava wrote:
12 Oct 2022, 03:23

Code: Select all

ls -o *xzm|cut -c 20-
:o I like this line of code. :happy62:
Ed

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] getmod: A wrapper for slapt-get to build modules

Post#149 by Rava » 12 Oct 2022, 05:46

Ed_P wrote:
12 Oct 2022, 05:22

Code: Select all

ls -o *xzm|cut -c 20-
:o I like this line of code. :happy62:
The nice thing is, it also works with really small files

Code: Select all

guest@porteus:~$ ls -o .lesshst .redshiftgrc
-rw------- 1 guest  51 2022-10-11 11:01 .lesshst
-r--r--r-- 1 guest 123 2020-11-03 12:23 .redshiftgrc
guest@porteus:~$ ls -o .lesshst .redshiftgrc|cut -c 20-
 51 2022-10-11 11:01 .lesshst
123 2020-11-03 12:23 .redshiftgrc
since the file size comes after the stuff you want to cut out.

but still Cave! - when you created a user with a longer name, or files are all only owned by "root" (4 characters only, when "guest" has 5) it gets erroneous

Code: Select all

root@porteus:~# ls -o .bash_profile .lesshst 
-rw-r--r-- 1 root 79 2019-12-07 06:40 .bash_profile
-rw------- 1 root 20 2022-10-12 03:51 .lesshst
root@porteus:~# ls -o .bash_profile .lesshst |cut -c 20-
9 2019-12-07 06:40 .bash_profile
0 2022-10-12 03:51 .lesshst
Added in 1 minute 45 seconds:
In this case it should have been |cut -c 19-

Code: Select all

root@porteus:~# ls -o .bash_profile .lesshst |cut -c 19-
79 2019-12-07 06:40 .bash_profile
20 2022-10-12 03:51 .lesshst
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8341
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

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

Post#150 by Ed_P » 12 Oct 2022, 06:29

Rava wrote:
12 Oct 2022, 05:48
but still Cave! - when you created a user with a longer name, or files are all only owned by "root" (4 characters only, when "guest" has 5) it gets erroneous
:o Good points. :happy62: Thank you.

BTW I found I prefer an -oh operand rather than just the -o.
Ed

Post Reply