From c0524d385543496a4aafdabb9bd7a37c038c04b9 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Fri, 29 Aug 2025 12:33:36 +0200 Subject: [PATCH] package/openlayers: 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/openlayers/Config.in | 11 ----------- package/openlayers/openlayers.hash | 3 --- package/openlayers/openlayers.mk | 22 ---------------------- 6 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 package/openlayers/Config.in delete mode 100644 package/openlayers/openlayers.hash delete mode 100644 package/openlayers/openlayers.mk diff --git a/Config.in.legacy b/Config.in.legacy index 706f8b441f..d5f5e7b0f6 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2026.02" +config BR2_PACKAGE_OPENLAYERS + bool "openlayers has been removed" + select BR2_LEGACY + help + JS libraries are no longer part of Buildroot packages. + config BR2_PACKAGE_JSZIP bool "jszip has been removed" select BR2_LEGACY diff --git a/DEVELOPERS b/DEVELOPERS index 1fa34f8df6..2c8650d657 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3178,7 +3178,6 @@ F: configs/pine64_star64_defconfig N: Thomas Claveirole F: package/fcgiwrap/ -F: package/openlayers/ F: package/vuejs/ F: package/vuejs-router/ diff --git a/package/Config.in b/package/Config.in index a2a9f4a931..8e14ce6638 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1869,7 +1869,6 @@ endmenu menu "Javascript" source "package/duktape/Config.in" source "package/jsmin/Config.in" - source "package/openlayers/Config.in" source "package/vis-network/Config.in" source "package/vuejs/Config.in" if BR2_PACKAGE_VUEJS diff --git a/package/openlayers/Config.in b/package/openlayers/Config.in deleted file mode 100644 index a7b7f334cf..0000000000 --- a/package/openlayers/Config.in +++ /dev/null @@ -1,11 +0,0 @@ -config BR2_PACKAGE_OPENLAYERS - bool "openlayers" - help - OpenLayers makes it easy to put a dynamic map in any web - page. It can display map tiles, vector data and markers - loaded from any source. OpenLayers has been developed to - further the use of geographic information of all kinds. It - is completely free, Open Source JavaScript, released under - the 2-clause BSD License (also known as the FreeBSD). - - https://openlayers.org diff --git a/package/openlayers/openlayers.hash b/package/openlayers/openlayers.hash deleted file mode 100644 index 50f4dbe849..0000000000 --- a/package/openlayers/openlayers.hash +++ /dev/null @@ -1,3 +0,0 @@ -# Locally computed: -sha256 ff847580458b10c85dcb38699733368d67037f855fcb6a5fce46e6412737cf67 v10.5.0-package.zip -sha256 6c4347b83a8c9feef18d57b18e3b6c44cf901b3c344a4a1fbd837e421555ab8e LICENSE.md diff --git a/package/openlayers/openlayers.mk b/package/openlayers/openlayers.mk deleted file mode 100644 index e62ea35fd4..0000000000 --- a/package/openlayers/openlayers.mk +++ /dev/null @@ -1,22 +0,0 @@ -################################################################################ -# -# openlayers -# -################################################################################ - -OPENLAYERS_VERSION = 10.5.0 -OPENLAYERS_SOURCE = v$(OPENLAYERS_VERSION)-package.zip -OPENLAYERS_SITE = https://github.com/openlayers/openlayers/releases/download/v$(OPENLAYERS_VERSION) -OPENLAYERS_LICENSE = BSD-2-Clause -OPENLAYERS_LICENSE_FILES = LICENSE.md - -define OPENLAYERS_EXTRACT_CMDS - unzip $(OPENLAYERS_DL_DIR)/$(OPENLAYERS_SOURCE) -d $(@D) -endef - -define OPENLAYERS_INSTALL_TARGET_CMDS - $(INSTALL) -D -m 0644 $(@D)/ol.css $(TARGET_DIR)/var/www/ol.css - $(INSTALL) -D -m 0644 $(@D)/dist/ol.js $(TARGET_DIR)/var/www/ol.js -endef - -$(eval $(generic-package))