Guillem Jover: > On Tue, 2013-08-27 at 23:12:34 +0200, Jérémy Bobbio wrote: > > In order to make the build reproducible, we ensure that the files are > > written to the .deb in a deterministic file order. > > --- > > > > Here is a test case for pkg-tests that should ensure that files are > > always written in the same order in the control and data tarball, > > despite what readdir() says. > > Thanks, this is very helpful. I've applied it locally, and done > several simplifications. I've removed the libhookdir library, because > it's really unneeded and it makes unportable assumptions on the internal > structure of the DIR type (which in this case seems to be missing an > off_t member). I'm just checking the .deb member tar output against a > sorted tar output.
How do you ensure that readdir() will not return files in sorted order? -- Lunar .''`. lu...@debian.org : :Ⓐ : # apt-get install anarchism `. `'` `-
signature.asc
Description: Digital signature