You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a5100a0bd1
getopt is the only command where /usr/local/bin is specified explicitly. All other commands are assumed to exist in the PATH in one form or another. Remove this exception and require gnugetopt/getopt to be in the user's PATH. In the case of macos Homebrew, getopt is 'keg only' hence not linked into /usr/local/bin whilst other commands are linked and likely found by virtue of /usr/local/bin being in PATH. Since 2019 Homebrew is very reluctant to install links that have potential to override default OS behaviour, eg: following instructions on our current 'how to build on macos' wiki page: $ brew ln gnu-getopt --force Warning: Refusing to link macOS-provided 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 A better option for macos is to link getopt as 'gnugetopt' in /usr/local/bin, thus the build system will find 'gnugetopt' but other applications looking for just 'getopt' will find the original macos binary. Ultimately it makes sense that 'GNU' dependencies are placed in /usr/local/bin and /usr/local/bin is included in the user's PATH. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> |
4 years ago | |
---|---|---|
.. | ||
site | 5 years ago | |
autotools.mk | 5 years ago | |
cmake.mk | 4 years ago | |
debug.mk | 9 years ago | |
depends.mk | 7 years ago | |
device_table.txt | 11 years ago | |
download.mk | 5 years ago | |
feeds.mk | 5 years ago | |
hardened-ld-pie.specs | 6 years ago | |
hardening.mk | 4 years ago | |
host-build.mk | 5 years ago | |
image-commands.mk | 4 years ago | |
image-legacy.mk | 7 years ago | |
image.mk | 4 years ago | |
kernel-build.mk | 5 years ago | |
kernel-defaults.mk | 5 years ago | |
kernel-version.mk | 4 years ago | |
kernel.mk | 4 years ago | |
netfilter.mk | 4 years ago | |
nls.mk | 6 years ago | |
package-bin.mk | 7 years ago | |
package-defaults.mk | 6 years ago | |
package-dumpinfo.mk | 5 years ago | |
package-ipkg.mk | 4 years ago | |
package-seccomp.mk | 9 years ago | |
package.mk | 4 years ago | |
prereq-build.mk | 4 years ago | |
prereq.mk | 5 years ago | |
quilt.mk | 5 years ago | |
rootfs.mk | 5 years ago | |
scan.awk | 9 years ago | |
scan.mk | 5 years ago | |
shell.sh | 7 years ago | |
subdir.mk | 6 years ago | |
target.mk | 4 years ago | |
toolchain-build.mk | 5 years ago | |
toplevel.mk | 5 years ago | |
u-boot.mk | 5 years ago | |
uclibc++.mk | 4 years ago | |
unpack.mk | 5 years ago | |
verbose.mk | 6 years ago | |
version.mk | 5 years ago |