[openwrt/openwrt] imagebuilder: fix OPKG package_whatdepends support
LEDE Commits
lede-commits at lists.infradead.org
Wed Nov 20 00:50:02 PST 2024
robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/1abaf051d2f8b53eac2ebc245e22dfeef45ec1c9
commit 1abaf051d2f8b53eac2ebc245e22dfeef45ec1c9
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Tue Nov 19 23:56:19 2024 +0100
imagebuilder: fix OPKG package_whatdepends support
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.
So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.
Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17022
Signed-off-by: Robert Marko <robimarko at gmail.com>
(cherry picked from commit 52519a59a859d349f154ed79e0a3d63457b6aa6a)
---
target/imagebuilder/files/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/imagebuilder/files/Makefile b/target/imagebuilder/files/Makefile
index f46b61b787..54bc612840 100644
--- a/target/imagebuilder/files/Makefile
+++ b/target/imagebuilder/files/Makefile
@@ -352,7 +352,7 @@ ifeq ($(PACKAGE),)
endif
@$(MAKE) -s package_reload
ifeq ($(CONFIG_USE_APK),)
- @$(OPKG) list --depends $(PACKAGE)
+ @$(OPKG) whatdepends -A $(PACKAGE)
else
@$(APK) list --depends $(PACKAGE)
endif
More information about the lede-commits
mailing list