package/json-javascript: 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>
This commit is contained in:
Thomas Perale
2025-08-29 12:33:34 +02:00
committed by Thomas Petazzoni
parent 2865d87995
commit e5c61cd11e
6 changed files with 6 additions and 27 deletions

View File

@@ -146,6 +146,12 @@ endif
comment "Legacy options removed in 2026.02"
config BR2_PACKAGE_JSON_JAVASCRIPT
bool "json-javascript has been removed"
select BR2_LEGACY
help
JS libraries are no longer part of Buildroot packages.
config BR2_PACKAGE_JQUERY_VALIDATION
bool "jquery-validation has been removed"
select BR2_LEGACY

View File

@@ -3052,7 +3052,6 @@ F: package/czmq/
F: package/filemq/
F: package/googlefontdirectory/
F: package/jansson/
F: package/json-javascript/
F: package/lcdapi/
F: package/libfreefare/
F: package/libjson/

View File

@@ -1869,7 +1869,6 @@ endmenu
menu "Javascript"
source "package/duktape/Config.in"
source "package/jsmin/Config.in"
source "package/json-javascript/Config.in"
source "package/jszip/Config.in"
source "package/openlayers/Config.in"
source "package/vis-network/Config.in"

View File

@@ -1,6 +0,0 @@
config BR2_PACKAGE_JSON_JAVASCRIPT
bool "json-javascript"
help
JSON in JavaScript
https://github.com/douglascrockford/JSON-js/

View File

@@ -1,3 +0,0 @@
# Locally calculated
sha256 1a9dd4429e4bb4929dcb438f9591a3625bc8cc161f840b5f843d8b1d2c8dcfe5 json-javascript-3d7767b6b1f3da363c625ff54e63bbf20e9e83ac.tar.gz
sha256 925947d3d711c4441a9db20f51215fbf5c119d2a3b51cadb2c9031907d8014b5 json2.js

View File

@@ -1,16 +0,0 @@
################################################################################
#
# json-javascript
#
################################################################################
JSON_JAVASCRIPT_VERSION = 3d7767b6b1f3da363c625ff54e63bbf20e9e83ac
JSON_JAVASCRIPT_SITE = $(call github,douglascrockford,JSON-js,$(JSON_JAVASCRIPT_VERSION))
JSON_JAVASCRIPT_LICENSE = Public Domain
JSON_JAVASCRIPT_LICENSE_FILES = json2.js
define JSON_JAVASCRIPT_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/json2.js $(TARGET_DIR)/var/www/json2.js
endef
$(eval $(generic-package))