[Buildroot] [git commit branch/2025.02.x] package/argparse: remove package

Titouan Christophe via buildroot <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/1a7c4e86d98c762448a5c682e6700fe50bb6ae6c
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/2025.02.x

Duplicate of lua-argparse.

Note: the argparse package was introduced in Buildroot commit [1].
lua-argparse was introduced in [2]. For consistency with other Lua
packages which has the "lua-" prefix, this commit removes the package
without the prefix.

[1] https://gitlab.com/buildroot.org/buildroot/-/commit/169d1632d59bc0ddf32e5e5b538c8f5099467064
[2] https://gitlab.com/buildroot.org/buildroot/-/commit/e70abe9716109068b7c9176dced5396719f64c24

Signed-off-by: Francois Perrad <[email protected]>
Signed-off-by: Julien Olivain <[email protected]>
(cherry picked from commit 59f9c25d705aaadeb36db42320ff25b04ddbaf22)
Signed-off-by: Titouan Christophe <[email protected]>
---
 Config.in.legacy               |  9 +++++++++
 DEVELOPERS                     |  2 +-
 package/Config.in              |  1 -
 package/argparse/Config.in     | 10 ----------
 package/argparse/argparse.hash |  3 ---
 package/argparse/argparse.mk   | 11 -----------
 6 files changed, 10 insertions(+), 26 deletions(-)

diff --git a/Config.in.legacy b/Config.in.legacy
index bddafc66ce..5512bf1ec3 100644
--- a/Config.in.legacy
+++ b/Config.in.legacy
@@ -144,6 +144,15 @@ endif
 
 ###############################################################################
 
+comment "Legacy options removed in 2025.02.17"
+
+config BR2_PACKAGE_ARGPARSE
+	bool "argparse has been removed"
+	select BR2_LEGACY
+	select BR2_PACKAGE_LUA_ARGPARSE
+	help
+	  Package argparse duplicates the package lua-argparse.
+
 comment "Legacy options removed in 2025.02.12"
 
 config BR2_PACKAGE_QEMU_TARGET_CRIS
diff --git a/DEVELOPERS b/DEVELOPERS
index 918b9c7d86..f135f2c2f7 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2169,10 +2169,10 @@ F:	board/orangepi/orangepi-zero3/
 F:	configs/grinn_*
 F:	configs/orangepi_zero_plus_defconfig
 F:	configs/orangepi_zero3_defconfig
-F:	package/argparse/
 F:	package/dt-utils/
 F:	package/easydbus/
 F:	package/gitlab-runner/
+F:	package/lua-argparse/
 F:	package/lua-flu/
 F:	package/lua-stdlib/
 F:	package/luaossl/
diff --git a/package/Config.in b/package/Config.in
index 64225c03c8..f9ee0dca89 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -704,7 +704,6 @@ menu "Lua libraries/modules"
 # upstream package is "luafoo", call it "luafoo" in Buildroot; if the upstream
 # package is "foo", call it "lua-foo". Many packages currently don't follow
 # this convention, but that's historical accident.
-	source "package/argparse/Config.in"
 	source "package/cgilua/Config.in"
 	source "package/copas/Config.in"
 	source "package/coxpcall/Config.in"
diff --git a/package/argparse/Config.in b/package/argparse/Config.in
deleted file mode 100644
index d02b191254..0000000000
--- a/package/argparse/Config.in
+++ /dev/null
@@ -1,10 +0,0 @@
-config BR2_PACKAGE_ARGPARSE
-	bool "argparse"
-	help
-	  Argparse is a feature-rich command line parser for Lua
-	  inspired by argparse for Python. Argparse supports
-	  positional arguments, options, flags, optional arguments,
-	  subcommands and more. Argparse automatically generates
-	  usage, help and error messages.
-
-	  https://github.com/luarocks/argparse
diff --git a/package/argparse/argparse.hash b/package/argparse/argparse.hash
deleted file mode 100644
index c573ba5796..0000000000
--- a/package/argparse/argparse.hash
+++ /dev/null
@@ -1,3 +0,0 @@
-# computed by luarocks/buildroot
-sha256  ea30d0643586a20aeb6349ca8cb7db63aefc21d9aa007c7b7168a7c564817879  argparse-0.7.1-1.src.rock
-sha256  9a918f21485b2a4529c901491d9101392f03586d65ad5b024a4445ebc1dc37b4  argparse-0.7.1/LICENSE
diff --git a/package/argparse/argparse.mk b/package/argparse/argparse.mk
deleted file mode 100644
index d719e67d83..0000000000
--- a/package/argparse/argparse.mk
+++ /dev/null
@@ -1,11 +0,0 @@
-################################################################################
-#
-# argparse
-#
-################################################################################
-
-ARGPARSE_VERSION = 0.7.1-1
-ARGPARSE_LICENSE = MIT
-ARGPARSE_LICENSE_FILES = $(ARGPARSE_SUBDIR)/LICENSE
-
-$(eval $(luarocks-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.