<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/db83b4fe87edd2f06ecf0bc947338dacc79bf94f">https://github.com/macports/macports-ports/commit/db83b4fe87edd2f06ecf0bc947338dacc79bf94f</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit db83b4fe87edd2f06ecf0bc947338dacc79bf94f
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Sat Jul 13 00:00:04 2024 -0400
<span style='display:block; white-space:pre;color:#404040;'> hashcat: patch makefile to control build arch
</span>---
security/hashcat/Portfile | 10 +++++++++-
security/hashcat/files/patch-remove-arch.patch | 18 ++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/hashcat/Portfile b/security/hashcat/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 28f9cbd895c..6818f8306db 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/security/hashcat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/hashcat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup makefile 1.0
</span>
github.setup hashcat hashcat 6.2.6 v
github.tarball_from archive
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
categories security
license MIT
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,3 +28,11 @@ build.target {}
</span> checksums rmd160 63fcf5f9230208dc6fa3da86212f66f5df8b836c \
sha256 b25e1077bcf34908cc8f18c1a69a2ec98b047b2cbcf0f51144dcf3ba1e0b7b2a \
size 14234640
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-remove-arch.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Code needs C11, numerous warnings like:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# warning: redefinition of typedef 'UINT_PTR' is a C11 feature [-Wtypedef-redefinition]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|-std=gnu99|-std=gnu11|" ${worksrcpath}/src/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/security/hashcat/files/patch-remove-arch.patch b/security/hashcat/files/patch-remove-arch.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..49b40500d5d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/security/hashcat/files/patch-remove-arch.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/Makefile.old 2022-09-02 10:58:13
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/Makefile 2024-07-12 22:38:11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -349,15 +349,6 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LFLAGS_NATIVE += -lpthread
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LFLAGS_NATIVE += -liconv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifeq ($(IS_APPLE_SILICON),1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS_NATIVE += -arch arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS_NATIVE += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-ifeq ($(SHARED),1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LFLAGS_NATIVE += -arch arm64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-LFLAGS_NATIVE += -arch x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ endif # Darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ifeq ($(UNAME),CYGWIN)
</span></pre><pre style='margin:0'>
</pre>