mudler / luet

:package: :whale: 0-dependency Container-based Package Manager using SAT solver and QLearning
https://luet.io
GNU General Public License v3.0
253 stars 24 forks source link

Drop finalization redundancy #314

Closed msdobrescu closed 3 months ago

msdobrescu commented 1 year ago

Is your feature request related to a problem? Please describe.

Upgrading or installing many packages at once, having several dependecies, ends up in repeating again and again the same finalization steps of a collection. Not sure how it performs related to the atomic package model.

Below is a regular upgrade:

 INFO   :::> Upgrade
 INFO   🤔  Computing upgrade, please hang tight... 💤                                                                                                                                                                                                      
 INFO   ⚡  Proposed version changes to the system:

Old version                        | New version                      | License            
apps/podofo-0.9.6_p20190928-r100+1 | apps/podofo-0.9.6_p20190928-r101 |                    
libs/cfitsio-4.0.0                 | libs/cfitsio-4.0.0+2             |                    
libs/sdl2-mixer-2.0.4-r3+1         | libs/sdl2-mixer-2.0.4-r3+2       | ZLIB               
apps/darktable-3.8.1-r1+1          | apps/darktable-4.0.1             |                    
apps/mixxx-2.3.3-r1+2              | apps/mixxx-2.3.3-r1+3            | GPL-2              
libs/libmikmod-3.3.11.1+1          | libs/libmikmod-3.3.11.1-r1       | LGPL-2+ LGPL-2.1   
libs/nlohmann_json-3.10.5          | libs/nlohmann_json-3.10.5+1      |                    
libs/suil-0.10.16-r1               | libs/suil-0.10.18                | ISC                
libs/lilv-0.24.14                  | libs/lilv-0.24.20                |                    
libs/libvisio-0.1.7+5              | libs/libvisio-0.1.7+6            |                    
libs/hidapi-0.11.0                 | libs/hidapi-0.11.0+1             |                    
libs/sratom-0.6.10                 | libs/sratom-0.6.14               |                    
libs/nas-1.9.5+1                   | libs/nas-1.9.5+2                 |                    
apps/luminance-hdr-2.6.1.1         | apps/luminance-hdr-2.6.1.1+1     | GPL-2              
apps/cfortran-20110621+1           | apps/cfortran-20110621+3         |                    
apps/tk-8.6.12+1                   | apps/tk-8.6.12+2                 |                    
apps/mkvtoolnix-67.0.0             | apps/mkvtoolnix-69.0.0           |                    
libs/libsbsms-2.3.0+1              | libs/libsbsms-2.3.0+2            |                    
libs/libsoundtouch-2.3.1+1         | libs/libsoundtouch-2.3.1+2       |                    
apps/twolame-0.4.0+1               | apps/twolame-0.4.0+2             |                    
libs/sord-0.16.10                  | libs/sord-0.16.14                |                    
apps/timidity-2.15.0-r6+1          | apps/timidity-2.15.0-r6+2        | GPL-2 free-noncomm 
libs/serd-0.30.12                  | libs/serd-0.30.16                |                    
libs/lv2-1.18.4                    | libs/lv2-1.18.8-r1               |                    
apps/scribus-1.5.8-r1+4            | apps/scribus-1.5.8-r2            | GPL-2              

Downloading packages [0/25] █                                                                                                                                                                                                                        0% | 0s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:podofo-apps-0.9.6_p20190928-r101                                                                                                                                                            
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:luminance-hdr-apps-2.6.1.1-1                                                                                                                                                                
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:mixxx-apps-2.3.3-r1-3                                                                                                                                                                       
 INFO   Image: quay.io/mocaccino/mocaccino-community:podofo-apps-0.9.6_p20190928-r101. Pulled: sha256:7c0745f518419c4107cc76dd37924e2462a2e3379b841ccd61f09cfd45eadaa6. Size: 4.581MiB                                                                      
