On Tue, 2021-02-09 at 15:27 -0600, Joseph Reynolds wrote:
> Dear openembedded-core members,
> 
> How can I avoid bringing Python into my image via libpwquality?  I need 
> to keep my image size small.  My bbappend uses EXTRA_OECONF += 
> "--enable-python-bindings=no" to take advantage of the source project's 
> configuration option [1], but because libpwquality_1.4.4.bb [2] imports 
> distutil3-base, my image gets Python.  I built a working proof of 
> concept that libpwquality does not need Python here: [3].
> 
> I tried enhancing libpwquality_1.4.4.bb with PACKAGECONFIG 
> "python-bindings" (so my bbappend can use 
> PACKAGECONFIG_remove="python-bindings") but can't find a way to get the 
> final value of PACKAGECONFIG to conditionally `inherit 
> distutils3-base`.  So I am asking for help.
> 
> How can I avoid bringing in Python via libpwquality?

distutils3-base looks rather simple. Offhand, you could:

a) remove python3-core from RDEPENDS when the appropriate PACKAGECONFIG
is set using the remove operator

b) replace the distutils3-base with the other inherits directly and
rewrite the RDEPENDS code to be conditions

c) propose a patch to allow the RDEPENDS to be indirected via another
variable?

Some of these work from bbappends, some are more neater but take a bit
more work to sort out.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#147913): 
https://lists.openembedded.org/g/openembedded-core/message/147913
Mute This Topic: https://lists.openembedded.org/mt/80516859/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to