$OpenBSD: patch-ghc_mk,v 1.14 2019/09/30 11:44:18 kili Exp $

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

Index: ghc.mk
--- ghc.mk.orig
+++ ghc.mk
@@ -1102,6 +1102,8 @@ unix-binary-dist-prep:
 	echo "CrossCompiling     = $(CrossCompiling)"     >> $(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
 	sort bindist-list | uniq > bindist-list.uniq
