Browse Source

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 <thomas.perale@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Thomas Perale 4 months ago
parent
commit
b0c6af9e76
5 changed files with 6 additions and 29 deletions
  1. 6 0
      Config.in.legacy
  2. 0 1
      package/Config.in
  3. 0 7
      package/jszip/Config.in
  4. 0 3
      package/jszip/jszip.hash
  5. 0 18
      package/jszip/jszip.mk

+ 6 - 0
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

+ 0 - 1
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"

+ 0 - 7
package/jszip/Config.in

@@ -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

+ 0 - 3
package/jszip/jszip.hash

@@ -1,3 +0,0 @@
-# Locally computed:
-sha256  e873e5d0d8549c78c0eafcab8fba40f4a1e27c5a9d48f4a6b2eb122470d0d88c  jszip-3.10.1.tar.gz
-sha256  566c953c6090b1218ca6217dd7359d45dde46581968586dc607d59a78af6a9c4  LICENSE.markdown

+ 0 - 18
package/jszip/jszip.mk

@@ -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))