[debhelper-devel] Bug#759895: Bug#759895: debhelper: please strip non-deterministic data from static libraries

Jérémy Bobbio lunar at debian.org
Sun Aug 31 22:12:40 UTC 2014


Joey Hess:
> Jérémy Bobbio wrote:
> > Currently, static libraries shipped in Debian package capture the time
> > when the package is built. As part of the “reproducible builds”
> > project [1], it would be great to have static libriaries normalized.
> > 
> > The attached patch will make `dh_strip` replace non-deterministic data
> > in static libraries. The replacement data is the same as the one put by
> > `ar` from binutils when used with the `D` option (deterministic mode).
> 
> I think this is awesome! However, I am uncomfortable putting this big
> block of code into debhelper.
> 
> > +sub normalize_ar {
> ...
> > +}
> 
> Could it be moved to a utility that could 
> a) be maintained by someone else, perhaps in a package such as binutils
> and b) could be used by non-debhelper users inside and outside of
> debian.

Andrew Ayer has been working on a `dh_strip_nondeterminism` helper:
http://anonscm.debian.org/cgit/reproducible/strip-nondeterminism.git/

We can move that chunk of code to it, alongside normalizers for gzip,
zip, and jar files.

But we were kinda hoping to get that helper as part of debhelper in
order to not have to modify every packages to add a new Build-Depends.

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140831/7385b210/attachment-0003.sig>


More information about the debhelper-devel mailing list