Przeglądaj źródła

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 <thomas.perale@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Thomas Perale 4 miesięcy temu
rodzic
commit
7b6d47d788

+ 6 - 0
Config.in.legacy

@@ -146,6 +146,12 @@ endif
 
 
 comment "Legacy options removed in 2026.02"
 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
 config BR2_PACKAGE_SOFTETHER
 	bool "softether has been removed"
 	bool "softether has been removed"
 	select BR2_LEGACY
 	select BR2_LEGACY

+ 0 - 1
DEVELOPERS

@@ -3482,7 +3482,6 @@ F:	package/acl/
 F:	package/attr/
 F:	package/attr/
 F:	package/avrdude/
 F:	package/avrdude/
 F:	package/boost/
 F:	package/boost/
-F:	package/bootstrap/
 F:	package/cannelloni/
 F:	package/cannelloni/
 F:	package/can-utils/
 F:	package/can-utils/
 F:	package/circus/
 F:	package/circus/

+ 0 - 1
package/Config.in

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

+ 0 - 7
package/bootstrap/Config.in

@@ -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

+ 0 - 3
package/bootstrap/bootstrap.hash

@@ -1,3 +0,0 @@
-# Locally computed:
-sha256  888ffd30b7e192381e2f6a948ca04669fdcc2ccc2ba016de00d38c8e30793323  bootstrap-4.3.1-dist.zip
-sha256  35fbb6dc3891aacaf1ffa07abec2344fdbc454aab533a2a03bcf93577eb7837b  css/bootstrap.css

+ 0 - 28
package/bootstrap/bootstrap.mk

@@ -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))