You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we require macOS users to have GNU coreutils and GNU getopt in PATH, with the additional requirement that GNU getopt has to be in PATH before the built-in getopt. I wonder if it would be possible to get rid of these two dependencies and just use the built-in macOS versions of various commands.
Currently, I am aware of the following commands and places where the GNU versions are needed:
greadlink in all our scripts inside scripts/ to find the path to the directory where each script is located
getopt in multiple scripts inside scripts/ (two retdec-* scripts and scripts in scripts/type_extractor)
gtimeout in scripts/retdec-archive-decompiler.sh
gsha256sum in cmake/install-share (the use of gsha256sum in there is already optional if you have shasum in your PATH)
The text was updated successfully, but these errors were encountered:
Yes, the last one (sha256sum) should have already been solved since 0f1281e:
sha256hash()
{
# To compute the SHA-256 hash, try several alternatives, based on what# command is available on the system.ifcommand -v gsha256sum >/dev/null 2>&1;then
gsha256sum "$@"elifcommand -v shasum >/dev/null 2>&1;then
shasum -a 256 "$@"else
sha256sum "$@"fi
}
Currently, we require macOS users to have GNU coreutils and GNU getopt in
PATH
, with the additional requirement that GNU getopt has to be inPATH
before the built-ingetopt
. I wonder if it would be possible to get rid of these two dependencies and just use the built-in macOS versions of various commands.Currently, I am aware of the following commands and places where the GNU versions are needed:
greadlink
in all our scripts insidescripts/
to find the path to the directory where each script is locatedgetopt
in multiple scripts insidescripts/
(tworetdec-*
scripts and scripts inscripts/type_extractor
)gtimeout
inscripts/retdec-archive-decompiler.sh
gsha256sum
incmake/install-share
(the use ofgsha256sum
in there is already optional if you haveshasum
in yourPATH
)The text was updated successfully, but these errors were encountered: