[PATCH] nscd_stat.c: make the build reproducible

Mike Frysinger vapier@gentoo.org
Tue Mar 8 23:37:00 GMT 2016


On 08 Mar 2016 18:06, Aurelien Jarno wrote:
> nscd_stat.c uses the __DATE__ and __TIME__ macros to make sure the
> client and the server use the same format. This prevents reproducible
> builds and fails to build with -Werror=date-time. In addition another
> build of the same file a bit later does not necessary imply a change
> in the format.
> 
> Instead compute a checksum of the file in the Makefile and pass it to
> the preprocessor with the -D option. Use the md5sum command limited to
> 20 characters to avoid changing the structure size.

this doesn't take into consideration the HAVE_SELINUX knob ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160308/790e75d5/attachment.sig>


More information about the Libc-alpha mailing list