Browse Source

package/flot: 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 tháng trước cách đây
mục cha
commit
de970ee783
5 tập tin đã thay đổi với 6 bổ sung135 xóa
  1. 6 0
      Config.in.legacy
  2. 0 1
      package/Config.in
  3. 0 97
      package/flot/Config.in
  4. 0 3
      package/flot/flot.hash
  5. 0 34
      package/flot/flot.mk

+ 6 - 0
Config.in.legacy

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

+ 0 - 1
package/Config.in

@@ -1868,7 +1868,6 @@ endmenu
 
 menu "Javascript"
 	source "package/duktape/Config.in"
-	source "package/flot/Config.in"
 	source "package/forge/Config.in"
 	source "package/jquery/Config.in"
 if BR2_PACKAGE_JQUERY

+ 0 - 97
package/flot/Config.in

@@ -1,97 +0,0 @@
-config BR2_PACKAGE_FLOT
-	bool "flot"
-	select BR2_PACKAGE_JQUERY
-	help
-	  Flot is a pure Javascript plotting library for jQuery. It
-	  produces graphical plots of arbitrary datasets on-the-fly
-	  client-side.
-
-	  The focus is on simple usage (all settings are optional),
-	  attractive looks and interactive features like zooming and
-	  mouse tracking.
-
-	  The plugin works with Internet Explorer 6+, Firefox 2.x+,
-	  Safari 3.0+, Opera 9.5+ and Konqueror 4.x+ with the HTML
-	  canvas tag.
-
-	  http://www.flotcharts.org/
-
-if BR2_PACKAGE_FLOT
-
-comment "flot plugins"
-
-config BR2_PACKAGE_FLOT_CANVAS
-	bool "canvas"
-	help
-	  Flot plugin to render axis tick labels directly to the canvas
-
-config BR2_PACKAGE_FLOT_CATEGORIES
-	bool "categories"
-	help
-	  Flot plugin for plotting textual data or categories
-
-config BR2_PACKAGE_FLOT_CROSSHAIR
-	bool "crosshair"
-	help
-	  Flot plugin for showing crosshairs when the mouse hovers
-	  over the plot
-
-config BR2_PACKAGE_FLOT_ERRORBARS
-	bool "errorbars"
-	help
-	  Flot plugin for plotting error bars
-
-config BR2_PACKAGE_FLOT_FILLBETWEEN
-	bool "fillbetween"
-	help
-	  Flot plugin for computing bottoms for filled line and bar
-	  charts
-
-config BR2_PACKAGE_FLOT_IMAGE
-	bool "image"
-	help
-	  Flot plugin for plotting images
-
-config BR2_PACKAGE_FLOT_NAVIGATE
-	bool "navigate"
-	help
-	  Flot plugin for adding panning and zooming capabilities to a
-	  plot
-
-config BR2_PACKAGE_FLOT_PIE
-	bool "pie"
-	help
-	  Flot plugin for rendering pie charts
-
-config BR2_PACKAGE_FLOT_RESIZE
-	bool "resize"
-	help
-	  Flot plugin for automatically redrawing plots when the
-	  placeholder size changes.
-
-config BR2_PACKAGE_FLOT_SELECTION
-	bool "selection"
-	help
-	  Flot plugin for selecting regions
-
-config BR2_PACKAGE_FLOT_STACK
-	bool "stack"
-	help
-	  Flot plugin for stacking data sets
-
-config BR2_PACKAGE_FLOT_SYMBOL
-	bool "symbol"
-	help
-	  Flot plugin that adds some extra symbols for plotting points
-
-config BR2_PACKAGE_FLOT_THRESHOLD
-	bool "threshold"
-	help
-	  Flot plugin for thresholding data
-
-config BR2_PACKAGE_FLOT_TIME
-	bool "time"
-	help
-	  Flot plugin for handling time axes
-
-endif

+ 0 - 3
package/flot/flot.hash

@@ -1,3 +0,0 @@
-# Locally calculated
-sha256  ef9a873befe3ff5ea42ebf1c3657887265a1717744ca8ed0c2bd3dd736d16b21  flot-0.8.3.tar.gz
-sha256  52cb566b16d84314b92b91361ed072eaaf166e8d3dfa3d0fd3577613925f205c  LICENSE.txt

+ 0 - 34
package/flot/flot.mk

@@ -1,34 +0,0 @@
-################################################################################
-#
-# flot
-#
-################################################################################
-
-FLOT_VERSION = 0.8.3
-FLOT_SITE = http://www.flotcharts.org/downloads
-FLOT_LICENSE = MIT
-FLOT_LICENSE_FILES = LICENSE.txt
-FLOT_FILES = jquery.flot $(addprefix jquery.flot.,\
-	$(if $(BR2_PACKAGE_FLOT_CANVAS),canvas) \
-	$(if $(BR2_PACKAGE_FLOT_CATEGORIES),categories) \
-	$(if $(BR2_PACKAGE_FLOT_CROSSHAIR),crosshair) \
-	$(if $(BR2_PACKAGE_FLOT_ERRORBARS),errorbars) \
-	$(if $(BR2_PACKAGE_FLOT_FILLBETWEEN),fillbetween) \
-	$(if $(BR2_PACKAGE_FLOT_IMAGE),image) \
-	$(if $(BR2_PACKAGE_FLOT_NAVIGATE),navigate) \
-	$(if $(BR2_PACKAGE_FLOT_PIE),pie) \
-	$(if $(BR2_PACKAGE_FLOT_RESIZE),resize) \
-	$(if $(BR2_PACKAGE_FLOT_SELECTION),selection) \
-	$(if $(BR2_PACKAGE_FLOT_STACK),stack) \
-	$(if $(BR2_PACKAGE_FLOT_SYMBOL),symbol) \
-	$(if $(BR2_PACKAGE_FLOT_THRESHOLD),threshold) \
-	$(if $(BR2_PACKAGE_FLOT_TIME),time) \
-	)
-
-define FLOT_INSTALL_TARGET_CMDS
-	for i in $(FLOT_FILES); do \
-		$(INSTALL) -m 0644 -D $(@D)/$$i.min.js $(TARGET_DIR)/var/www/$$i.js || exit 1; \
-	done
-endef
-
-$(eval $(generic-package))