git: 28fcacd08e58 - main - security/hashcat: use -O0 on the file that causes clang to stall
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Aug 2025 13:36:33 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=28fcacd08e580af45835a12aee8d8f100c85bdd4
commit 28fcacd08e580af45835a12aee8d8f100c85bdd4
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-08-28 13:34:44 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-08-28 13:36:30 +0000
security/hashcat: use -O0 on the file that causes clang to stall
Reported by: danfe
---
security/hashcat/Makefile | 7 +------
security/hashcat/files/patch-src_Makefile | 14 +++++++++++++-
2 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/security/hashcat/Makefile b/security/hashcat/Makefile
index 49f21d6f75be..6a32d8830b52 100644
--- a/security/hashcat/Makefile
+++ b/security/hashcat/Makefile
@@ -1,6 +1,7 @@
PORTNAME= hashcat
PORTVERSION= 6.2.6
DISTVERSIONPREFIX= v
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security
@@ -43,12 +44,6 @@ BRAIN_DESC= Build Hashcat Brain
BRAIN_MAKE_ARGS_OFF= ENABLE_BRAIN=0
BRAIN_CFLAGS= -DWITH_BRAIN -Ideps/git/xxHash
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == powerpc64le
-USE_GCC= yes:build
-.endif
-
pre-install:
${STRIP_CMD} ${WRKSRC}/libhashcat.so.${PORTVERSION}
${STRIP_CMD} ${WRKSRC}/modules/*.so
diff --git a/security/hashcat/files/patch-src_Makefile b/security/hashcat/files/patch-src_Makefile
index 4e42021a7a6d..6b66a129610e 100644
--- a/security/hashcat/files/patch-src_Makefile
+++ b/security/hashcat/files/patch-src_Makefile
@@ -20,7 +20,19 @@
CFLAGS_UNRAR += -Wno-misleading-indentation
endif
CFLAGS_UNRAR += -Wno-missing-braces
-@@ -651,10 +653,10 @@ $(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)
+@@ -608,6 +610,11 @@ uninstall:
+ ## native compiled hashcat library and frontend
+ ##
+
++ifeq ($(shell uname -p),powerpc64le)
++obj/emu_inc_cipher_serpent.NATIVE.o: src/emu_inc_cipher_serpent.c
++ $(CC) -c $(CCFLAGS) $(CFLAGS_NATIVE) -O0 $< -o $@ -fpic
++endif
++
+ obj/%.NATIVE.o: src/%.c
+ $(CC) -c $(CCFLAGS) $(CFLAGS_NATIVE) $< -o $@ -fpic
+
+@@ -651,10 +658,10 @@ $(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)
ifeq ($(SHARED),1)
$(HASHCAT_FRONTEND): src/main.c $(HASHCAT_LIBRARY)