diff mbox series

[2/3] package/libjwt: remove package

Message ID 20251003135530.371676-2-bernd@kuhls.net
State Superseded
Headers show
Series [1/3] package/asterisk: fix build caused by libjwt bump | expand

Commit Message

Bernd Kuhls Oct. 3, 2025, 1:55 p.m. UTC
In commit 770f9154978c40ce5b7718174108b37c5310869d, libjwt was bumped
from 1.17.2 to 3.2.0, which is a big bump. And the libjwt website
states "Version 3 of LibJWT is a complete overhaul of the code. Please
see documentation for usage."

And indeed, this version bump breaks the build of Asterisk. Therefore
asterisk uses its bundled version of libjwt now and this package can be
removed as no other package depends on it.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Waldemar agreed to remove the libjwt package:
https://patchwork.ozlabs.org/comment/3570243/

 Config.in.legacy           |  8 ++++++++
 DEVELOPERS                 |  1 -
 package/Config.in          |  1 -
 package/libjwt/Config.in   | 10 ----------
 package/libjwt/libjwt.hash |  3 ---
 package/libjwt/libjwt.mk   | 19 -------------------
 6 files changed, 8 insertions(+), 34 deletions(-)
 delete mode 100644 package/libjwt/Config.in
 delete mode 100644 package/libjwt/libjwt.hash
 delete mode 100644 package/libjwt/libjwt.mk
diff mbox series

Patch

diff --git a/Config.in.legacy b/Config.in.legacy
index 277d2b8b2a..adbcf0eaa3 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -146,6 +146,14 @@  endif
 
 comment "Legacy options removed in 2025.11"
 
+config BR2_PACKAGE_LIBJWT
+	bool "libjwt has been removed"
+	select BR2_LEGACY
+	help
+	  The only dependee of libjwt, asterisk, is incompatible with
+	  version 3 so the version bundled with asterisk is used and
+	  this package can be removed.
+
 config BR2_TARGET_ROOTFS_AXFS
 	bool "AXFS root filesystem has been removed"
 	select BR2_LEGACY
diff --git a/DEVELOPERS b/DEVELOPERS
index 3e8bfd69d6..c2c867263a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3401,7 +3401,6 @@  F:	configs/stm32f746_disco_sd_defconfig
 F:	package/asterisk/
 F:	package/evilwm/
 F:	package/fbv/
-F:	package/libjwt/
 F:	package/mksh/
 F:	package/ruby/
 F:	package/uclibc/
diff --git a/package/Config.in b/package/Config.in
index 65e358e1e9..a88f254be5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1925,7 +1925,6 @@  menu "JSON/XML"
 	source "package/libbson/Config.in"
 	source "package/libfastjson/Config.in"
 	source "package/libjson/Config.in"
-	source "package/libjwt/Config.in"
 	source "package/libroxml/Config.in"
 	source "package/libucl/Config.in"
 	source "package/libxml2/Config.in"
diff --git a/package/libjwt/Config.in b/package/libjwt/Config.in
deleted file mode 100644
index 47eb0882a3..0000000000
--- a/package/libjwt/Config.in
+++ /dev/null
@@ -1,10 +0,0 @@ 
-config BR2_PACKAGE_LIBJWT
-	bool "libjwt"
-	select BR2_PACKAGE_OPENSSL
-	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
-	select BR2_PACKAGE_JANSSON
-	help
-	  JSON Web Tokens are an open, industry standard RFC 7519
-	  method for representing claims securely between two parties.
-
-	  https://github.com/benmcollins/libjwt
diff --git a/package/libjwt/libjwt.hash b/package/libjwt/libjwt.hash
deleted file mode 100644
index 8e59d2284b..0000000000
--- a/package/libjwt/libjwt.hash
+++ /dev/null
@@ -1,3 +0,0 @@ 
-# Locally computed
-sha256  17ee4e25adfbb91003946af967ff04068a5c93d6b51ad7ad892f1441736b71b9  libjwt-3.2.0.tar.xz
-sha256  3f3d9e0024b1921b067d6f7f88deb4a60cbe7a78e76c64e3f1d7fc3b779b9d04  LICENSE
diff --git a/package/libjwt/libjwt.mk b/package/libjwt/libjwt.mk
deleted file mode 100644
index d20067de24..0000000000
--- a/package/libjwt/libjwt.mk
+++ /dev/null
@@ -1,19 +0,0 @@ 
-################################################################################
-#
-# libjwt
-#
-################################################################################
-
-LIBJWT_VERSION = 3.2.0
-LIBJWT_SITE = https://github.com/benmcollins/libjwt/releases/download/v$(LIBJWT_VERSION)
-LIBJWT_SOURCE = libjwt-$(LIBJWT_VERSION).tar.xz
-LIBJWT_DEPENDENCIES = host-pkgconf jansson openssl
-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 += -DWITH_TESTS=OFF -DWITH_GNUTLS=OFF
-
-$(eval $(cmake-package))