Skip to contentSkip to conversation

libnice: make crypto library configurable via PACKAGECONFIG

PATCH In review [email protected] 2 participants 2 messages Mar 11 – Mar 14

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libnice: make crypto library configurable via PACKAGECONFIG

From: Sujeet Nayak <[email protected]>

Move gnutls from a hard dependency to a PACKAGECONFIG option, defaulting to gnutls. This allows users to select openssl as an alternative crypto library by setting PACKAGECONFIG.

---
 meta-oe/recipes-support/libnice/libnice_0.1.22.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-support/libnice/libnice_0.1.22.bb +5 -1
index 175e10fdf6..5c5436dd8d 100644
@@ -11,7 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9c42325015702feda4f4d2f19a55b767 \
 SRC_URI = "http://nice.freedesktop.org/releases/${BP}.tar.gz"
 SRC_URI[sha256sum] = "a5f724cf09eae50c41a7517141d89da4a61ec9eaca32da4a0073faed5417ad7e"
 
-DEPENDS = "glib-2.0 gnutls ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'graphviz-native', '', d)}"
+DEPENDS = "glib-2.0 ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'graphviz-native', '', d)}"
+
+PACKAGECONFIG ??= "gnutls"
+PACKAGECONFIG[gnutls] = "-Dcrypto-library=gnutls,,gnutls"
+PACKAGECONFIG[openssl] = "-Dcrypto-library=openssl,,openssl"
 
 PACKAGECONFIG[gupnp] = "-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
 PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"
#1 lore raw

This doesn't seem to apply - could you please rebase this on the top of master branch?

Quoted 39 lines · On 3/11/26 00:10, sujeetnayak1976 via lists.openembedded.org wrote:

From: Sujeet Nayak <[email protected]>

Move gnutls from a hard dependency to a PACKAGECONFIG option, defaulting to gnutls. This allows users to select openssl as an alternative crypto library by setting PACKAGECONFIG.

---
 meta-oe/recipes-support/libnice/libnice_0.1.22.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
meta-oe/recipes-support/libnice/libnice_0.1.22.bb +5 -2
index 175e10fdf6..5c5436dd8d 100644
@@ -11,7 +11,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=9c42325015702feda4f4d2f19a55b767 \
 SRC_URI = "http://nice.freedesktop.org/releases/${BP}.tar.gz"
 SRC_URI[sha256sum] = "a5f724cf09eae50c41a7517141d89da4a61ec9eaca32da4a0073faed5417ad7e"
 
-DEPENDS = "glib-2.0 gnutls ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'graphviz-native', '', d)}"
+DEPENDS = "glib-2.0 ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'graphviz-native', '', d)}"
+
+PACKAGECONFIG ??= "gnutls"
+PACKAGECONFIG[gnutls] = "-Dcrypto-library=gnutls,,gnutls"
+PACKAGECONFIG[openssl] = "-Dcrypto-library=openssl,,openssl"
 
 PACKAGECONFIG[gupnp] = "-Dgupnp=enabled,-Dgupnp=disabled,gupnp"
 PACKAGECONFIG[gstreamer] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0"
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

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