[MacPorts] #43245: Port 2.2.99 cannot be configured on PPC Mac OS X 10.4.11 because "/usr/bin/gzip has 3 other links"

MacPorts noreply at macports.org
Thu May 29 09:35:39 PDT 2014


#43245: Port 2.2.99 cannot be configured on PPC Mac OS X 10.4.11 because
"/usr/bin/gzip has 3 other links"
------------------------------+--------------------------------
  Reporter:  Peter_Dyballa@…  |      Owner:  macports-tickets@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.2.99
Resolution:                   |   Keywords:
      Port:  MacPorts         |
------------------------------+--------------------------------

Comment (by Peter_Dyballa@…):

 Replying to [comment:4 cal@…]:
 > I think this might be caused by the environment variable GZIP. See the
 gzip manpage:
 >
 > {{{
 > If the environment variable GZIP is set, it is parsed as a white-space
 separated list of options handled before any options on the command line.
 Options on the command line will override anything in GZIP.
 > }}}
 >
 Indeed! The command

 {{{
 /usr/bin/gzip -d < "/opt/mports/trunk/base/vendor/tcl8.5.15-src.tar.gz" |
 /usr/bin/tar -vtf -
 }}}

 produces the expected output, shows the archive's contents, while the
 command

 {{{
 env GZIP=/usr/bin/gzip /usr/bin/gzip -d <
 "/opt/mports/trunk/base/vendor/tcl8.5.15-src.tar.gz" | /usr/bin/tar -vtf -
 }}}

 just reports:

 {{{
 gzip: /usr/bin/gzip has 3 other links -- unchanged
 }}}

 The command

 {{{
 env GZIP="" /usr/bin/gzip -d <
 "/opt/mports/trunk/base/vendor/tcl8.5.15-src.tar.gz" | /usr/bin/tar -vtf -
 }}}

 works as expected. The manual entry contains:

 {{{
 ENVIRONMENT
        The environment variable GZIP can hold a set  of  default  options
 for
        gzip.   These  options  are interpreted first and can be
 overwritten by
        explicit command line parameters. For example:
              for sh:    GZIP="-8v --name"; export GZIP
              for csh:   setenv GZIP "-8v --name"
              for MSDOS: set GZIP=-8v --name

        On Vax/VMS, the name of the environment variable is GZIP_OPT, to
 avoid
        a conflict with the symbol set for invocation of the program.
 }}}

 So it's clear that the configure script should better use the variable
 GZIP_UTILITY or such in place of GZIP…

-- 
Ticket URL: <https://trac.macports.org/ticket/43245#comment:5>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list