Re: [Reproducible-builds] Bug#787444: Bug#787444: Bug#787444: Bug#787444: help2man: support externally-supplied --date for reproducibility

2015-06-10 Thread Ximin Luo
On 10/06/15 12:58, Brendan O'Dea wrote:
> On 10 June 2015 at 20:54, Ximin Luo  wrote:
>> On 10/06/15 12:41, Brendan O'Dea wrote:
>>> On 10 June 2015 at 01:59, Ximin Luo  wrote:
 SOURCE_DATE = "$(date -d "$(dpkg-parsechangelog --count 1 -SDate)" 
 --iso-8601=seconds)" # includes the TZ offset
> 
>> The TZ offset is given statically in debian/changelog, and that can also be 
>> part of the "uninterpreted string". It's no less arbitrary than the rest of 
>> the date itself.
> 
> Your example above will emit the local timezone, and not the one from
> the changelog.
> 

You are right, my bad. I *meant* that it should be the same offset as in 
debian/changelog. But yes, annoyingly it is hard to get date(1) to do that, 
because of the same reasons I outlined earlier. But debhelper could do it 
correctly in one place, and then tools could use it.

I guess it's up to me to write a patch for that, and then see if people want 
it. I suppose we can leave this discussion for now.

X

-- 
GPG: 4096R/1318EFAC5FBBDBCE
git://github.com/infinity0/pubkeys.git



signature.asc
Description: OpenPGP digital signature
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Re: [Reproducible-builds] Bug#787444: Bug#787444: Bug#787444: Bug#787444: help2man: support externally-supplied --date for reproducibility

2015-06-10 Thread Brendan O'Dea
On 10 June 2015 at 20:54, Ximin Luo  wrote:
> On 10/06/15 12:41, Brendan O'Dea wrote:
>> On 10 June 2015 at 01:59, Ximin Luo  wrote:
>>> SOURCE_DATE = "$(date -d "$(dpkg-parsechangelog --count 1 -SDate)" 
>>> --iso-8601=seconds)" # includes the TZ offset

> The TZ offset is given statically in debian/changelog, and that can also be 
> part of the "uninterpreted string". It's no less arbitrary than the rest of 
> the date itself.

Your example above will emit the local timezone, and not the one from
the changelog.

> OK, then let's go with SOURCE_DATE_EPOCH.

Sold.  Adding it now.

--bod

___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds