On 12 Nov 2023, at 21:23, Markus Volk via lists.openembedded.org 
<f_l_k=t-online...@lists.openembedded.org> wrote:
> -DEPENDS = "libpng jpeg dbus zlib libusb1"
> +DEPENDS = "libpng jpeg dbus zlib libusb1 
> ${@bb.utils.contains('PACKAGECONFIG', 'gnutls', 'gnutls', 'openssl', d)}"

That’s horrible, there’s a perfectly good way of specifying DEPENDS in 
PACKAGECONFIGs.

> -PACKAGECONFIG[gnutls] = "--with-tls=gnutls,--with-tls=no,gnutls"
> +PACKAGECONFIG[gnutls] = "--with-tls=gnutls,--with-tls=openssl"

I suggest using the lesser-known PACKAGECONFIG flags, specifically “options 
that conflict”:

https://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGECONFIG

OE doesn’t - currently - have any preference either way.  I raised this a while 
ago but obviously anyone who cares enough to have a strong opinion doesn’t 
agree with anyone else…

CUPS has two supported TLS backends, and it looks for openssl before gnutls.  
So I suggest adding a packageconfig for each of those, defaulting to openssl, 
and make them mutually exclusive.

Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#190480): 
https://lists.openembedded.org/g/openembedded-core/message/190480
Mute This Topic: https://lists.openembedded.org/mt/102550045/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to