Downloading packages [1/25] █████████                                                                                                                                                                                                                4% | 2s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:libsoundtouch-libs-2.3.1-2                                                                                                                                                                  
 INFO   Image: quay.io/mocaccino/mocaccino-community:luminance-hdr-apps-2.6.1.1-1. Pulled: sha256:4ef514585ddd922e841e9ab99512eb5f1babd9a7ac3752b7938c71c3422fbaa2. Size: 10.89MiB                                                                          
Downloading packages [2/25] ██████████████████                                                                                                                                                                                                       8% | 3s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:nas-libs-1.9.5-2                                                                                                                                                                            
 INFO   Image: quay.io/mocaccino/mocaccino-community:libsoundtouch-libs-2.3.1-2. Pulled: sha256:fb2f0ad0c0a895b5c7fff947e3582ee0b6ed162cdb719d2d3b488908b70f9df1. Size: 311.4KiB                                                                            
Downloading packages [3/25] ██████████████████████████                                                                                                                                                                                              12% | 3s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:darktable-apps-4.0.1                                                                                                                                                                        
 INFO   Image: quay.io/mocaccino/mocaccino-community:nas-libs-1.9.5-2. Pulled: sha256:349029681f0715d74a34fb34d9ef74682f084f0d0dae197d6b7fd079cd4000df. Size: 1.248MiB                                                                                      
Downloading packages [4/25] ███████████████████████████████████                                                                                                                                                                                     16% | 4s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:hidapi-libs-0.11.0-1                                                                                                                                                                        
 INFO   Image: quay.io/mocaccino/mocaccino-community:darktable-apps-4.0.1. Pulled: sha256:ee6a00c8a011e47601fea69866190d6906442de7e9e1be537f057b39c449ea7c. Size: 26.27MiB                                                                                  
 INFO   Image: quay.io/mocaccino/mocaccino-community:hidapi-libs-0.11.0-1. Pulled: sha256:d9bd8c6fed0c52b2bda2599ceee818909774b9b6d7c192549b0d7757698eb4f5. Size: 135.1KiB                                                                                  
Downloading packages [5/25] ███████████████████████████████████████████                                                                                                                                                                             20% | 5s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:timidity-apps-2.15.0-r6-2                                                                                                                                                                   
Downloading packages [6/25] ████████████████████████████████████████████████████                                                                                                                                                                    24% | 5s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:lv2-libs-1.18.8-r1                                                                                                                                                                          
 INFO   Image: quay.io/mocaccino/mocaccino-community:lv2-libs-1.18.8-r1. Pulled: sha256:6019b729ba8264929c40ea58c180803c1fadad96e8988e987257fed3e4283aa0. Size: 1.707MiB                                                                                    
Downloading packages [7/25] ████████████████████████████████████████████████████████████                                                                                                                                                            28% | 6s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:twolame-apps-0.4.0-2                                                                                                                                                                        
 INFO   Image: quay.io/mocaccino/mocaccino-community:twolame-apps-0.4.0-2. Pulled: sha256:e7217fa30de6430a129296dbf68e96fd1b0342811952423996392eacfa730cdf. Size: 372.9KiB                                                                                  
Downloading packages [8/25] █████████████████████████████████████████████████████████████████████                                                                                                                                                   32% | 8s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:tk-apps-8.6.12-2                                                                                                                                                                            
 INFO   Image: quay.io/mocaccino/mocaccino-community:tk-apps-8.6.12-2. Pulled: sha256:2011e92197e6f120c87ef4f74f08851e7ceb118fcadc3f794090c505d957670f. Size: 8.95MiB                                                                                       
Downloading packages [9/25] ██████████████████████████████████████████████████████████████████████████████                                                                                                                                          36% | 9s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:sratom-libs-0.6.14                                                                                                                                                                          
 INFO   Image: quay.io/mocaccino/mocaccino-community:sratom-libs-0.6.14. Pulled: sha256:350f47ee0fd0423ee142b0309b52dee9a1263975598bb1a5a0ab7cb5334aee2a. Size: 90.71KiB                                                                                    
