[openwrt/openwrt] imagebuilder: fix package inclusion and APK index
LEDE Commits
lede-commits at lists.infradead.org
Sat Nov 9 07:46:57 PST 2024
aparcar pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/451e2ce006eaba5341d7e33ac587719c3bf18701
commit 451e2ce006eaba5341d7e33ac587719c3bf18701
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Wed Nov 6 16:32:03 2024 +0100
imagebuilder: fix package inclusion and APK index
We need to exclude packages from the APK index which must not be
upgraded. To do so, the packages `libc`, `kernel` and `base-files` are
excluded to APK never suggestes them as upgradable.
The previous logic would however match packages like `libcomerr0`,
causing build failures. Make the copying and excluding logic more
precise by adding a single dash.
Signed-off-by: Paul Spooren <mail at aparcar.org>
---
package/Makefile | 2 +-
target/imagebuilder/Makefile | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/package/Makefile b/package/Makefile
index d78200fd80..b60ed10fb6 100644
--- a/package/Makefile
+++ b/package/Makefile
@@ -130,7 +130,7 @@ ifneq ($(CONFIG_USE_APK),)
--keys-dir $(TOPDIR) \
--sign $(BUILD_KEY_APK_SEC) \
--output packages.adb \
- $$(ls *.apk | grep -v 'base-files\|kernel\|libc'); \
+ $$(ls *.apk | grep -v 'base-files-\|kernel-\|libc-'); \
done
else
@for d in $(PACKAGE_SUBDIRS); do ( \
diff --git a/target/imagebuilder/Makefile b/target/imagebuilder/Makefile
index ff14a43bed..d455cbcd7a 100644
--- a/target/imagebuilder/Makefile
+++ b/target/imagebuilder/Makefile
@@ -72,9 +72,9 @@ ifeq ($(CONFIG_BUILDBOT),)
ifeq ($(CONFIG_IB_STANDALONE),)
$(FIND) $(call FeedPackageDir,libc) -type f \
\( \
- -name 'base-files*.$(PACKAGE_SUFFIX)' -or \
- -name 'libc*.$(PACKAGE_SUFFIX)' -or \
- -name 'kernel*.$(PACKAGE_SUFFIX)' \) \
+ -name 'base-files-*.$(PACKAGE_SUFFIX)' -or \
+ -name 'libc-*.$(PACKAGE_SUFFIX)' -or \
+ -name 'kernel-*.$(PACKAGE_SUFFIX)' \) \
-exec $(CP) -t $(PKG_BUILD_DIR)/packages {} +
else
$(FIND) $(wildcard $(PACKAGE_SUBDIRS)) -type f -name '*.$(PACKAGE_SUFFIX)' \
@@ -83,9 +83,9 @@ ifeq ($(CONFIG_BUILDBOT),)
else
$(FIND) $(call FeedPackageDir,libc) -type f \
\( \
- -name 'base-files*.$(PACKAGE_SUFFIX)' -or \
- -name 'libc*.$(PACKAGE_SUFFIX)' -or \
- -name 'kernel*.$(PACKAGE_SUFFIX)' \) \
+ -name 'base-files-*.$(PACKAGE_SUFFIX)' -or \
+ -name 'libc-*.$(PACKAGE_SUFFIX)' -or \
+ -name 'kernel-*.$(PACKAGE_SUFFIX)' \) \
-exec $(CP) -t $(IB_LDIR)/ {} +
endif
More information about the lede-commits
mailing list