Skip to contentSkip to conversation

package/libjwt: update to 3.2.0

PATCH Applied Waldemar Brodkorb 2 participants 2 messages Feb 20, 2025 – Apr 2, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libjwt: update to 3.2.0

For a complete changelog see here:
https://github.com/benmcollins/libjwt/compare/v1.17.2...v3.2.0

Convert to cmake infrastructure as autotools were removed upstream.

---
 package/libjwt/libjwt.hash |  2 +-
 package/libjwt/libjwt.mk   | 14 ++++++++------
 2 files changed, 9 insertions(+), 7 deletions(-)
package/libjwt/libjwt.hash +1 -1
index 0049772a78..8e59d2284b 100644
@@ -1,3 +1,3 @@
 # Locally computed
-sha256  f11c4544f61a31f105720b8329409fea009d6f9ef41c9361f98c2de48152eeae  libjwt-1.17.2.tar.bz2
+sha256  17ee4e25adfbb91003946af967ff04068a5c93d6b51ad7ad892f1441736b71b9  libjwt-3.2.0.tar.xz
 sha256  3f3d9e0024b1921b067d6f7f88deb4a60cbe7a78e76c64e3f1d7fc3b779b9d04  LICENSE
package/libjwt/libjwt.mk +8 -6
index 9f94c8683e..4a02792bfa 100644
@@ -4,23 +4,25 @@
 #
 ################################################################################
 
-LIBJWT_VERSION = 1.17.2
+LIBJWT_VERSION = 3.2.0
 LIBJWT_SITE = https://github.com/benmcollins/libjwt/releases/download/v$(LIBJWT_VERSION)
-LIBJWT_SOURCE = libjwt-$(LIBJWT_VERSION).tar.bz2
+LIBJWT_SOURCE = libjwt-$(LIBJWT_VERSION).tar.xz
 LIBJWT_DEPENDENCIES = host-pkgconf jansson
 LIBJWT_INSTALL_STAGING = YES
 LIBJWT_LICENSE = MPL-2.0
 LIBJWT_LICENSE_FILES = LICENSE
 LIBJWT_CPE_ID_VENDOR = bencollins
 LIBJWT_CPE_ID_PRODUCT = jwt_c_library
-LIBJWT_CONF_OPTS = --without-examples
+
+LIBJWT_CONF_OPTS += -DWITH_TESTS=OFF
 
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
-LIBJWT_CONF_OPTS += --with-openssl
+LIBJWT_CONF_OPTS += -DWITH_OPENSSL=ON
 LIBJWT_DEPENDENCIES += openssl
 else
-LIBJWT_CONF_OPTS += --without-openssl
+LIBJWT_CONF_OPTS += -DWITH_GNUTLS=ON
 LIBJWT_DEPENDENCIES += gnutls
 endif
 
-$(eval $(autotools-package))
+
+$(eval $(cmake-package))
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · Waldemar Brodkorb

For a complete changelog see here:
https://github.com/benmcollins/libjwt/compare/v1.17.2...v3.2.0

Convert to cmake infrastructure as autotools were removed upstream.

 Applied to master, thanks.

[snip]

package/libjwt/libjwt.mk line 27

Quoted 12 lines
  ifeq ($(BR2_PACKAGE_OPENSSL),y)
package/libjwt/libjwt.mk +3 -3
-LIBJWT_CONF_OPTS += --with-openssl
+LIBJWT_CONF_OPTS += -DWITH_OPENSSL=ON
  LIBJWT_DEPENDENCIES += openssl
  else
-LIBJWT_CONF_OPTS += --without-openssl
+LIBJWT_CONF_OPTS += -DWITH_GNUTLS=ON
  LIBJWT_DEPENDENCIES += gnutls
  endif
 
-$(eval $(autotools-package))
+

 You introduced a double empty line here. I fixed that.

 Regards,
 Arnout

Quoted 1 line

+$(eval $(cmake-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot