Use C locale when setting CC_VERSION_STRING and LD_VERSION_STRING.
authorVagrant Cascadian <vagrant@debian.org>
Sun, 12 Jun 2016 12:18:48 +0000 (05:18 -0700)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 28 Jun 2016 07:38:27 +0000 (07:38 +0000)
commite6ad75c12fbe43c343148e7ee30d1bbfd19e1e35
tree7362d41eecd93348818edf5da6509cb803dcce2b
parentc052e5b1e99642c2734fa9bfa40eca9bcfe495de
Use C locale when setting CC_VERSION_STRING and LD_VERSION_STRING.

The output reported may be locale-dependent, which results in
unreproducible builds.

  $ LANG=C ld --version | head -n 1
    GNU ld (GNU Binutils for Debian) 2.26

  $ LANG=it_CH.UTF-8 ld --version | head -n 1
    ld di GNU (GNU Binutils for Debian) 2.26

Forcing LC_ALL=C ensures the output is consistant regardless of the
build environment.

Thanks to HW42 for debugging the issue:

  https://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20160606/005722.html

For more information about reproducible builds:

  https://reproducible-builds.org/

Series-to: u-boot
Series-cc: HW42 <hw42@ipsumj.de>, reproducible-builds@lists.alioth.debian.org

Gbp-Pq: Topic upstream/submitted/reproducible
Gbp-Pq: Name 0001-Use-C-locale-when-setting-CC_VERSION_STRING-and-LD_V.patch
Makefile