package/datatables{, -buttons, -fixedcolumns, -responsive}: 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:29 +02:00
committed by Thomas Petazzoni
parent 5dd516ac69
commit 87be409ee1
14 changed files with 24 additions and 157 deletions

View File

@@ -146,6 +146,30 @@ endif
comment "Legacy options removed in 2026.02"
config BR2_PACKAGE_DATATABLES_RESPONSIVE
bool "datatables-responsive has been removed"
select BR2_LEGACY
help
JS libraries are no longer part of Buildroot packages.
config BR2_PACKAGE_DATATABLES_FIXEDCOLUMNS
bool "datatables-fixedcolumns has been removed"
select BR2_LEGACY
help
JS libraries are no longer part of Buildroot packages.
config BR2_PACKAGE_DATATABLES_BUTTONS
bool "datatables-buttons has been removed"
select BR2_LEGACY
help
JS libraries are no longer part of Buildroot packages.
config BR2_PACKAGE_DATATABLES
bool "datatables has been removed"
select BR2_LEGACY
help
JS libraries are no longer part of Buildroot packages.
config BR2_PACKAGE_CHARTJS
bool "chartjs has been removed"
select BR2_LEGACY

View File

@@ -1867,10 +1867,6 @@ menu "Hardware handling"
endmenu
menu "Javascript"
source "package/datatables/Config.in"
source "package/datatables-buttons/Config.in"
source "package/datatables-fixedcolumns/Config.in"
source "package/datatables-responsive/Config.in"
source "package/duktape/Config.in"
source "package/explorercanvas/Config.in"
source "package/flot/Config.in"

View File

@@ -1,12 +0,0 @@
config BR2_PACKAGE_DATATABLES_BUTTONS
bool "datatables-buttons"
depends on BR2_PACKAGE_DATATABLES
select BR2_PACKAGE_JSZIP
help
The Buttons library for DataTables provides a framework with
common options and API that can be used with DataTables, but
is also very extensible, recognising that you will likely want
to use buttons which perform an action unique to your
applications.
https://datatables.net/extensions/buttons

View File

@@ -1,3 +0,0 @@
# Locally computed:
sha256 427632c0245f488328edab83b53294545744c8de621a5eaa9dd3d257d7ed7775 Buttons-1.6.1.zip
sha256 21fa7cbc3c00bcad1e0f3417d465e702bd470d7dc446a6deff80c8fc5eda9148 License.txt

View File

