Skip to content

Commit aff2f09

Browse files
committed
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 <[email protected]>
1 parent 00c1675 commit aff2f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/package-pack.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ else
353353

354354
if [ -n "$(USERID)" ]; then echo $(USERID) > $$(IDIR_$(1))/lib/apk/packages/$(1).rusers; fi;
355355
if [ -n "$(ALTERNATIVES)" ]; then echo $(ALTERNATIVES) > $$(IDIR_$(1))/lib/apk/packages/$(1).alternatives; fi;
356-
(cd $$(IDIR_$(1)) && find . -type f,l -printf "/%P\n" > $$(IDIR_$(1))/lib/apk/packages/$(1).list)
356+
(cd $$(IDIR_$(1)) && find . -type f,l -printf "/%P\n" | sort > $$(IDIR_$(1))/lib/apk/packages/$(1).list)
357357
# Move conffiles to IDIR and build conffiles_static with csums
358358
if [ -f $$(ADIR_$(1))/conffiles ]; then \
359359
mv -f $$(ADIR_$(1))/conffiles $$(IDIR_$(1))/lib/apk/packages/$(1).conffiles; \

0 commit comments

Comments
 (0)