[Reproducible-builds] Bug#825643: dash: please make the build reproducible

HW42 hw42 at ipsumj.de
Mon Jun 13 00:16:07 UTC 2016


Hi,

in addition to the sorting problem found by Reiner dash is also not
reproducible since it indirectly captures the shell used as /bin/sh.

The problem is that that dash sets argv[0] to the relative path if
'exec' is called with a relative path and bash sets argv[0] to the
absolute path. When executing 'exec configure' in debian/rules argv[0]
gets captured by the configure script as $srcdir which is later used in
$DEFAULT_INCLUDES and passed to gcc. This leads to different build-ids
depending on the choice of /bin/sh.

The attached patch fix this by simply avoiding the exec call.

Thanks, HW42
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-unreproducible-configure-call.patch
Type: text/x-diff
Size: 461 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160613/23f9baa6/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160613/23f9baa6/attachment.sig>


More information about the Reproducible-builds mailing list