[commit: ghc] master: validate: Use gz compression during bindist check (2fd407c)

git at git.haskell.org git at git.haskell.org
Mon Jan 18 10:23:54 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2fd407cd28ea1c8fccb7a93d411d1cee690fa959/ghc

>---------------------------------------------------------------

commit 2fd407cd28ea1c8fccb7a93d411d1cee690fa959
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Mon Jan 18 00:16:35 2016 +0100

    validate: Use gz compression during bindist check
    
    Test Plan: validate, check that gz is used
    
    Reviewers: hvr, austin, thomie
    
    Reviewed By: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1788
    
    GHC Trac Issues: #11434


>---------------------------------------------------------------

2fd407cd28ea1c8fccb7a93d411d1cee690fa959
 mk/config.mk.in | 2 +-
 validate        | 8 ++++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/mk/config.mk.in b/mk/config.mk.in
index a7a61e5..966f34a 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -768,7 +768,7 @@ GZIP_CMD       = gzip
 XZ_CMD         = xz -9e
 
 # xz is default compression
-TAR_COMP      = xz
+TAR_COMP      ?= xz
 
 # select compression command and .tar extension based on TAR_COMP value
 ifeq "$(TAR_COMP)" "bzip2"
diff --git a/validate b/validate
index d6bc1bf..1735065 100755
--- a/validate
+++ b/validate
@@ -47,6 +47,10 @@ hpc=NO
 speed=NORMAL
 use_dph=0
 be_quiet=0
+# Validate uses gzip compression for the binary distribution to avoid the rather
+# heavy cost of xz, which is the typical default. The options are defined in
+# mk/config.mk.in
+tar_comp=gzip
 
 while [ $# -gt 0 ]
 do
@@ -211,8 +215,8 @@ check_packages post-build
 
 if [ $speed != "FAST" ]; then
 
-    $make binary-dist-prep
-    $make test_bindist TEST_PREP=YES
+    $make binary-dist-prep TAR_COMP=$tar_comp
+    $make test_bindist TEST_PREP=YES TAR_COMP=$tar_comp
 
     #
     # Install the xhtml package into the bindist.



More information about the ghc-commits mailing list