[Pkg-haskell-maintainers] Bug#769893: ghc: Make compilation deterministic

Tom Fitzhenry tom at tom-fitzhenry.me.uk
Mon Nov 17 11:17:27 UTC 2014


Package: ghc
Version: 7.6.3-19
Severity: wishlist
Tags: patch upstream

Hi,

As part of the "reproducible builds" project[1], it was discovered that ghc's
interface hashes include the timestamp of dependent files[2]. This makes the
compilation of Haskell packages unreproducible. 

Fortunately, upstream have fixed this[3] and provided a backport for 7.6.3[4].

I tested this: I applied the patch locally, rebuilt ghc, and tested that it is able to
deterministically compile haskell-lrucache. Indeed, it was!

It'd be much appreciated if this was applied to 7.6.3, which would affect > 300
Haskell packages that are currently not reproducible.

  [1]: https://wiki.debian.org/ReproducibleBuilds
  [2]: https://jenkins.debian.net/userContent/index_FTBR_with_buildinfo.html
  [3]: https://ghc.haskell.org/trac/ghc/ticket/8144
  [4]: https://github.com/nh2/ghc/commit/3d61ee6c3e79913de2400aba8cecde8dbf44fc67

-- 
Tom Fitzhenry
tom at tom-fitzhenry.me.uk

-- System Information:
Debian Release: jessie/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ghc depends on:
ii  gcc         4:4.9.1-5
ii  libbsd-dev  0.7.0-2
ii  libc6       2.19-13
ii  libc6-dev   2.19-13
ii  libffi-dev  3.1-2
ii  libffi6     3.1-2
ii  libgmp-dev  2:6.0.0+dfsg-6
ii  libgmp10    2:6.0.0+dfsg-6
ii  libtinfo5   5.9+20140913-1

ghc recommends no packages.

Versions of packages ghc suggests:
ii  ghc-doc      7.6.3-19
ii  ghc-prof     7.6.3-19
pn  haskell-doc  <none>
pn  llvm         <none>
ii  perl         5.20.1-2

-- debconf-show failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Backport-from-7.8-Fix-interface-hashes-including-tim.patch
Type: text/x-diff
Size: 7354 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20141117/9340dfc0/attachment.patch>


More information about the Pkg-haskell-maintainers mailing list