Skip to content
Permalink
Browse files Browse the repository at this point in the history
ensure theme builds are reproducible (bsc #1124165)
Themes contains two cpio archives. Ensure they are identical in each
build.
  • Loading branch information
wfeldt committed Feb 5, 2019
1 parent 8476219 commit 3e5f7a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions themes/openSUSE/Makefile
Expand Up @@ -56,8 +56,8 @@ bootlogo: src/main.bin src/gfxboot.cfg help-install/.ready po/.ready fonts/.read
ifdef DEFAULT_LANG
@echo $(DEFAULT_LANG) >bootlogo.dir/lang
endif
@sh -c 'cd bootlogo.dir; chmod +t * ; chmod -t init languages'
@sh -c 'cd bootlogo.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet -o >../bootlogo'
@sh -c 'cd bootlogo.dir; chmod +t * ; chmod -t init languages ; touch -r ../src/main.bc *'
@sh -c 'cd bootlogo.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet --reproducible --owner=+0:+0 -o >../bootlogo'

message: src/main.bin src/gfxboot.cfg help-boot/.ready po/.ready fonts/.ready
@rm -rf message.dir
Expand All @@ -72,7 +72,8 @@ ifdef DEFAULT_LANG
@echo $(DEFAULT_LANG) >message.dir/lang
@echo $(DEFAULT_LANG) >>message.dir/languages
endif
@sh -c 'cd message.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet -o >../message'
@sh -c 'cd message.dir; touch -r ../src/main.bc *'
@sh -c 'cd message.dir; echo * | sed -e "s/ /\n/g" | cpio --quiet --reproducible --owner=+0:+0 -o >../message'

clean:
@for i in $(SUBDIRS) ; do [ ! -f $$i/Makefile ] || make -C $$i clean || break ; done
Expand Down

0 comments on commit 3e5f7a0

Please sign in to comment.