Downloading packages [10/25] █████████████████████████████████████████████████████████████████████████████████████                                                                                                                                 40% | 10s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:lilv-libs-0.24.20                                                                                                                                                                           
 INFO   Image: quay.io/mocaccino/mocaccino-community:timidity-apps-2.15.0-r6-2. Pulled: sha256:4d6d33860f5933d5b6e2d0812dba8fbac9604a105d4c3b11c06ef3a2221553dc. Size: 69.42MiB                                                                             
 INFO   Image: quay.io/mocaccino/mocaccino-community:lilv-libs-0.24.20. Pulled: sha256:71a799a27e1472bb9de32de70c505d1687ff892f3152e4e0c4a1c409c78160c0. Size: 575.1KiB                                                                                     
Downloading packages [11/25] ██████████████████████████████████████████████████████████████████████████████████████████████                                                                                                                        44% | 12s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:sdl2-mixer-libs-2.0.4-r3-2                                                                                                                                                                  
Downloading packages [12/25] ██████████████████████████████████████████████████████████████████████████████████████████████████████                                                                                                                48% | 12s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:nlohmann_json-libs-3.10.5-1                                                                                                                                                                 
 INFO   Image: quay.io/mocaccino/mocaccino-community:sdl2-mixer-libs-2.0.4-r3-2. Pulled: sha256:0b71cd3ac7bd1d1fb3aac4b8da079fdcaefe3ecb66f5d0dbd1992aa44069831d. Size: 806.5KiB                                                                            
Downloading packages [13/25] ███████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                                                       52% | 13s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:libvisio-libs-0.1.7-6                                                                                                                                                                       
 INFO   Image: quay.io/mocaccino/mocaccino-community:nlohmann_json-libs-3.10.5-1. Pulled: sha256:f2538fc4d8d837b490f517bb7e0328fce5c392c9d7379fd3b4f7e17246140669. Size: 868.2KiB                                                                           
Downloading packages [14/25] ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                                               56% | 13s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:libsbsms-libs-2.3.0-2                                                                                                                                                                       
 INFO   Image: quay.io/mocaccino/mocaccino-community:libvisio-libs-0.1.7-6. Pulled: sha256:4817f6fc021eac51348110b4f1f65d016ac5bb30ea46c4802ec2e267a09047a4. Size: 761KiB                                                                                   
Downloading packages [15/25] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                                      60% | 13s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:scribus-apps-1.5.8-r2                                                                                                                                                                       
 INFO   Image: quay.io/mocaccino/mocaccino-community:libsbsms-libs-2.3.0-2. Pulled: sha256:d60ba7e92c466167727c540d755f1b18abf7405585c91e9fe0224ebc2a76f614. Size: 229.8KiB                                                                                 
Downloading packages [16/25] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                              64% | 14s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:suil-libs-0.10.18                                                                                                                                                                           
 INFO   Image: quay.io/mocaccino/mocaccino-community:suil-libs-0.10.18. Pulled: sha256:bc86fc80b4a2d02ac89fb7d6a44829ca35f68e66bcd86c7e201740c4c326fe8f. Size: 160.3KiB                                                                                     
Downloading packages [17/25] █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                     68% | 15s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:serd-libs-0.30.16                                                                                                                                                                           
 INFO   Image: quay.io/mocaccino/mocaccino-community:serd-libs-0.30.16. Pulled: sha256:9cef5935c013c046d07ed9c69db0445c2468a53fed82fadff5a542bc108f2717. Size: 280KiB                                                                                       
Downloading packages [18/25] █████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                             72% | 16s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:mkvtoolnix-apps-69.0.0                                                                                                                                                                      
 INFO   Image: quay.io/mocaccino/mocaccino-community:mkvtoolnix-apps-69.0.0. Pulled: sha256:47c347ff81b6fa614fb4e263173bb35f5326e78215fa4c151f2df6839eca3b5d. Size: 24.07MiB                                                                                
