[PATCH 1/2] build: fail if explicitly requested lib is unbuildable

Morten Brørup mb at smartsharesystems.com
Fri Sep 1 17:40:55 CEST 2023


> From: Bruce Richardson [mailto:bruce.richardson at intel.com]
> Sent: Friday, 1 September 2023 16.24
> 
> When the user passes a list of desired libraries to build via the
> "enable_libs" option, the expectation is that those libraries should be
> part of the build. However, if those libs have either external or
> internal dependencies, they still may be silently disabled, for example:
> running "meson setup -Denable_libs=security build" will successfully
> run, but the security lib will not be configured as "cryptodev" is
> missing.
> 
> We can fix this by setting a flag to indicate when the libraries are
> specified via an enable_libs flag. If so, then we error out when a
> library is unbuildable, giving a suitable error message. For the above
> example case, the "meson setup" run fails with:
> 
> Message: Disabling security [lib/security]: missing internal dependency
> "cryptodev"
> 
> lib/meson.build:218:16: ERROR: Problem encountered: Cannot build explicitly
> requested lib "security".
> 	Please add missing dependency "cryptodev" to "enable_libs" option
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Acked-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list