build system: Ensure there are no duplicate files in bindist list
authorBen Gamari <bgamari.foss@gmail.com>
Fri, 21 Jul 2017 01:39:27 +0000 (21:39 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 21 Jul 2017 01:42:16 +0000 (21:42 -0400)
commit96ce53866496b72a3eb34ee13a2a9c5392c29fcb
tree957a8cffd01f82b4a4619cbca8dca29397f85a10
parentb45d1277ada4b5ce30d5cfa188fb020f4806d9ea
build system: Ensure there are no duplicate files in bindist list

Several executables inexplicably appear twice in bindist.list, which
ends up producing multiple tar file entries, consequently breaking BSD
tar during extraction. I spent a fair amount of time trying to work out
where these duplicates were coming from to no avail. Since Hadrian is
right around the corner I'm satisfied with a terrible hack: just uniq
bindist.list before producing the bindist tarball.

Test Plan: Validate

Reviewers: austin

Subscribers: rwbarton, thomie

GHC Trac Issues: #13979, #13974

Differential Revision: https://phabricator.haskell.org/D3767

(cherry picked from commit fefcbfa86b73517d5002366d0703ce694c6d228d)
ghc.mk