On Thu, Jun 12, 2014 at 9:05 PM, Thomas Braun
<
thomas...@virtuell-zuhause.de> wrote:
Just to follow up on this:
> Getting there involves solving atm the following problems:
> 1.) Tar stores the file modification time
> This can be avoided by setting the mtime to a fixed string for all
> builds, e.g.
> export TAR_OPTIONS=--mtime='2000-01-01'
> before calling mgwport.
How about modifying mgwport in a way so that it sets TAR_OPTIONS to
the port file's modification date, or the issue date of the belonging
package file? The latter probably is a bit harder to do in a nice way
as mgwport usually doe snot know about mingw-get's package files.
> 2.) The PE header of the executables/dlls/libraries has a time stamp
>
> Binutils-2.24-1 which is not yet in mingw-get can be told to produce
> deterministic builds. Unfortunately this is only the default for .exe
> and .dll, and not for dll.a and .a. See
>
https://sourceforge.net/p/mingw/bugs/2158.
>
> A work around would be to call strip --enable-deterministic-archive on
> all relevant files before packaging them. This option is also known by
> the current binutils package.
Now that we have binutils-2.24-1 upstream, should we build our own
version that is configured with "--enable-deterministic-archive", or
should we modify mgwport (which already calla strip anyway, see
src_postinst.mgwpart) to also pass "--enable-deterministic-archive" to
strip? The latter probably is less work given that we need to modify
mgwport for 1) anyway.
It'd be great if you could find the time to check whether gzip 1.6.
fixed the problem, and eventually create PRs for these new packages
;-)
--
Sebastian Schuberth