summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2025-08-26 11:36:54 +0000
committerPaul Spooren2025-08-27 01:27:55 +0000
commit44f76177d564c9c5d24f5bdf3329d19eba26740d (patch)
tree80214c7c71ffe45f4996d261643d936dc9d18fbe
parent18077d22e9754cdff64825ef81eb66bdd5fa58fb (diff)
downloadopenwrt-44f76177d564c9c5d24f5bdf3329d19eba26740d.tar.gz
include: make APK .list files even more reproducible
This commit fixes "aff2f096235 include: make APK .list files reproducible" since it would create the .list file while `find` still runs. This causes the .list file to be part of itself. As an alternative, write the file to a temporary folder first and then move it. Fix: aff2f096235 include: make APK .list files reproducible Signed-off-by: Paul Spooren <mail@aparcar.org>
-rw-r--r--include/package-pack.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-pack.mk b/include/package-pack.mk
index 318d8ee5f6..38655a4492 100644
--- a/include/package-pack.mk
+++ b/include/package-pack.mk
@@ -353,7 +353,7 @@ else
if [ -n "$(USERID)" ]; then echo $(USERID) > $$(IDIR_$(1))/lib/apk/packages/$(1).rusers; fi;
if [ -n "$(ALTERNATIVES)" ]; then echo $(ALTERNATIVES) > $$(IDIR_$(1))/lib/apk/packages/$(1).alternatives; fi;
- (cd $$(IDIR_$(1)) && find . -type f,l -printf "/%P\n" | sort > $$(IDIR_$(1))/lib/apk/packages/$(1).list)
+ (cd $$(IDIR_$(1)) && find . -type f,l -printf "/%P\n" | sort > $(TMP_DIR)/$(1).list && mv $(TMP_DIR)/$(1).list $$(IDIR_$(1))/lib/apk/packages/$(1).list)
# Move conffiles to IDIR and build conffiles_static with csums
if [ -f $$(ADIR_$(1))/conffiles ]; then \
mv -f $$(ADIR_$(1))/conffiles $$(IDIR_$(1))/lib/apk/packages/$(1).conffiles; \