On Thu, Sep 24, 2020 at 12:18:04PM +0200, Paolo Bonzini wrote: > On 24/09/20 12:06, Roman Bolshakov wrote: > > 83760814f637 ("configure: Check for new-enough getopt") has replaced > > proposed patch and doesn't introduce --getopt option in configure. > > Instead, `configure` and `run_tests.sh` expect proper getopt to be > > available in PATH. > > Is this because getopt is "keg only"? I thought you could just add > `brew --prefix`/bin to the path. You can also do "brew link" if there > are no backwards-compatibility issues. > Yes, keg-only packages do not shadow system utilities (which either come from FreeBSD or GNU but have the most recent GPL2 version, i.e. quite old), so adding `brew --prefix`/bin to PATH doesn't help much. brew link doesn't help either :) $ brew link gnu-getopt Warning: Refusing to link macOS provided/shadowed software: gnu-getopt If you need to have gnu-getopt first in your PATH run: echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zshrc Thanks, Roman