This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nscd_stat.c: make the build reproducible
- From: ludo at gnu dot org (Ludovic Courtès)
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org, 783210 at bugs dot debian dot org, Aurelien Jarno <aurelien at aurel32 dot net>, Ximin Luo <infinity0 at debian dot org>
- Date: Fri, 29 Jul 2016 13:51:09 +0200
- Subject: Re: [PATCH] nscd_stat.c: make the build reproducible
- Authentication-results: sourceware.org; auth=none
- References: <1457456791-17402-1-git-send-email-aurelien@aurel32.net> <20160308233738.GP6588@vapier.lan> <20160309075403.GA2444@aurel32.net> <20160309223006.GA6588@vapier.lan> <dfc1aba1-1788-6b73-602e-3ffd6936c14d@redhat.com>
Florian Weimer <fweimer@redhat.com> skribis:
> We still need the time-based approach if the build ID is not
> available, but I expect most distributions will have something like
> it.
FWIW in Guix we solve it by filling the ‘compilation’ array with a
substring of the installation prefix¹.
Since the installation prefix is something like
/gnu/store/5fx3vscv9pqjr1k0vyaqnpqlvvzl8rff-glibc-2.22, which comprises
a hash of all the source, build scripts, and dependencies used to build
it, we know that it uniquely identifies the result of this specific
glibc build.
The build ID should be a good approximation of this.
Ludo’.
¹ http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/base.scm#n603