Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md5deep: support for ARM #70616

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Formula/md5deep.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ class Md5deep < Formula
depends_on "autoconf" => :build
depends_on "automake" => :build

# Fix compilation error due to very old GNU config scripts in source repo
# reported upstream at https://github.com/jessek/hashdeep/issues/400
patch :DATA if Hardware::CPU.arm?

# Fix compilation error due to pointer comparison
if MacOS.version >= :sierra
patch do
Expand All @@ -41,3 +45,19 @@ def install
shell_output("#{bin}/sha1deep -b testfile.txt").strip
end
end

__END__
diff --git a/config.guess b/config.guess
index cc726cd..37d7e9d 100755
--- a/config.guess
+++ b/config.guess
@@ -1130,6 +1130,9 @@ EOF
*:Rhapsody:*:*)
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
exit 0 ;;
+ arm64:Darwin:*:*)
+ echo arm-apple-darwin"$UNAME_RELEASE"
+ exit ;;
*:Darwin:*:*)
case `uname -p` in
*86) UNAME_PROCESSOR=i686 ;;