Skip to content

Commit

Permalink
depends: Use base system's sha256sum utility
Browse files Browse the repository at this point in the history
On FreeBSD, the `shasum` utility is provided by the `perl5` port, which
is not part of the base system and must be installed separately.
Note that this requirement is currently not documented in
`depends/README.md`.

This change switches to using the `sha256sum` utility, which is included
in the base system.

The same reasoning applies to Darwin, which is based on FreeBSD in this
context.
  • Loading branch information
hebasto committed Jan 9, 2025
1 parent 66aa6a4 commit f0b70fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion depends/builders/darwin.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build_darwin_STRIP:=$(shell xcrun -f strip)
build_darwin_OBJDUMP:=$(shell xcrun -f objdump)
build_darwin_NM:=$(shell xcrun -f nm)
build_darwin_DSYMUTIL:=$(shell xcrun -f dsymutil)
build_darwin_SHA256SUM=shasum -a 256
build_darwin_SHA256SUM=sha256sum
build_darwin_DOWNLOAD=curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o

#darwin host on darwin builder. overrides darwin host preferences.
Expand Down
2 changes: 1 addition & 1 deletion depends/builders/freebsd.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build_freebsd_CC=clang
build_freebsd_CXX=clang++

build_freebsd_SHA256SUM = shasum -a 256
build_freebsd_SHA256SUM = sha256sum
build_freebsd_DOWNLOAD = curl --location --fail --connect-timeout $(DOWNLOAD_CONNECT_TIMEOUT) --retry $(DOWNLOAD_RETRIES) -o

0 comments on commit f0b70fd

Please sign in to comment.