[MacPorts] #49239: "gzip: /usr/bin/gzip: unknown suffix -- ignored" error during MacPorts 2.3.4 build
MacPorts
noreply at macports.org
Mon Oct 12 16:54:44 PDT 2015
#49239: "gzip: /usr/bin/gzip: unknown suffix -- ignored" error during MacPorts
2.3.4 build
-------------------------+--------------------------------
Reporter: thecloud@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.3.4
Resolution: | Keywords:
Port: |
-------------------------+--------------------------------
Old description:
> Steps to reproduce:
>
> $ export GZIP="-9"
> $ tar xvzf MacPorts-2.3.4.tar.gz -C /tmp/
> $ cd /tmp/MacPorts-2.3.4/
> $ ./configure && make
>
> If the GZIP environment variable is set to a whitespace-separated list of
> options (as is documented on the man page for gzip), the configure script
> for MacPorts fails with this error:
>
> configure: === extracting vendor/tcl8.5.15-src.tar.gz
> gzip: /usr/bin/gzip: unknown suffix -- ignored
> configure: error: tarball vendor/tcl8.5.15-src.tar.gz did not extract to
> vendor/tcl8.5.15/unix
>
> Workaround:
> $ unset GZIP
>
> Diagnosis:
> The configure script (incorrectly) expects that if the GZIP environment
> variable is set, it contains a path to the gzip binary. This directly
> conflicts with the documented contents of the GZIP variable, as
> understood by /usr/bin/gzip. Unsetting GZIP shouldn't be necessary to
> build MacPorts successfully, since it shouldn't overload the contents of
> an existing variable.
New description:
Steps to reproduce:
{{{
$ export GZIP="-9"
$ tar xvzf MacPorts-2.3.4.tar.gz -C /tmp/
$ cd /tmp/MacPorts-2.3.4/
$ ./configure && make
}}}
If the GZIP environment variable is set to a whitespace-separated list of
options (as is documented on the man page for gzip), the configure script
for MacPorts fails with this error:
{{{
configure: === extracting vendor/tcl8.5.15-src.tar.gz
gzip: /usr/bin/gzip: unknown suffix -- ignored
configure: error: tarball vendor/tcl8.5.15-src.tar.gz did not extract to
vendor/tcl8.5.15/unix
}}}
Workaround:
{{{
$ unset GZIP
}}}
Diagnosis:
The configure script (incorrectly) expects that if the GZIP environment
variable is set, it contains a path to the gzip binary. This directly
conflicts with the documented contents of the GZIP variable, as understood
by /usr/bin/gzip. Unsetting GZIP shouldn't be necessary to build MacPorts
successfully, since it shouldn't overload the contents of an existing
variable.
--
Comment (by ryandesign@…):
Duplicate of #43245 I think. This should have been fixed in r125362. You
can check whether MacPorts trunk (version 2.3.99, which will one day
become 2.4) fixes it; it should.
--
Ticket URL: <https://trac.macports.org/ticket/49239#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list