Fine tuning of usm for newcomers: your suggestions

Non release banter
Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Fine tuning of usm for newcomers: your suggestions

Post#31 by Bogomips » 01 Jul 2015, 21:15

As it stands at the moment USM is configured with MODULES=false in /etc/usm/usm.conf. As a result if a package has no dependencies there is no option to produce a module within USM's epilog. However with MODULES=true one gets a whole load of dependencies made into modules, upon choosing download into a subfolder.

Code: Select all

root@porteus:/home/guest# grep MOD /etc/usm/usm.conf 
MODULES=true

root@porteus:/home/guest# usm -g openjre

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) openjre-7u51_b31-i486-2gv.txz     3) openjre-7u79_b14-i486-2sl.txz
2) openjre-7u79_b14-i486-2alien.txz
#? 3

Processing:   openjre-7u79_b14-i486-2sl.txz 
...
 The following packages are required. 
aaa_elflibs-14.1-i486-3.txz [4708K] [installed]
openjre-7u79_b14-i486-2sl.txz [40023K] [not installed]
openssl-solibs-1.0.1e-i486-1.txz [1208K] [not installed]
rhino-1_7R4-i486-3sl.txz [1351K] [not installed]

Total size: 47 MB

 Multiple packages were detected.
 Would you like to merge the packages into one module? [y/n]
 Would you like to create a subfolder for the files? [y/n]	# Subfolder Chosen
 Would you like to install the package/s? (custom paths are supported) [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.
Downloading: aaa_elflibs-14.1-i486-3.txz  DONE
Downloading: openjre-7u79_b14-i486-2sl.txz  DONE
Downloading: openssl-solibs-1.0.1e-i486-1.txz  DONE
Downloading: rhino-1_7R4-i486-3sl.txz  DONE

 Commencing package conversion ... 
Verifying package aaa_elflibs-14.1-i486-3.txz.
Installing package aaa_elflibs-14.1-i486-3.txz:
PACKAGE DESCRIPTION:
# aaa_elflibs (shared libraries needed by many programs)
...
Creating /tmp/usm/openjre-7u79_b14/aaa_elflibs-14.1-i486-3.xzm

Verifying package openjre-7u79_b14-i486-2sl.txz.
Installing package openjre-7u79_b14-i486-2sl.txz:
PACKAGE DESCRIPTION:
# Java(TM) 2 Platform Standard Runtime.
...
Creating /tmp/usm/openjre-7u79_b14/openjre-7u79_b14-i486-2sl.xzm

Verifying package openssl-solibs-1.0.1e-i486-1.txz.
Installing package openssl-solibs-1.0.1e-i486-1.txz:
PACKAGE DESCRIPTION:
# openssl-solibs (OpenSSL shared libraries)
...
Creating /tmp/usm/openjre-7u79_b14/openssl-solibs-1.0.1e-i486-1.xzm

Verifying package rhino-1_7R4-i486-3sl.txz.
Installing package rhino-1_7R4-i486-3sl.txz:
PACKAGE DESCRIPTION:
# rhino (javascript library for java)
...
Creating /tmp/usm/openjre-7u79_b14/rhino-1_7R4-i486-3sl.xzm


root@porteus:/home/guest# ls -sh /tmp/usm/openjre-7u79_b14/
total 94M
4.7M aaa_elflibs-14.1-i486-3.txz    1.2M openssl-solibs-1.0.1e-i486-1.txz
5.0M aaa_elflibs-14.1-i486-3.xzm    1.5M openssl-solibs-1.0.1e-i486-1.xzm
 40M openjre-7u79_b14-i486-2sl.txz  1.4M rhino-1_7R4-i486-3sl.txz
 40M openjre-7u79_b14-i486-2sl.xzm  1.6M rhino-1_7R4-i486-3sl.xzm
This is a waste of time if one just requires the packages, which is much more likely than wishing to have each of dependency packages transformed into a module. As well, activation of a whole lot of small modules could lead to inter-dependency problems hindering deactivation.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Fine tuning of usm for newcomers: your suggestions

Post#32 by francois » 04 Jul 2015, 02:14

It thought that the dependencies could be used for future packages needing them at the time of their installation. Even though the original package package could be could be stored in /porteus/optional.

What do you propose?
Prendre son temps, profiter de celui qui passe.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Fine tuning of usm for newcomers: your suggestions

Post#33 by Bogomips » 14 Aug 2015, 19:24

francois wrote:It thought that the dependencies could be used for future packages needing them at the time of their installation. Even though the original package package could be could be stored in /porteus/optional.

What do you propose?
Propose that when default is 'no modules', there should be an option to request a module. This will then be consistent with the present options. As it stands at the moment, if there is more than one package the option to make a module is there, but if there is only one package the option to override the default and make a module is missing. Such an option would be helpful within the procedure being used to resolve non-slackware dependencies.

At present If there is more than one package, in the first USM pass of the procedure one collects them in a subfolder, and in second USM pass the option to merge into one module chosen. Thereafter packages once more downloaded, and then the module made up from these packages has to be separately activated. Further down the line these modules are usually dispensed with, and only their constituent packages are needed to create resultant module bundle.

Proposal
  1. Packages should not need to be downloaded more than once. If default is 'no modules', there should be a 'module' option available at the end.
  2. And if this option is taken, then packages in subfolder should be used to make module, should subfolder have been requested earlier on.
  3. If 'module' option taken, an activation option should then be made available, once module is made.


Present Situation

After selecting merge into module, all other options suppressed, so no go:

Code: Select all

root@porteus:/home/guest# usm -g openjre

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) openjre-7u51_b31-i486-2gv.txz     3) openjre-7u85_b01-i486-1alien.txz
2) openjre-7u79_b14-i486-2sl.txz
#? 3

