From d7865718235f9bbe4c52f26a547327f04b4153db Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Fri, 29 Aug 2025 12:33:37 +0200 Subject: [PATCH] package/vis-network: 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 ++++++ DEVELOPERS | 1 - package/Config.in | 1 - package/vis-network/Config.in | 7 ------- package/vis-network/vis-network.hash | 4 ---- package/vis-network/vis-network.mk | 21 --------------------- 6 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 package/vis-network/Config.in delete mode 100644 package/vis-network/vis-network.hash delete mode 100644 package/vis-network/vis-network.mk diff --git a/Config.in.legacy b/Config.in.legacy index d5f5e7b0f6..b12fa51cb2 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2026.02" +config BR2_PACKAGE_VIS_NETWORK + bool "vis-network has been removed" + select BR2_LEGACY + help + JS libraries are no longer part of Buildroot packages. + config BR2_PACKAGE_OPENLAYERS bool "openlayers has been removed" select BR2_LEGACY diff --git a/DEVELOPERS b/DEVELOPERS index 2c8650d657..8a7db1b921 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1713,7 +1713,6 @@ F: package/erlang-p1-zlib/ F: package/erlang-stun/ F: package/erlang-xmpp/ F: package/nginx-dav-ext/ -F: package/vis-network/ F: package/vuejs/ N: John Stile diff --git a/package/Config.in b/package/Config.in index 8e14ce6638..0620ce1602 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/vis-network/Config.in" source "package/vuejs/Config.in" if BR2_PACKAGE_VUEJS comment "External Vue.js plugins" diff --git a/package/vis-network/Config.in b/package/vis-network/Config.in deleted file mode 100644 index 39e8ac54c5..0000000000 --- a/package/vis-network/Config.in +++ /dev/null @@ -1,7 +0,0 @@ -config BR2_PACKAGE_VIS_NETWORK - bool "vis-network" - help - Display dynamic, automatically organised, customizable network - views. Network uses HTML canvas for rendering. - - http://visjs.github.io/vis-network/ diff --git a/package/vis-network/vis-network.hash b/package/vis-network/vis-network.hash deleted file mode 100644 index 56f141f5f7..0000000000 --- a/package/vis-network/vis-network.hash +++ /dev/null @@ -1,4 +0,0 @@ -# Locally computed -sha256 a9f7325cbe28147318476c63f09c1d5c894d2239bfa4b4dd2dfb3dbebb0705d3 vis-network-9.1.0.tgz -sha256 1509904280a272780fd69c04b858f512cf216f8e3464a0dd98d8f34416feced9 LICENSE-APACHE-2.0 -sha256 1f65085e54c036645082257618db2c7b787e68c3b02485e214ecd09e0834ee8f LICENSE-MIT diff --git a/package/vis-network/vis-network.mk b/package/vis-network/vis-network.mk deleted file mode 100644 index 4a8def37e0..0000000000 --- a/package/vis-network/vis-network.mk +++ /dev/null @@ -1,21 +0,0 @@ -################################################################################ -# -# vis-network -# -################################################################################ - -VIS_NETWORK_VERSION = 9.1.0 -VIS_NETWORK_SOURCE = vis-network-$(VIS_NETWORK_VERSION).tgz -VIS_NETWORK_SITE = https://registry.npmjs.org/vis-network/- -VIS_NETWORK_LICENSE = Apache-2.0 or MIT -VIS_NETWORK_LICENSE_FILES = LICENSE-APACHE-2.0 LICENSE-MIT - -# Install .min.js and .min.css as .js and .css, respectively. -define VIS_NETWORK_INSTALL_TARGET_CMDS - $(INSTALL) -m 644 -D $(@D)/dist/vis-network.min.js \ - $(TARGET_DIR)/var/www/vis-network.js - $(INSTALL) -m 644 -D $(@D)/dist/dist/vis-network.min.css \ - $(TARGET_DIR)/var/www/vis-network.css -endef - -$(eval $(generic-package))