pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

hashcat: partially fix the build for NetBSD



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Thu Jan 6 00:11:25 2022 +0100
Changeset:	229e11661da816db1d762667fc77913617e8060b

Modified Files:
	hashcat/distinfo
Added Files:
	hashcat/patches/patch-src_terminal.c

Log Message:
hashcat: partially fix the build for NetBSD

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=229e11661da816db1d762667fc77913617e8060b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 hashcat/distinfo                     |  3 ++-
 hashcat/patches/patch-src_terminal.c | 15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)

diffs:
diff --git a/hashcat/distinfo b/hashcat/distinfo
index 2728969a7c..0f9a78ea1e 100644
--- a/hashcat/distinfo
+++ b/hashcat/distinfo
@@ -6,4 +6,5 @@ Size (hashcat-6.2.5.tar.gz) = 6341872 bytes
 SHA1 (patch-include_sort__r.h) = 710a6866d1f1b0ba4c499e07897cdaaed5d2f2cb
 SHA1 (patch-src_Makefile) = 2781200f402b5cebaded0cce72023d6e1cda7ef9
 SHA1 (patch-src_affinity.c) = 6054fea2478244292bd855bb8eb8d064aa0d81d1
-SHA1 (patch-src_folder.c) = f4764cf02338e9f7ecced7c1bac28f1943cdac85
+SHA1 (patch-src_folder.c) = dfac6b9c75ce0e6e694eb2f3e902a040226b2e6e
+SHA1 (patch-src_terminal.c) = 40b52cdb1f9030b9ad7649bf0a9a4cf17b1f52fe
diff --git a/hashcat/patches/patch-src_terminal.c b/hashcat/patches/patch-src_terminal.c
new file mode 100644
index 0000000000..08e0fd568a
--- /dev/null
+++ b/hashcat/patches/patch-src_terminal.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix the build for FreeBSD and NetBSD
+
+--- src/terminal.c.orig	2021-11-21 15:39:01.000000000 +0000
++++ src/terminal.c
+@@ -439,7 +439,7 @@ void SetConsoleWindowSize (const int x)
+ }
+ #endif
+ 
+-#if defined (__linux__) || defined (__CYGWIN__)
++#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__linux__) || defined (__CYGWIN__)
+ static struct termios savemodes;
+ static int havemodes = 0;
+ 


Home | Main Index | Thread Index | Old Index