From 7b6d47d78889cf825d489ae6feaed2d82fc2a1ed Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Fri, 29 Aug 2025 12:33:27 +0200 Subject: [PATCH] package/bootstrap: 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/bootstrap/Config.in | 7 ------- package/bootstrap/bootstrap.hash | 3 --- package/bootstrap/bootstrap.mk | 28 ---------------------------- 6 files changed, 6 insertions(+), 40 deletions(-) delete mode 100644 package/bootstrap/Config.in delete mode 100644 package/bootstrap/bootstrap.hash delete mode 100644 package/bootstrap/bootstrap.mk diff --git a/Config.in.legacy b/Config.in.legacy index 10c35610b9..b380f256af 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2026.02" +config BR2_PACKAGE_BOOTSTRAP + bool "bootstrap has been removed" + select BR2_LEGACY + help + JS libraries are no longer part of Buildroot packages. + config BR2_PACKAGE_SOFTETHER bool "softether has been removed" select BR2_LEGACY diff --git a/DEVELOPERS b/DEVELOPERS index 718bb7ecf2..bc5f1aa7af 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3482,7 +3482,6 @@ F: package/acl/ F: package/attr/ F: package/avrdude/ F: package/boost/ -F: package/bootstrap/ F: package/cannelloni/ F: package/can-utils/ F: package/circus/ diff --git a/package/Config.in b/package/Config.in index 500725d1d4..86e82960a7 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1867,7 +1867,6 @@ menu "Hardware handling" endmenu menu "Javascript" - source "package/bootstrap/Config.in" source "package/chartjs/Config.in" source "package/datatables/Config.in" source "package/datatables-buttons/Config.in" diff --git a/package/bootstrap/Config.in b/package/bootstrap/Config.in deleted file mode 100644 index 743d8a324a..0000000000 --- a/package/bootstrap/Config.in +++ /dev/null @@ -1,7 +0,0 @@ -config BR2_PACKAGE_BOOTSTRAP - bool "bootstrap" - help - Bootstrap is the most popular HTML, CSS, and JS framework - for developing responsive, mobile first projects on the web. - - http://getbootstrap.com diff --git a/package/bootstrap/bootstrap.hash b/package/bootstrap/bootstrap.hash deleted file mode 100644 index a9602f7e49..0000000000 --- a/package/bootstrap/bootstrap.hash +++ /dev/null @@ -1,3 +0,0 @@ -# Locally computed: -sha256 888ffd30b7e192381e2f6a948ca04669fdcc2ccc2ba016de00d38c8e30793323 bootstrap-4.3.1-dist.zip -sha256 35fbb6dc3891aacaf1ffa07abec2344fdbc454aab533a2a03bcf93577eb7837b css/bootstrap.css diff --git a/package/bootstrap/bootstrap.mk b/package/bootstrap/bootstrap.mk deleted file mode 100644 index eba1244ad3..0000000000 --- a/package/bootstrap/bootstrap.mk +++ /dev/null @@ -1,28 +0,0 @@ -################################################################################ -# -# bootstrap -# -################################################################################ - -BOOTSTRAP_VERSION = 4.3.1 -BOOTSTRAP_SITE = https://github.com/twbs/bootstrap/releases/download/v$(BOOTSTRAP_VERSION) -BOOTSTRAP_SOURCE = bootstrap-$(BOOTSTRAP_VERSION)-dist.zip -BOOTSTRAP_LICENSE = MIT -BOOTSTRAP_LICENSE_FILES = css/bootstrap.css -BOOTSTRAP_CPE_ID_VENDOR = getbootstrap - -define BOOTSTRAP_EXTRACT_CMDS - $(UNZIP) $(BOOTSTRAP_DL_DIR)/$(BOOTSTRAP_SOURCE) -d $(@D) - mv $(@D)/bootstrap-$(BOOTSTRAP_VERSION)-dist/* $(@D) -endef - -define BOOTSTRAP_INSTALL_TARGET_CMDS - $(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css \ - $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css - $(INSTALL) -m 0644 -D $(@D)/css/bootstrap.min.css.map \ - $(TARGET_DIR)/var/www/bootstrap/css/bootstrap.min.css.map - $(INSTALL) -m 0644 -D $(@D)/js/bootstrap.min.js \ - $(TARGET_DIR)/var/www/bootstrap/js/bootstrap.min.js -endef - -$(eval $(generic-package))