From: PHO Date: Fri, 3 Feb 2012 14:37:17 +0000 (+0900) Subject: Take a different way to unpack a bootstrap HC archive. X-Git-Tag: GHC-7.4.1~2^2~15 X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=e23df020f1fa71a2d4e1e76456c9ea9804d2c795;p=pkgsrc-ghc.git Take a different way to unpack a bootstrap HC archive. --- diff --git a/Makefile b/Makefile index f80ff24..67db91a 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ CONFIGURE_ARGS+= --with-gcc=/usr/bin/gcc CONFIGURE_ARGS+= --with-gcc=${CCPATH} .endif -USE_TOOLS+= gmake bsdtar perl:run +USE_TOOLS+= gmake gtar perl:run CONFIGURE_ENV+= PerlCmd=${PERL5:Q} # We don't want to extract all of the DISTFILEs. @@ -100,11 +100,9 @@ ${WRKDIR}/stamp-prepare-bootstrap: ${RUN} cd ${WRKDIR} && \ ${ECHO} "====> Preparing bootstrap compiler" && \ ${RM} -rf bootstrap && \ - ${MKDIR} -p bootstrap && \ - ${CP} -r ${DISTNAME} bootstrap && \ - cd bootstrap/${DISTNAME} && \ - ${MKDIR} -p utils/ghc-pwd/dist-boot && \ - ${LN} -sf ${PWD_CMD} utils/ghc-pwd/dist-boot/ghc-pwd && \ + ${MKDIR} -p bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot && \ + ${GTAR} -cf - ${DISTNAME} | ${GTAR} -C bootstrap -xpvf - && \ + ${LN} -sf ${PWD_CMD} bootstrap/${DISTNAME}/utils/ghc-pwd/dist-boot/ghc-pwd && \ ${TOUCH} $@ ${WRKDIR}/stamp-configure-hc-boot: ${WRKDIR}/stamp-prepare-bootstrap @@ -116,7 +114,7 @@ ${WRKDIR}/stamp-configure-hc-boot: ${WRKDIR}/stamp-prepare-bootstrap ${WRKDIR}/stamp-extract-hc: ${WRKDIR}/stamp-configure-hc-boot ${RUN} cd ${WRKDIR}/bootstrap/${DISTNAME} && \ ${ECHO} "====> Extracting bootstrap HC archive" && \ - (cd .. && bsdtar jxfm ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \ + (cd .. && ${GTAR} -jxf ${DISTDIR}/${BOOTSTRAP_TARBALL}) && \ ${SH} mkfiles && \ ${TOUCH} $@