brlin-tw / bfg-snap

Unofficial Snap Packaging for BFG Repo Cleaner
MIT License
0 stars 0 forks source link

Build output Library linter warnings #3

Closed brlin-tw closed 3 months ago

brlin-tw commented 3 months ago

Build output:

$ snapcraft
Lint warnings:                                                                                                                                      
- library: libattach.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libattach.so'. (https://snapcraft.io/docs/linters-library)           
- library: libawt_headless.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_headless.so'. (https://snapcraft.io/docs/linters-library
)                                                                                                                                                   
- library: libdt_socket.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libdt_socket.so'. (https://snapcraft.io/docs/linters-library)     
- library: libextnet.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libextnet.so'. (https://snapcraft.io/docs/linters-library)           
- library: libfontmanager.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libfontmanager.so'. (https://snapcraft.io/docs/linters-library) 

    ...stripped...

- library: libunpack.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libunpack.so'. (https://snapcraft.io/docs/linters-library)        
- library: libzip.so: unused library 'usr/lib/jvm/java-11-openjdk-amd64/lib/libzip.so'. (https://snapcraft.io/docs/linters-library)              
- library: libasound.so.2: unused library 'usr/lib/x86_64-linux-gnu/libasound.so.2.0.0'. (https://snapcraft.io/docs/linters-library)             
- library: libcups.so.2: unused library 'usr/lib/x86_64-linux-gnu/libcups.so.2'. (https://snapcraft.io/docs/linters-library)                     
- library: libfontconfig.so.1: unused library 'usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0'. (https://snapcraft.io/docs/linters-library)    
- library: libsmime3.so: unused library 'usr/lib/x86_64-linux-gnu/libsmime3.so'. (https://snapcraft.io/docs/linters-library)                     
- library: libssl3.so: unused library 'usr/lib/x86_64-linux-gnu/libssl3.so'. (https://snapcraft.io/docs/linters-library)                         

Should deal with them to reduce snap size.

brlin-tw commented 3 months ago

The JVM libraries are tricky to test, we should avoid priming them.

brlin-tw commented 3 months ago

We have primed most of the unnecessary libraries and have eliminated linter warnings regarding the JVM libraries, closing...