retitle 786593 wordwarvi: please make the build reproducible tags 786593 + patch thanks
Patch attached. (No need to add a "distrobuild" switch now we have SOURCE_DATE_EPOCH). Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/stamp.c b/stamp.c index 04b8456..e247c03 100644 --- a/stamp.c +++ b/stamp.c @@ -7,10 +7,18 @@ int main(int argc, char *argv[]) { struct timeval tv; int uid; + char *source_date_epoch; gettimeofday(&tv, NULL); uid = getuid(); + source_date_epoch = getenv("SOURCE_DATE_EPOCH"); + if (source_date_epoch) { + printf("static int builder = 0;\n"); + printf("static uint64_t builtat = %s;\n", source_date_epoch); + exit(0); + } + printf("static int builder = %d;\n", uid); printf("static uint64_t builtat = %d;\n", tv.tv_sec);