Downloading packages [19/25] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                    76% | 19s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:cfortran-apps-20110621-3                                                                                                                                                                    
 INFO   Image: quay.io/mocaccino/mocaccino-community:cfortran-apps-20110621-3. Pulled: sha256:313941f6fe2c6b458caa81a6eb2cfda9bbc98cdbe1aef69f658447e920b02180. Size: 278.6KiB                                                                              
Downloading packages [20/25] ██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                            80% | 20s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:libmikmod-libs-3.3.11.1-r1                                                                                                                                                                  
 INFO   Image: quay.io/mocaccino/mocaccino-community:libmikmod-libs-3.3.11.1-r1. Pulled: sha256:04d2ae34b03b762822bf089dc595866512e2c2b9ee2313c01a4b8157b717e99b. Size: 820.7KiB                                                                            
Downloading packages [21/25] ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                   84% | 21s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:cfitsio-libs-4.0.0-2                                                                                                                                                                        
 INFO   Image: quay.io/mocaccino/mocaccino-community:scribus-apps-1.5.8-r2. Pulled: sha256:f3a3905d4bea70466fae2c2ca9b0d9ae4f067ad04e1458b71154df12b84e5312. Size: 132.1MiB                                                                                 
 INFO   Image: quay.io/mocaccino/mocaccino-community:cfitsio-libs-4.0.0-2. Pulled: sha256:7d37c768319cd2793dbea5742163fdb98dee3c28cefae5ab21990e70d8b3feca. Size: 5.841MiB                                                                                  
Downloading packages [22/25] ███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                           88% | 23s
 INFO   Downloading image quay.io/mocaccino/mocaccino-community:sord-libs-0.16.14                                                                                                                                                                           
 INFO   Image: quay.io/mocaccino/mocaccino-community:sord-libs-0.16.14. Pulled: sha256:62ac67b41512779486487d9af2190986d3bec689873106da1e6d18864605e53a. Size: 114.2KiB                                                                                     
Downloading packages [23/25] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                  92% | 24s
Downloading packages [24/25] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████          96% | 24s
 INFO   Image: quay.io/mocaccino/mocaccino-community:mixxx-apps-2.3.3-r1-3. Pulled: sha256:1287a30ca60d8742d64a46b79357c6471c96b5ee8d0a8bc2c3dd4a593f2e3433. Size: 668.7MiB

Downloading packages [25/25] ████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ 100% | 49s
 INFO   Checking for file conflicts..
 INFO   Done checking for file conflicts..                                                                                                                                                                                                                  
 INFO   📦  Package  libs/libmikmod-3.3.11.1-r1 installed                                                                                                                                                                                                   
 INFO   📦  Package  libs/cfitsio-4.0.0+2 installed                                                                                                                                                                                                         
 INFO   📦  Package  libs/sord-0.16.14 installed                                                                                                                                                                                                            
 INFO   📦  Package  apps/cfortran-20110621+3 installed                                                                                                                                                                                                     
 INFO   📦  Package  apps/luminance-hdr-2.6.1.1+1 installed                                                                                                                                                                                                 
 INFO   📦  Package  apps/podofo-0.9.6_p20190928-r101 installed                                                                                                                                                                                             
 INFO   📦  Package  apps/darktable-4.0.1 installed                                                                                                                                                                                                         
 INFO   📦  Package  libs/hidapi-0.11.0+1 installed                                                                                                                                                                                                         
 INFO   📦  Package  apps/timidity-2.15.0-r6+2 installed                                                                                                                                                                                                    
 INFO   📦  Package  libs/lv2-1.18.8-r1 installed                                                                                                                                                                                                           
 INFO   📦  Package  apps/twolame-0.4.0+2 installed                                                                                                                                                                                                         
 INFO   📦  Package  apps/mixxx-2.3.3-r1+3 installed                                                                                                                                                                                                        
 INFO   📦  Package  libs/libsoundtouch-2.3.1+2 installed                                                                                                                                                                                                   
 INFO   📦  Package  libs/nas-1.9.5+2 installed                                                                                                                                                                                                             
 INFO   📦  Package  apps/tk-8.6.12+2 installed                                                                                                                                                                                                             
 INFO   📦  Package  libs/nlohmann_json-3.10.5+1 installed                                                                                                                                                                                                  
