Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libjwt: add gnutls support
@ 2024-02-03 17:58 Fabrice Fontaine
  2024-02-05 17:21 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2024-02-03 17:58 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

gnutls can be used if openssl is not available since the addition of the
package in commit 7251775773011e7da38e3a33c6817eceab6a9dfa

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/libjwt/Config.in |  2 +-
 package/libjwt/libjwt.mk | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/package/libjwt/Config.in b/package/libjwt/Config.in
index fa042d67ef..39d1665e0e 100644
--- a/package/libjwt/Config.in
+++ b/package/libjwt/Config.in
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBJWT
 	bool "libjwt"
-	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_OPENSSL if !BR2_PACKAGE_GNUTLS
 	select BR2_PACKAGE_JANSSON
 	help
 	  JSON Web Tokens are an open, industry standard RFC 7519
diff --git a/package/libjwt/libjwt.mk b/package/libjwt/libjwt.mk
index 6ae1717b7d..7e2ea03b09 100644
--- a/package/libjwt/libjwt.mk
+++ b/package/libjwt/libjwt.mk
@@ -6,10 +6,18 @@
 
 LIBJWT_VERSION = 1.15.3
 LIBJWT_SITE = $(call github,benmcollins,libjwt,v$(LIBJWT_VERSION))
-LIBJWT_DEPENDENCIES = host-pkgconf jansson openssl
+LIBJWT_DEPENDENCIES = host-pkgconf jansson
 LIBJWT_AUTORECONF = YES
 LIBJWT_INSTALL_STAGING = YES
 LIBJWT_LICENSE = MPL-2.0
 LIBJWT_LICENSE_FILES = LICENSE
 
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+LIBJWT_CONF_OPTS += --with-openssl
+LIBJWT_DEPENDENCIES += openssl
+else
+LIBJWT_CONF_OPTS += --without-openssl
+LIBJWT_DEPENDENCIES += gnutls
+endif
+
 $(eval $(autotools-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/libjwt: add gnutls support
  2024-02-03 17:58 [Buildroot] [PATCH 1/1] package/libjwt: add gnutls support Fabrice Fontaine
@ 2024-02-05 17:21 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2024-02-05 17:21 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > gnutls can be used if openssl is not available since the addition of the
 > package in commit 7251775773011e7da38e3a33c6817eceab6a9dfa

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-05 17:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-03 17:58 [Buildroot] [PATCH 1/1] package/libjwt: add gnutls support Fabrice Fontaine
2024-02-05 17:21 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox