[CRIU] [PATCH] kdat: allow to override build time

Pavel Emelyanov xemul at virtuozzo.com
Tue Jul 18 09:12:40 MSK 2017


On 07/18/2017 05:27 AM, Bernhard M. Wiedemann wrote:
> in order to allow for reproducible builds.
> See https://reproducible-builds.org/ for why this is good
> and https://reproducible-builds.org/specs/source-date-epoch/
> for the definition of this variable.
> 
> Signed-off-by: Bernhard M. Wiedemann <bwiedemann at suse.de>
> Acked-by: Pavel Emelyanov <xemul at virtuoozo.com>

True, but the patch in question is already in criu-dev :) We'll pull it
into master and release this week.

> ---
>  criu/Makefile.crtools | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/Makefile.crtools b/criu/Makefile.crtools
> index adc64ef7..6b3fbdfb 100644
> --- a/criu/Makefile.crtools
> +++ b/criu/Makefile.crtools
> @@ -1,7 +1,7 @@
>  ccflags-y		+= -iquote criu/$(ARCH)
>  ccflags-y		+= $(COMPEL_UAPI_INCLUDES)
>  CFLAGS_REMOVE_clone-noasan.o += $(CFLAGS-ASAN)
> -CFLAGS_kerndat.o	+= -DKDAT_MAGIC_2=${shell date +%s} -DKDAT_RUNDIR=\"$(RUNDIR)\"
> +CFLAGS_kerndat.o	+= -DKDAT_MAGIC_2=${shell echo $${SOURCE_DATE_EPOCH:-$$(date +%s)}} -DKDAT_RUNDIR=\"$(RUNDIR)\"
>  ldflags-y		+= -r
>  
>  obj-y			+= action-scripts.o
> 



More information about the CRIU mailing list