]> granicus.if.org Git - nethack/commit
REPRODUCIBLE_BUILD, part 2
authorPatR <rankin@nethack.org>
Fri, 1 Apr 2016 01:09:59 +0000 (18:09 -0700)
committerPatR <rankin@nethack.org>
Fri, 1 Apr 2016 01:09:59 +0000 (18:09 -0700)
commitca979cbc2b435f5a68b5c3a3c0379307a494ec87
tree27c82ea44c014260c77e7d8b87decf6715f064d8
parentc3ef98c4d1fec23f8a7d58221a787495d96b58b8
REPRODUCIBLE_BUILD, part 2

Other half of the Debian reproducible-builds patch.  For Unix
Makefile.top, explicitly set locale to generic 'C' when running
'dlb' during install, so that wildcard expansion will yield a
predictable ordering regardless of collation order specified by
the local enviroenment.  Otherwise contents of the 'nhdat'
container might be different--when viewed as a single data file
itself--during subsequent rebuild even when no changes to source
or data have been made and each module inside remains the same.

This assumes that locale doesn't matter during generation of any
of the data files (whether destined for dlb or not).  I don't
think the utility programs attempt any sorting on the fly or
other locale-dependent output but wouldn't swear to that....
sys/unix/Makefile.top