From b0c6af9e76270a744ce4ed79158f95d719f1da01 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Fri, 29 Aug 2025 12:33:35 +0200 Subject: [PATCH] package/jszip: remove package Because the way JavaScript project development is working the chances that your project is using the same version of the buildroot package, and you provide this library from `/var/www` to your users is actually really low ... If you want to bundle JavaScript libraries in your project you should probably either use a cdn, handle the package version and location of your choice in your external or overlay, or just bundle it in your assets from a NPM workflow to benefit from some minifications from your bundler. Historically many of those JavaScript libraries were added in the 2010 eras where it could make sense for them to be part of Buildroot. Most of them are also way outdated/not maintained. For more informations see https://elinux.org/Buildroot:DeveloperDaysELCE2025 Signed-off-by: Thomas Perale Signed-off-by: Thomas Petazzoni --- Config.in.legacy | 6 ++++++ package/Config.in | 1 - package/jszip/Config.in | 7 ------- package/jszip/jszip.hash | 3 --- package/jszip/jszip.mk | 18 ------------------ 5 files changed, 6 insertions(+), 29 deletions(-) delete mode 100644 package/jszip/Config.in delete mode 100644 package/jszip/jszip.hash delete mode 100644 package/jszip/jszip.mk diff --git a/Config.in.legacy b/Config.in.legacy index b13d4bdad7..706f8b441f 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2026.02" +config BR2_PACKAGE_JSZIP + bool "jszip has been removed" + select BR2_LEGACY + help + JS libraries are no longer part of Buildroot packages. + config BR2_PACKAGE_JSON_JAVASCRIPT bool "json-javascript has been removed" select BR2_LEGACY diff --git a/package/Config.in b/package/Config.in index a15df179e5..a2a9f4a931 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1869,7 +1869,6 @@ endmenu menu "Javascript" source "package/duktape/Config.in" source "package/jsmin/Config.in" - source "package/jszip/Config.in" source "package/openlayers/Config.in" source "package/vis-network/Config.in" source "package/vuejs/Config.in" diff --git a/package/jszip/Config.in b/package/jszip/Config.in deleted file mode 100644 index 455891ab12..0000000000 --- a/package/jszip/Config.in +++ /dev/null @@ -1,7 +0,0 @@ -config BR2_PACKAGE_JSZIP - bool "jszip" - help - JSZip is a javascript library for creating, reading and - editing .zip files, with a lovely and simple API. - - https://stuk.github.io/jszip diff --git a/package/jszip/jszip.hash b/package/jszip/jszip.hash deleted file mode 100644 index e90e9cc68b..0000000000 --- a/package/jszip/jszip.hash +++ /dev/null @@ -1,3 +0,0 @@ -# Locally computed: -sha256 e873e5d0d8549c78c0eafcab8fba40f4a1e27c5a9d48f4a6b2eb122470d0d88c jszip-3.10.1.tar.gz -sha256 566c953c6090b1218ca6217dd7359d45dde46581968586dc607d59a78af6a9c4 LICENSE.markdown diff --git a/package/jszip/jszip.mk b/package/jszip/jszip.mk deleted file mode 100644 index f038263a77..0000000000 --- a/package/jszip/jszip.mk +++ /dev/null @@ -1,18 +0,0 @@ -################################################################################ -# -# jszip -# -################################################################################ - -JSZIP_VERSION = 3.10.1 -JSZIP_SITE = $(call github,Stuk,jszip,v$(JSZIP_VERSION)) -JSZIP_LICENSE = MIT or GPL-3.0 -JSZIP_LICENSE_FILES = LICENSE.markdown -JSZIP_CPE_ID_VALID = YES - -define JSZIP_INSTALL_TARGET_CMDS - $(INSTALL) -m 0644 -D $(@D)/dist/jszip.min.js \ - $(TARGET_DIR)/var/www/jszip/js/jszip.min.js -endef - -$(eval $(generic-package))