▀   INFO   📦  Package  libs/libvisio-0.1.7+6 installed                                                                                                                                                                                                     
 INFO   📦  Package  libs/libsbsms-2.3.0+2 installed                                                                                                                                                                                                        
 INFO   📦  Package  apps/scribus-1.5.8-r2 installed                                                                                                                                                                                                        
 INFO   📦  Package  libs/suil-0.10.18 installed                                                                                                                                                                                                            
 INFO   📦  Package  libs/sratom-0.6.14 installed                                                                                                                                                                                                           
 INFO   📦  Package  libs/lilv-0.24.20 installed                                                                                                                                                                                                            
 INFO   📦  Package  libs/sdl2-mixer-2.0.4-r3+2 installed                                                                                                                                                                                                   
 INFO   📦  Package  libs/serd-0.30.16 installed                                                                                                                                                                                                            
 INFO   📦  Package  apps/mkvtoolnix-69.0.0 installed                                                                                                                                                                                                       
 INFO   Executing finalizer for libs/hidapi-0.11.0+1
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/timidity-2.15.0-r6+2
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/lv2-1.18.8-r1
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/twolame-0.4.0+2
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/mixxx-2.3.3-r1+3
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/libsoundtouch-2.3.1+2
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/nas-1.9.5+2
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/darktable-4.0.1
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/tk-8.6.12+2
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/libvisio-0.1.7+6
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/libsbsms-2.3.0+2
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/scribus-1.5.8-r2
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/suil-0.10.18
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/sratom-0.6.14
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/lilv-0.24.20
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/sdl2-mixer-2.0.4-r3+2
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/nlohmann_json-3.10.5+1
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/serd-0.30.16
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/mkvtoolnix-69.0.0
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/libmikmod-3.3.11.1-r1
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/cfitsio-4.0.0+2
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for libs/sord-0.16.14
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/cfortran-20110621+3
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/luminance-hdr-2.6.1.1+1
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...
 INFO   Executing finalizer for apps/podofo-0.9.6_p20190928-r101
 INFO   🐚  Executing finalizer on  / sh [-c glib-compile-schemas /usr/share/glib-2.0/schemas > /dev/null 2>&1]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c update-mime-database /usr/share/mime/]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c ldconfig]
 INFO   
 INFO   🐚  Executing finalizer on  / sh [-c env-update && source /etc/profile]
 INFO   >>> Regenerating /etc/ld.so.cache...

There are multiple problems here. On one hand, Plasma freezes during specific operations, like update-mime-database /usr/share/mime/. This may happen in other DEs or apps that are QT based. On other hand, it takes long to finalize. This beats the binary deployment performance. Mainly, repeating the same steps is useless.

Describe the solution you'd like

Need control over finalization steps. I propose to have package finalizaers that are trigerred punctually per package basis and a global finalizer per collection. Generic steps to be taken in the global finalizer, particular steps in the package finalizer.

Also, for a better control, can have a 'run once' finalizer entry that would be added to the package finalization but run once per bunch if some other package issues it (by filtering out the identical lines).

Describe alternatives you've considered

Additional context

msdobrescu commented 5 months ago

A batch of about 100 packages installed the files in few minutes, but finalizers took 80 mins. In the meanwhile, the system was barely usable. There is a heavy actvity on disk during the finalization process, especially by some KDE mime types refreshing. I think it needs to be able to either detect if some batch command like that has taken place and do it once per installing batch, either have a global finalizer too.

msdobrescu commented 3 months ago

This is an effect of the request in https://github.com/mudler/luet/issues/312.