#49239 closed defect (duplicate)
"gzip: /usr/bin/gzip: unknown suffix -- ignored" error during MacPorts 2.3.4 build
Reported by: | thecloud@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.3.4 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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.
Change History (4)
comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|
comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.