Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
configure: another gzip fix, fixes #2853
The gzip utility fetches default options from the GZIP environment variable.
Don't use this name in the tvh build.
  • Loading branch information
perexg committed May 19, 2015
1 parent a13eaa0 commit a58e0fb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Makefile.webui
Expand Up @@ -32,7 +32,7 @@ EXTJSPATH = $(ROOTPATH)/extjs
CSS_PY = PYTHONIOENCODING=utf-8 $(PYTHON) support/css.py
RUN_JS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rjsmin-1.0.10/rjsmin.py
RUN_CSS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rcssmin-1.0.5/rcssmin.py
GZIP += -n
GZIPCMD += -n

ifeq ($(WEBUI),std)
DEBUG =
Expand Down Expand Up @@ -154,7 +154,7 @@ define GO_JS
$(VV)cat $^ > $@.tmp
$(VV)$(RUN_JS) < $@.tmp > $@.tmp2
@stat --printf="%-35n %7s\n" $@.tmp $@.tmp2
$(VV)$(GZIP) -c $@.tmp2 > $@.tmp
$(VV)$(GZIPCMD) -c $@.tmp2 > $@.tmp
@rm $@.tmp2
@mv $@.tmp $@
@stat --printf="%-35n %7s\n" $@
Expand All @@ -165,7 +165,7 @@ define GO_CSS
$(VV)$(CSS_PY) --in="$^" > $@.tmp
$(VV)$(RUN_CSS) < $@.tmp > $@.tmp2
@stat --printf="%-35n %7s\n" $@.tmp $@.tmp2
$(VV)$(GZIP) -c $@.tmp2 > $@.tmp
$(VV)$(GZIPCMD) -c $@.tmp2 > $@.tmp
@rm $@.tmp2
@mv $@.tmp $@
@stat --printf="%-35n %7s\n" $@
Expand Down
7 changes: 5 additions & 2 deletions configure
Expand Up @@ -73,7 +73,10 @@ for opt do
*dir|prefix)
eval "$opt=$val"
;;
cc|cflags|ldflags|arch|cpu|platform|python|gzip|bzip2)
gzip)
eval "$(toupper ${opt}CMD)=\"$val\""
;;
cc|cflags|ldflags|arch|cpu|platform|python|bzip2)
eval "$(toupper $opt)=\"$val\""
;;
enable-*)
Expand Down Expand Up @@ -235,7 +238,7 @@ check_py_import gzip
#
# Binaries
#
check_bin ${GZIP} || die 'WARN: no gzip binary found'
check_bin ${GZIPCMD} || die 'WARN: no gzip binary found'
check_bin ${BZIP2} || echo 'WARN: no bzip2 binary found'

#
Expand Down
6 changes: 3 additions & 3 deletions support/configure.inc
Expand Up @@ -17,7 +17,7 @@ CONFIGURE_ARGS="$*"
[ -z "$ARCH" ] && ARCH=$(uname -m)
[ -z "$OSENV" ] && OSENV=posix
[ -z "$PYTHON" ] && PYTHON=python
[ -z "$GZIP" ] && GZIP=gzip
[ -z "$GZIPCMD" ] && GZIPCMD=gzip
[ -z "$BZIP2" ] && BZIP2=bzip2

# Paths
Expand Down Expand Up @@ -400,7 +400,7 @@ print_config ()

echo "Binaries:"
printf "$fmt" "Using PYTHON:" "${PYTHON}"
printf "$fmt" "Using GZIP:" "${GZIP}"
printf "$fmt" "Using GZIP:" "${GZIPCMD}"
printf "$fmt" "Using BZIP2:" "${BZIP2}"
echo ""

Expand Down Expand Up @@ -459,7 +459,7 @@ ifeq (\$(origin CC),default)
CC = ${CC}
endif
PYTHON ?= ${PYTHON}
GZIP ?= ${GZIP}
GZIPCMD ?= ${GZIPCMD}
BZIP2 ?= ${BZIP2}
CFLAGS += ${CFLAGS}
LDFLAGS += ${LDFLAGS}
Expand Down

0 comments on commit a58e0fb

Please sign in to comment.