Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-27 Thread James Almer
On 27/01/15 4:44 AM, Hendrik Leppkes wrote: > On Tue, Jan 27, 2015 at 12:31 AM, Andreas Cadhalpun < > andreas.cadhal...@googlemail.com> wrote: > >> Hi, >> >> On 26.01.2015 23:11, Michael Niedermayer wrote: >> >>> On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: >>> On 26/01/15 7:0

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-27 Thread Andreas Cadhalpun
Hi, On 27.01.2015 08:44, Hendrik Leppkes wrote: Checking help output with grep? Really? Did you ever stop to check how all the other checks work in configure? Usually it tries to run the command and see if it fails, instead of doing some arbitrary grep which may result in some other matches som

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-27 Thread Andreas Cadhalpun
Hi, On 27.01.2015 08:05, Clément Bœsch wrote: Why not have a build option to make these reproducible build on demand? There is no drawback to having this by default? I don't know of anything using the uid/gid/timestamp fields in *.a files, so I can't see a drawback in putting zeros into thes

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Hendrik Leppkes
On Tue, Jan 27, 2015 at 12:31 AM, Andreas Cadhalpun < andreas.cadhal...@googlemail.com> wrote: > Hi, > > On 26.01.2015 23:11, Michael Niedermayer wrote: > >> On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: >> >>> On 26/01/15 7:04 PM, Michael Niedermayer wrote: >>> reverted, break

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Clément Bœsch
On Tue, Jan 27, 2015 at 12:31:18AM +0100, Andreas Cadhalpun wrote: > Hi, > > On 26.01.2015 23:11, Michael Niedermayer wrote: > >On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: > >>On 26/01/15 7:04 PM, Michael Niedermayer wrote: > >>>reverted, breaks on BSDs > >>> > >>>ar: illegal opti

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Michael Niedermayer
On Tue, Jan 27, 2015 at 12:31:18AM +0100, Andreas Cadhalpun wrote: > Hi, > > On 26.01.2015 23:11, Michael Niedermayer wrote: > >On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: > >>On 26/01/15 7:04 PM, Michael Niedermayer wrote: > >>>reverted, breaks on BSDs > >>> > >>>ar: illegal opti

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Andreas Cadhalpun
Hi, On 26.01.2015 23:11, Michael Niedermayer wrote: On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: On 26/01/15 7:04 PM, Michael Niedermayer wrote: reverted, breaks on BSDs ar: illegal option -- D [...] Maybe a configure check for "ranlib -D" could be added. yes Attached pa

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Michael Niedermayer
On Mon, Jan 26, 2015 at 07:08:42PM -0300, James Almer wrote: > On 26/01/15 7:04 PM, Michael Niedermayer wrote: > > On Mon, Jan 26, 2015 at 09:56:03PM +0100, Michael Niedermayer wrote: > >> On Wed, Jan 21, 2015 at 11:14:06PM +0100, Andreas Cadhalpun wrote: > >>> Hi, > >>> > >>> ar and ranlib add tim

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread James Almer
On 26/01/15 7:04 PM, Michael Niedermayer wrote: > On Mon, Jan 26, 2015 at 09:56:03PM +0100, Michael Niedermayer wrote: >> On Wed, Jan 21, 2015 at 11:14:06PM +0100, Andreas Cadhalpun wrote: >>> Hi, >>> >>> ar and ranlib add timestamp and uid/gid for the object files in >>> static libraries. >>> If u

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Michael Niedermayer
On Mon, Jan 26, 2015 at 09:56:03PM +0100, Michael Niedermayer wrote: > On Wed, Jan 21, 2015 at 11:14:06PM +0100, Andreas Cadhalpun wrote: > > Hi, > > > > ar and ranlib add timestamp and uid/gid for the object files in > > static libraries. > > If used in deterministic mode, these are set to zero,

Re: [FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-26 Thread Michael Niedermayer
On Wed, Jan 21, 2015 at 11:14:06PM +0100, Andreas Cadhalpun wrote: > Hi, > > ar and ranlib add timestamp and uid/gid for the object files in > static libraries. > If used in deterministic mode, these are set to zero, making the > binaries reproducible. > Attached patch achieves that. > > Best reg

[FFmpeg-devel] [PATCH] configure: use ar and ranlib in deterministic mode

2015-01-21 Thread Andreas Cadhalpun
Hi, ar and ranlib add timestamp and uid/gid for the object files in static libraries. If used in deterministic mode, these are set to zero, making the binaries reproducible. Attached patch achieves that. Best regards, Andreas >From 1dfc47cb27ae6f3d88b8b7ca690b980842003ee7 Mon Sep 17 00:00:00