HomeFreeBSD

tools/build/make.py: fix cross build on Fedora Linux

Description

tools/build/make.py: fix cross build on Fedora Linux

Fedora defines shell functions for some commands used by FreeBSD build
scripts. Unortunatelly it makes them behave incorrectly for our purposes.

For instance 'which which' returns something like:

which ()
{

( alias;
eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias ...

}

instead of

/usr/bin/which

This patch unsets those functions to restore original/expected behavior

Reviewed by: emaste, imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D36900

(cherry picked from commit b7ac17b48bdfc688b54b29aa4feacb535c91aec2)

Details

Provenance
alfredoAuthored on Nov 1 2022, 11:59 PM
Reviewer
emaste
Differential Revision
D36900: tools/build/make.py: fix cross build on Fedora Linux
Parents
rGe52aaa644ce1: bhyve: Handle snapshots of unconfigured virtio-net devices
Branches
Unknown
Tags
Unknown