diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-12 21:55:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-12 21:55:15 +0000 |
commit | 7218e1b46bceac05841e90472501742d905fb3fc (patch) | |
tree | 56fae051db521b8fce8014cbc8b11484885b14b3 /app-crypt/johntheripper-jumbo/files | |
parent | 6d691ad5b6239929063441bbd14c489e92e7396e (diff) |
gentoo resync : 12.03.2021
Diffstat (limited to 'app-crypt/johntheripper-jumbo/files')
-rw-r--r-- | app-crypt/johntheripper-jumbo/files/1.8.0-gcc5.patch | 63 | ||||
-rw-r--r-- | app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-opencl-fix.patch | 12 |
2 files changed, 12 insertions, 63 deletions
diff --git a/app-crypt/johntheripper-jumbo/files/1.8.0-gcc5.patch b/app-crypt/johntheripper-jumbo/files/1.8.0-gcc5.patch deleted file mode 100644 index f2a7984955ab..000000000000 --- a/app-crypt/johntheripper-jumbo/files/1.8.0-gcc5.patch +++ /dev/null @@ -1,63 +0,0 @@ -From e2e868db3e153b3f959e119a51703d4afb99c624 Mon Sep 17 00:00:00 2001 -From: magnum <john.magnum@hushmail.com> -Date: Wed, 13 May 2015 12:05:00 +0200 -Subject: [PATCH] Add another solution to #1093. This make it possible to build - using gcc 5 without --std=gnu89 (although I kept the latter for now). See - also #1250. - ---- - src/DES_bs_b.c | 3 +++ - src/MD5_std.c | 12 ++++++++++++ - 2 files changed, 15 insertions(+) - -diff --git a/src/DES_bs_b.c b/src/DES_bs_b.c -index 306b4e4..18c9235 100644 ---- a/src/DES_bs_b.c -+++ b/src/DES_bs_b.c -@@ -1272,6 +1272,9 @@ static MAYBE_INLINE void DES_bs_finalize_keys(void) - #endif - - #if DES_bs_mt -+#if __GNUC__ >= 5 -+extern -+#endif - MAYBE_INLINE void DES_bs_set_salt_for_thread(int t, unsigned int salt) - #else - void DES_bs_set_salt(ARCH_WORD salt) -diff --git a/src/MD5_std.c b/src/MD5_std.c -index 6bdcd35..1eec9b4 100644 ---- a/src/MD5_std.c -+++ b/src/MD5_std.c -@@ -496,9 +496,15 @@ extern void MD5_body(MD5_word x[15], MD5_word out[4]); - #if MD5_std_mt - #define MD5_body(x, out) \ - MD5_body_for_thread(t, x, out) -+#if __GNUC__ >= 5 -+extern -+#endif - MAYBE_INLINE_BODY void MD5_body_for_thread(int t, - MD5_word x[15], MD5_word out[4]) - #else -+#if __GNUC__ >= 5 -+extern -+#endif - MAYBE_INLINE_BODY void MD5_body(MD5_word x[15], MD5_word out[4]) - #endif - { -@@ -595,10 +601,16 @@ MAYBE_INLINE_BODY void MD5_body(MD5_word x[15], MD5_word out[4]) - #if MD5_std_mt - #define MD5_body(x0, x1, out0, out1) \ - MD5_body_for_thread(t, x0, x1, out0, out1) -+#if __GNUC__ >= 5 -+extern -+#endif - MAYBE_INLINE_BODY void MD5_body_for_thread(int t, - MD5_word x0[15], MD5_word x1[15], - MD5_word out0[4], MD5_word out1[4]) - #else -+#if __GNUC__ >= 5 -+extern -+#endif - MAYBE_INLINE_BODY void MD5_body(MD5_word x0[15], MD5_word x1[15], - MD5_word out0[4], MD5_word out1[4]) - #endif diff --git a/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-opencl-fix.patch b/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-opencl-fix.patch new file mode 100644 index 000000000000..6fe7693276be --- /dev/null +++ b/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-opencl-fix.patch @@ -0,0 +1,12 @@ +--- a/src/opencl_common.h 2020-08-03 15:49:20.000000000 +0100 ++++ b/src/opencl_common.h 2020-08-03 15:55:23.081101690 +0100 +@@ -81,6 +81,9 @@ + + #ifndef CL_DEVICE_TOPOLOGY_AMD + #define CL_DEVICE_TOPOLOGY_AMD 0x4037 ++#endif ++ ++#ifndef CL_DEVICE_TOPOLOGY_TYPE_PCIE_AMD + typedef union { + struct { + cl_uint type; |