How to remove shared libraries dependencies?


Priyanshu Sharma
 

I've a requirement in which I want to package veritysetup binary in a minimal filesystem (which is size constraint) 
Including "cryptsetup" package in IMAGE_INSTALL is adding the binary but also a lot of shared libraries which are its dependencies. The shared libraries are increasing the size of the filesystem, which should not be done. I do not need functionalities like ssl for veritysetup, so how can I remove the dependencies on these shared libraries?

I've tried removing eg ssl from https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb#n29 but the shared libs are still the dependency.


Alexander Kanavin
 

You need to be more specific, otherwise it is not clear how can we
help. Show exactly what you did, and what happened (or didn't happen
even though you expected that).

The basic way to trim dependencies is to set PACKAGECONFIG to a minimal set.

Alex

On Mon, 31 Oct 2022 at 02:34, Priyanshu Sharma
<ms.priyanshu.sharma@...> wrote:

I've a requirement in which I want to package veritysetup binary in a minimal filesystem (which is size constraint)
Including "cryptsetup" package in IMAGE_INSTALL is adding the binary but also a lot of shared libraries which are its dependencies. The shared libraries are increasing the size of the filesystem, which should not be done. I do not need functionalities like ssl for veritysetup, so how can I remove the dependencies on these shared libraries?

I've tried removing eg ssl from https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb#n29 but the shared libs are still the dependency.




Priyanshu Sharma
 

I've a requirement in which I want to package veritysetup binary in a minimal filesystem (which is size constraint)
Including "cryptsetup" package in IMAGE_INSTALL is adding the binary but also a lot of shared libraries which are its dependencies. The shared libraries are increasing the size of the filesystem, which should not be done. I do not need functionalities like ssl for veritysetup, so how can I remove the dependencies on these shared libraries?

I've tried removing eg ssl from https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb#n29 but the shared libs are still the dependency.


Chuck Wolber
 

On Sun, Oct 30, 2022 at 6:34 PM Priyanshu Sharma <ms.priyanshu.sharma@...> wrote:

I've a requirement in which I want to package veritysetup binary in a minimal filesystem (which is size constraint) 
Including "cryptsetup" package in IMAGE_INSTALL is adding the binary but also a lot of shared libraries which are its dependencies. The shared libraries are increasing the size of the filesystem, which should not be done. I do not need functionalities like ssl for veritysetup, so how can I remove the dependencies on these shared libraries?

I've tried removing eg ssl from https://git.openembedded.org/meta-openembedded/tree/meta-oe/recipes-crypto/cryptsetup/cryptsetup_2.4.3.bb#n29 but the shared libs are still the dependency.


It sounds like you are trying to build a runtime overlay package that omits all dependencies. If so, this might help.


..Ch:W..


--
"Perfection must be reached by degrees; she requires the slow hand of time." - Voltaire