$OpenBSD: patch-ghc_mk,v 1.11 2015/09/19 07:42:56 kili Exp $

Fix the bindist-list (for building the bootstrapper); without this,
gtar creates an archive which our tar can't extract.

--- ghc.mk.orig	Tue Jul 21 15:52:50 2015
+++ ghc.mk	Sun Aug  9 17:35:52 2015
@@ -1024,6 +1024,8 @@ unix-binary-dist-prep:
 	echo "UseSystemLibFFI    = $(UseSystemLibFFI)"    >> $(BIN_DIST_MK)
 	cd $(BIN_DIST_PREP_DIR) && autoreconf
 	$(call removeFiles,$(BIN_DIST_PREP_TAR))
+	sed 's@/\./@/@g' bindist-list | sort -u > bindist-list.new
+	mv bindist-list.new bindist-list
 # 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)
