#52211: bzip2 refuses to work, attempts to create /opt/local/bin/bzip2.bz2 file ----------------------+-------------------------- Reporter: uri@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: bzip2 | ----------------------+-------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: It's a documented feature of the bzip2 program. From its man page:
bzip2 will read arguments from the environment variables BZIP2 and BZIP, in that order, and will process them before any arguments read from the command line. This gives a convenient way to supply default arguments.
It was surprising to us too when we found out about this "feature" and we had to make some changes to MacPorts itself to not run into problems. We, too, had been using the `BZIP2` environment variable as a way to specify the path to the bzip2 program, and had to change it. -- Ticket URL: <https://trac.macports.org/ticket/52211#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS