[commit: ghc] ghc-8.2: build system: Ensure there are no duplicate files in bindist list (96ce538)
git at git.haskell.org
git at git.haskell.org
Fri Jul 21 02:16:18 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.2
Link : http://ghc.haskell.org/trac/ghc/changeset/96ce53866496b72a3eb34ee13a2a9c5392c29fcb/ghc
>---------------------------------------------------------------
commit 96ce53866496b72a3eb34ee13a2a9c5392c29fcb
Author: Ben Gamari <bgamari.foss at gmail.com>
Date: Thu Jul 20 21:39:27 2017 -0400
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)
>---------------------------------------------------------------
96ce53866496b72a3eb34ee13a2a9c5392c29fcb
ghc.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/ghc.mk b/ghc.mk
index 0466164..5b9cf22 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1107,7 +1107,8 @@ unix-binary-dist-prep:
$(call removeFiles,$(BIN_DIST_PREP_TAR))
# h means "follow symlinks", e.g. if aclocal.m4 is a symlink to a source
# tree then we want to include the real file, not a symlink to it
- cd bindistprep && "$(TAR_CMD)" hcf - -T ../bindist-list | $(TAR_COMP_CMD) -c > ../$(BIN_DIST_PREP_TAR_COMP)
+ sort bindist-list | uniq > bindist-list.uniq
+ cd bindistprep && "$(TAR_CMD)" hcf - -T ../bindist-list.uniq | $(TAR_COMP_CMD) -c > ../$(BIN_DIST_PREP_TAR_COMP)
windows-binary-dist-prep:
$(call removeTrees,bindistprep/)
@@ -1418,6 +1419,7 @@ distclean : clean
# We make these when making or testing bindists
$(call removeFiles,bindist-list)
+ $(call removeFiles,bindist-list.uniq)
$(call removeTrees,bindisttest/a)
# Not sure why this is being cleaned here.
More information about the ghc-commits
mailing list