include: make APK .list files reproducible
authorPaul Spooren <[email protected]>
Thu, 21 Aug 2025 22:16:02 +0000 (00:16 +0200)
committerPaul Spooren <[email protected]>
Fri, 22 Aug 2025 07:05:46 +0000 (09:05 +0200)
The order may vary between builds, a re-build showed that error locally. Run
`sort` to have this fixed.

Signed-off-by: Paul Spooren <[email protected]>
include/package-pack.mk

index 14500473c9b166084d29b4fd2766871d32fd287e..318d8ee5f697814866ec74a47b5ffeb63dfa84df 100644 (file)
@@ -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; \