[MacPorts] #60069: wireguard-tools needs to use newer bash in El Capitan

MacPorts noreply at macports.org
Mon Feb 10 18:20:26 UTC 2020


#60069: wireguard-tools needs to use newer bash in El Capitan
------------------------------+----------------------
  Reporter:  treble2019       |      Owner:  cardi
      Type:  defect           |     Status:  assigned
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  wireguard-tools  |
------------------------------+----------------------

Comment (by cardi):

 Can you post the contents of your `$PATH` environment variable?

 It should be look something like:
 {{{
 $ echo $PATH
 /opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
 }}}

 Depending on how you installed MacPorts, your `$PATH` should be properly
 set in `.bash_profile`, `.profile`, or `.bashrc` to include
 `/opt/local/bin` and `/opt/local/sbin` at the beginning (see
 [https://guide.macports.org/chunked/installing.shell.html#installing.shell.postflight]).

 [https://git.zx2c4.com/wireguard-tools/tree/src/wg-quick/darwin.bash#n1
 wg-quick] executes bash using `/usr/bin/env bash`. `/usr/bin/env` looks
 through the directories in `$PATH` and uses the first entry matching
 `bash`. If your `$PATH` has `/bin` before `/opt/local/bin`, executing
 `bash` will use the old, built-in version instead of the newest (the
 latest version of `bash` is installed as a dependency of wireguard-tools).

-- 
Ticket URL: <https://trac.macports.org/ticket/60069#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list