@@ -1,25 +0,0 @@
################################################################################
#
# datatables-buttons
#
################################################################################
DATATABLES_BUTTONS_VERSION = 1.6.1
DATATABLES_BUTTONS_SITE = https://datatables.net/releases
DATATABLES_BUTTONS_SOURCE = Buttons-$(DATATABLES_BUTTONS_VERSION).zip
DATATABLES_BUTTONS_LICENSE = MIT
DATATABLES_BUTTONS_LICENSE_FILES = License.txt
define DATATABLES_BUTTONS_EXTRACT_CMDS
$(UNZIP) $(DATATABLES_BUTTONS_DL_DIR)/$(DATATABLES_BUTTONS_SOURCE) -d $(@D)
mv $(@D)/Buttons-$(DATATABLES_BUTTONS_VERSION)/* $(@D)
rmdir $(@D)/Buttons-$(DATATABLES_BUTTONS_VERSION)
endef
define DATATABLES_BUTTONS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-buttons/css $(TARGET_DIR)/var/www/datatables-buttons/js
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-buttons/css $(@D)/css/*.min.css
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-buttons/js $(@D)/js/*.min.js
endef
$(eval $(generic-package))

View File

@@ -1,10 +0,0 @@
config BR2_PACKAGE_DATATABLES_FIXEDCOLUMNS
bool "datatables-fixedcolumns"
depends on BR2_PACKAGE_DATATABLES
help
When making use of DataTables' x-axis scrolling feature
(scrollX), you may wish to fix the left or right most columns
in place. This extension for DataTables provides exactly this
option.
https://datatables.net/extensions/fixedcolumns

View File

@@ -1,3 +0,0 @@
# Locally computed:
sha256 53a7b20ea9dbb6498137cb7260bde8605989ec578e4b71787f5ebc4ef9910bd9 FixedColumns-3.3.0.zip
sha256 e8e92f97216f9ea00cb2735b933a91ec8e3869bed37b6d63a90f76f41508f2de License.txt

View File

@@ -1,25 +0,0 @@
################################################################################
#
# datatables-fixedcolumns
#
################################################################################
DATATABLES_FIXEDCOLUMNS_VERSION = 3.3.0
DATATABLES_FIXEDCOLUMNS_SITE = https://datatables.net/releases
DATATABLES_FIXEDCOLUMNS_SOURCE = FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION).zip
DATATABLES_FIXEDCOLUMNS_LICENSE = MIT
DATATABLES_FIXEDCOLUMNS_LICENSE_FILES = License.txt
define DATATABLES_FIXEDCOLUMNS_EXTRACT_CMDS
$(UNZIP) $(DATATABLES_FIXEDCOLUMNS_DL_DIR)/$(DATATABLES_FIXEDCOLUMNS_SOURCE) -d $(@D)
mv $(@D)/FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION)/* $(@D)
rmdir $(@D)/FixedColumns-$(DATATABLES_FIXEDCOLUMNS_VERSION)
endef
define DATATABLES_FIXEDCOLUMNS_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-fixedcolumns/css $(TARGET_DIR)/var/www/datatables-fixedcolumns/js
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-fixedcolumns/css $(@D)/css/*.min.css
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-fixedcolumns/js $(@D)/js/*.min.js
endef
$(eval $(generic-package))

View File

@@ -1,12 +0,0 @@
config BR2_PACKAGE_DATATABLES_RESPONSIVE
bool "datatables-responsive"
depends on BR2_PACKAGE_DATATABLES
help
In the modern world of responsive web design tables can often
cause a particular problem for designers due to their row
based layout. Responsive is an extension for DataTables that
resolves that problem by optimising the table's layout for
different screen sizes through the dynamic insertion and
removal of columns from the table.
https://datatables.net/extensions/responsive

View File

@@ -1,3 +0,0 @@
# Locally computed:
sha256 47caf3b753dd2c537b8834816eaf38c4df214cb4e6a97144e0de4cf82ad24d02 Responsive-2.2.3.zip
sha256 da4e1020ae97c095a14d7830c1a8a793e080c062e22d749ecd3fc3c075673dbf License.txt

View File

@@ -1,25 +0,0 @@
################################################################################
#
# datatables-responsive
#
################################################################################
DATATABLES_RESPONSIVE_VERSION = 2.2.3
DATATABLES_RESPONSIVE_SITE = https://datatables.net/releases
DATATABLES_RESPONSIVE_SOURCE = Responsive-$(DATATABLES_RESPONSIVE_VERSION).zip
DATATABLES_RESPONSIVE_LICENSE = MIT
DATATABLES_RESPONSIVE_LICENSE_FILES = License.txt
define DATATABLES_RESPONSIVE_EXTRACT_CMDS
$(UNZIP) $(DATATABLES_RESPONSIVE_DL_DIR)/$(DATATABLES_RESPONSIVE_SOURCE) -d $(@D)
mv $(@D)/Responsive-$(DATATABLES_RESPONSIVE_VERSION)/* $(@D)
rmdir $(@D)/Responsive-$(DATATABLES_RESPONSIVE_VERSION)
endef
define DATATABLES_RESPONSIVE_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables-responsive/css $(TARGET_DIR)/var/www/datatables-responsive/js
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-responsive/css $(@D)/css/*.min.css
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables-responsive/js $(@D)/js/*.min.js
endef
$(eval $(generic-package))

View File

@@ -1,7 +0,0 @@
config BR2_PACKAGE_DATATABLES
bool "datatables"
help
Javascript library providing advanced interaction controls
for your HTML tables.
https://datatables.net

View File

@@ -1,3 +0,0 @@
# Locally computed:
sha256 e2c79dd9d02caa04130ce888061bc922e18561e72e842ba0cb657d1812d9f1bf DataTables-1.10.20.zip
sha256 c6a873f21550ed804f76013c36e14225704c1aa551fdb870e0c626eb91c19247 license.txt

View File

@@ -1,25 +0,0 @@
################################################################################
#
# datatables
#
################################################################################
DATATABLES_VERSION = 1.10.20
DATATABLES_SITE = https://datatables.net/releases
DATATABLES_SOURCE = DataTables-$(DATATABLES_VERSION).zip
DATATABLES_LICENSE = MIT
DATATABLES_LICENSE_FILES = license.txt
define DATATABLES_EXTRACT_CMDS
$(UNZIP) $(DATATABLES_DL_DIR)/$(DATATABLES_SOURCE) -d $(@D)
mv $(@D)/DataTables-$(DATATABLES_VERSION)/* $(@D)
rmdir $(@D)/DataTables-$(DATATABLES_VERSION)
endef
define DATATABLES_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -d $(TARGET_DIR)/var/www/datatables/css $(TARGET_DIR)/var/www/datatables/js
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables/css $(@D)/media/css/*.min.css
$(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/datatables/js $(@D)/media/js/*.min.js
endef
$(eval $(generic-package))