Processing:   openjre-7u85_b01-i486-1alien.txz 

 The following packages are required. 
openjre-7u85_b01-i486-1alien.txz [43916K] [not installed]
rhino-1_7R4-i486-3sl.txz [1351K] [not installed]

Total size: 45 MB

 Multiple packages were detected.
 Would you like to merge the packages into one module? [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.
First USM Pass, Request subfolder for packages:

Code: Select all

root@porteus:/home/guest# usm -g openjre                  

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) openjre-7u51_b31-i486-2gv.txz     3) openjre-7u85_b01-i486-1alien.txz
2) openjre-7u79_b14-i486-2sl.txz
#? 3

Processing:   openjre-7u85_b01-i486-1alien.txz 

 The following packages are required. 
openjre-7u85_b01-i486-1alien.txz [43916K] [not installed]
rhino-1_7R4-i486-3sl.txz [1351K] [not installed]

Total size: 45 MB

 Multiple packages were detected.
 Would you like to merge the packages into one module? [y/n]
 Would you like to create a subfolder for the files? [y/n]
 Would you like to install the package/s? (custom paths are supported) [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.

 Updates are available. 
 Program update:   not required 
 Database update:  available 
 Please run:  usm -u all  and/or  usm -u usm 
 This message can be disabled in /etc/usm/usm.conf
 ############################### 
Downloading: openjre-7u85_b01-i486-1alien.txz  DONE
Downloading: rhino-1_7R4-i486-3sl.txz  DONE

root@porteus:/home/guest# ls /tmp/usm/openjre-7u85_b01/
openjre-7u85_b01-i486-1alien.txz  rhino-1_7R4-i486-3sl.txz
Second USM Pass. Request module from Packages. Packages once more downloaded:

Code: Select all

root@porteus:/home/guest# usm -g openjre               

 The following items were found.
 Choose an number to confirm. 
 ctrl+c to quit

1) openjre-7u51_b31-i486-2gv.txz     3) openjre-7u85_b01-i486-1alien.txz
2) openjre-7u79_b14-i486-2sl.txz
#? 3

Processing:   openjre-7u85_b01-i486-1alien.txz 

 The following packages are required. 
openjre-7u85_b01-i486-1alien.txz [43916K] [not installed]
rhino-1_7R4-i486-3sl.txz [1351K] [not installed]

Total size: 45 MB

 Multiple packages were detected.
 Would you like to merge the packages into one module? [y/n]

 Press [r] to remove packages, [q] to quit, or enter to start downloading.

 Updates are available. 
 Program update:   not required 
 Database update:  available 
 Please run:  usm -u all  and/or  usm -u usm 
 This message can be disabled in /etc/usm/usm.conf
 ############################### 
Downloading: openjre-7u85_b01-i486-1alien.txz  DONE
Downloading: rhino-1_7R4-i486-3sl.txz  DONE
openjre-7u85_b01-i486-1alien: JavaTM Platform Standard Edition Runtime E [77M] 
rhino-1_7R4-i486-3sl: javascript library for java                        [9.2M]
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on /tmp/usm/openjre-7u85_b01-i486-bundle.xzm, block size 262144.
[=========================================================================|] 1121/1121 100%

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
        compressed data, compressed metadata, compressed fragments, compressed xattrs
        duplicates are removed
Filesystem size 46678.54 Kbytes (45.58 Mbytes)
        52.95% of uncompressed filesystem size (88156.76 Kbytes)
Inode table size 7732 bytes (7.55 Kbytes)
        24.78% of uncompressed inode table size (31204 bytes)
Directory table size 9234 bytes (9.02 Kbytes)
        47.24% of uncompressed directory table size (19546 bytes)
Number of duplicate files found 26
Number of inodes 932
Number of files 832
Number of fragments 46
Number of symbolic links  10
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 90
Number of ids (unique uids + gids) 1
Number of uids 1
        root (0)
Number of gids 1
        root (0)

/tmp/usm/openjre-7u85_b01-i486-bundle.xzm is ready.

root@porteus:/home/guest# ls /tmp/usm/openjre-7u85_b01-i486-
openjre-7u85_b01-i486-1alien.txz  openjre-7u85_b01-i486-bundle.xzm

root@porteus:/home/guest# ls -lh /tmp/usm/rhino-1_7R4-i486-3sl.txz 
-rw-r--r-- 1 root root 1.4M Jan  7  2014 /tmp/usm/rhino-1_7R4-i486-3sl.txz
Capability of USM

Code: Select all

Found Slackware Package Versions
Slacky: Slackware 13.37
libgdata-0.6.6-i486-1sl         0.6.6-1
Slacky: Slackware 14.0
libgdata-0.12.0-i486-1sl                0.12.0-1
Salix: Slackware 14.0
libgdata-0.12.0-i486-1gv                0.12.0-1
Desirable to have USM being able to process Slackware 14.0 Package (non-latest Package) when no 14.1 Package available.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
francois
Contributor
Contributor
Posts: 6445
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Re: Fine tuning of usm for newcomers: your suggestions

Post#34 by francois » 14 Aug 2015, 20:38

Your usm thoughts are far deeper than mine. I like it. I imagine that brokenman has an eye on this thread. :wink:
Prendre son temps, profiter de celui qui passe.

Post Reply