瀏覽代碼

package/chartjs: 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 月之前
父節點
當前提交
5dd516ac69
共有 5 個文件被更改,包括 6 次插入31 次删除
  1. 6 0
      Config.in.legacy
  2. 0 1
      package/Config.in
  3. 0 7
      package/chartjs/Config.in
  4. 0 3
      package/chartjs/chartjs.hash
  5. 0 20
      package/chartjs/chartjs.mk

+ 6 - 0
Config.in.legacy

@@ -146,6 +146,12 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_CHARTJS
+	bool "chartjs has been removed"
+	select BR2_LEGACY
+	help
+	  JS libraries are no longer part of Buildroot packages.
+
 config BR2_PACKAGE_BOOTSTRAP
 	bool "bootstrap has been removed"
 	select BR2_LEGACY

+ 0 - 1
package/Config.in

@@ -1867,7 +1867,6 @@ menu "Hardware handling"
 endmenu
 
 menu "Javascript"
-	source "package/chartjs/Config.in"
 	source "package/datatables/Config.in"
 	source "package/datatables-buttons/Config.in"
 	source "package/datatables-fixedcolumns/Config.in"

+ 0 - 7
package/chartjs/Config.in

@@ -1,7 +0,0 @@
-config BR2_PACKAGE_CHARTJS
-	bool "chartjs"
-	help
-	  Chart.js, a simple yet flexible JavaScript charting library
-	  for designers & developers
-
-	  https://www.chartjs.org/

+ 0 - 3
package/chartjs/chartjs.hash

@@ -1,3 +0,0 @@
-# Locally computed:
-sha256  111e0751796f087a51e94dfed910ccfb1278fd30e584a6e48514dba9ae7e72c6  chart.js-3.9.1.tgz
-sha256  5a0877ad6d818529be4f33009d0942cdf7e2ed7656156f4aba7308459a546030  LICENSE.md

+ 0 - 20
package/chartjs/chartjs.mk

@@ -1,20 +0,0 @@
-################################################################################
-#
-# chartjs
-#
-################################################################################
-
-CHARTJS_VERSION = 3.9.1
-CHARTJS_SITE = https://registry.npmjs.org/chart.js/-
-CHARTJS_SOURCE = chart.js-$(CHARTJS_VERSION).tgz
-CHARTJS_LICENSE = MIT
-CHARTJS_LICENSE_FILES = LICENSE.md
-CHARTJS_CPE_ID_VENDOR = chartjs
-CHARTJS_CPE_ID_PRODUCT = chart.js
-
-define CHARTJS_INSTALL_TARGET_CMDS
-	$(INSTALL) -m 0644 -D $(@D)/dist/chart.min.js \
-		$(TARGET_DIR)/var/www/chartjs/js/Chart.js
-endef
-
-$(eval $(generic-package))