summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Spooren2025-08-21 22:16:02 +0000
committerPaul Spooren2025-08-22 07:05:46 +0000
commitaff2f096235b62cdccc47b9e453c318c8f90e1f6 (patch)
tree881dcbe874f55954c3d71be27833cebc854506fe
parent00c16754cd367fbd052f96bcdca66dcfffe54121 (diff)
downloadopenwrt-aff2f096235b62cdccc47b9e453c318c8f90e1f6.tar.gz
include: make APK .list files reproducible
The order may vary between builds, a re-build showed that error locally. Run `sort` to have this fixed. 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 14500473c9..318d8ee5f6 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" > $$(IDIR_$(1))/lib/apk/packages/$(1).list)
+ (cd $$(IDIR_$(1)) && find . -type f,l -printf "/%P\n" | sort > $$(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; \