openbsd-ports/lang/ghc/patches/patch-ghc_mk
kili 5df364205b Update to ghc-7.6.3, revert my last two obsolete changes and
mark it as broken until all depending ports have been updated.
2013-07-18 21:43:23 +00:00

32 lines
1.4 KiB
Plaintext

$OpenBSD: patch-ghc_mk,v 1.8 2013/07/18 21:43:23 kili Exp $
Include utf8-string and xhtml for now, because of dependencies.
Including *any* of those INTREE_ONLY_PACKAGES in the ghc packages
wasn't the brightest idea I had (see mtl library hell). The two
libraries left can and will be replaced by separate ports when
needed.
Fix the bindist-list (for building the bootstrapper); without this,
gtar creates an archive which our tar can't extract.
--- ghc.mk.orig Thu Apr 18 23:22:46 2013
+++ ghc.mk Sun Jul 7 16:03:47 2013
@@ -310,7 +310,7 @@ endif
# They do not say "this package will be built"; see $(PACKAGES_xx) for that
# Packages that are built but not installed
-PKGS_THAT_ARE_INTREE_ONLY := haskeline transformers terminfo utf8-string xhtml
+PKGS_THAT_ARE_INTREE_ONLY := haskeline transformers terminfo
PKGS_THAT_ARE_DPH := \
dph/dph-base \
@@ -1007,6 +1007,8 @@ unix-binary-dist-prep:
echo "GHC_CABAL_INPLACE = utils/ghc-cabal/dist-install/build/tmp/ghc-cabal" >> $(BIN_DIST_MK)
cd $(BIN_DIST_PREP_DIR) && autoreconf
$(call removeFiles,$(BIN_DIST_PREP_TAR))
+ sed 's@/\./@/@g' ${BIN_DIST_LIST} | sort -u > ${BIN_DIST_LIST}.new
+ mv ${BIN_DIST_LIST}.new ${BIN_DIST_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 ../$(BIN_DIST_LIST) | bzip2 -c > ../$(BIN_DIST_PREP_TAR_BZ2)