1 |
commit: f7e2367203f61eb544373ea641a70b68aea579a0 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 25 02:08:50 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 25 19:31:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f7e23672 |
7 |
|
8 |
app-crypt/johntheripper-jumbo: add virtual/libcrypt dependency, fix gcc 11 |
9 |
|
10 |
Needed for upcoming libxcrypt migration. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/786651 |
13 |
Acked-by: David Seifert <soap <AT> gentoo.org> |
14 |
Reported-by: John Helmert III <ajak <AT> gentoo.org> |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
.../files/johntheripper-jumbo-1.9.0-gcc11.patch | 53 ++++++++++++++++++++++ |
18 |
....ebuild => johntheripper-jumbo-1.9.0-r3.ebuild} | 10 ++-- |
19 |
.../johntheripper-jumbo-9999.ebuild | 5 +- |
20 |
3 files changed, 63 insertions(+), 5 deletions(-) |
21 |
|
22 |
diff --git a/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-gcc11.patch b/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-gcc11.patch |
23 |
new file mode 100644 |
24 |
index 00000000000..2901c5bc4bd |
25 |
--- /dev/null |
26 |
+++ b/app-crypt/johntheripper-jumbo/files/johntheripper-jumbo-1.9.0-gcc11.patch |
27 |
@@ -0,0 +1,53 @@ |
28 |
+https://bugs.gentoo.org/786651 |
29 |
+https://github.com/openwall/john/commit/8152ac071bce1ebc98fac6bed962e90e9b92d8cf.patch |
30 |
+ |
31 |
+From 8152ac071bce1ebc98fac6bed962e90e9b92d8cf Mon Sep 17 00:00:00 2001 |
32 |
+From: Ferry Huberts <ferry.huberts@×××××××.nl> |
33 |
+Date: Tue, 9 Mar 2021 22:04:46 +0100 |
34 |
+Subject: [PATCH] Fix alignment compile errors on GCC 11 |
35 |
+ |
36 |
+Signed-off-by: Ferry Huberts <ferry.huberts@×××××××.nl> |
37 |
+--- |
38 |
+ src/blake2.h | 8 ++++---- |
39 |
+ 1 file changed, 4 insertions(+), 4 deletions(-) |
40 |
+ |
41 |
+diff --git a/src/blake2.h b/src/blake2.h |
42 |
+index b05208117e..b4398f9e13 100644 |
43 |
+--- a/src/blake2.h |
44 |
++++ b/src/blake2.h |
45 |
+@@ -57,7 +57,7 @@ extern "C" { |
46 |
+ uint8_t personal[BLAKE2S_PERSONALBYTES]; // 32 |
47 |
+ } blake2s_param; |
48 |
+ |
49 |
+- JTR_ALIGN( 64 ) typedef struct __blake2s_state |
50 |
++ typedef struct JTR_ALIGN( 64 ) __blake2s_state |
51 |
+ { |
52 |
+ uint32_t h[8]; |
53 |
+ uint32_t t[2]; |
54 |
+@@ -82,7 +82,7 @@ extern "C" { |
55 |
+ uint8_t personal[BLAKE2B_PERSONALBYTES]; // 64 |
56 |
+ } blake2b_param; |
57 |
+ |
58 |
+- JTR_ALIGN( 64 ) typedef struct __blake2b_state |
59 |
++ typedef struct JTR_ALIGN( 64 ) __blake2b_state |
60 |
+ { |
61 |
+ uint64_t h[8]; |
62 |
+ uint64_t t[2]; |
63 |
+@@ -94,7 +94,7 @@ extern "C" { |
64 |
+ #if defined(JOHN_NO_SIMD) || (!defined(__SSE2__) && !defined(__SSE4_1__) && !defined(__XOP__)) |
65 |
+ typedef struct __blake2sp_state |
66 |
+ #else |
67 |
+- JTR_ALIGN( 64 ) typedef struct __blake2sp_state |
68 |
++ typedef struct JTR_ALIGN( 64 ) __blake2sp_state |
69 |
+ #endif |
70 |
+ { |
71 |
+ blake2s_state S[8][1]; |
72 |
+@@ -106,7 +106,7 @@ extern "C" { |
73 |
+ #if defined(JOHN_NO_SIMD) || (!defined(__SSE2__) && !defined(__SSE4_1__) && !defined(__XOP__)) |
74 |
+ typedef struct __blake2bp_state |
75 |
+ #else |
76 |
+- JTR_ALIGN( 64 ) typedef struct __blake2bp_state |
77 |
++ typedef struct JTR_ALIGN( 64 ) __blake2bp_state |
78 |
+ #endif |
79 |
+ { |
80 |
+ blake2b_state S[4][1]; |
81 |
|
82 |
diff --git a/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r2.ebuild b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r3.ebuild |
83 |
similarity index 94% |
84 |
rename from app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r2.ebuild |
85 |
rename to app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r3.ebuild |
86 |
index 12b9fbef470..632f59d7a16 100644 |
87 |
--- a/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r2.ebuild |
88 |
+++ b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-1.9.0-r3.ebuild |
89 |
@@ -5,7 +5,7 @@ EAPI=7 |
90 |
|
91 |
inherit flag-o-matic toolchain-funcs pax-utils |
92 |
|
93 |
-DESCRIPTION="fast password cracker" |
94 |
+DESCRIPTION="Fast password cracker" |
95 |
HOMEPAGE="http://www.openwall.com/john/" |
96 |
|
97 |
MY_PN="JohnTheRipper" |
98 |
@@ -28,18 +28,22 @@ SLOT="0" |
99 |
IUSE="custom-cflags kerberos mpi opencl openmp pcap" |
100 |
|
101 |
DEPEND=">=dev-libs/openssl-1.0.1:0= |
102 |
+ virtual/libcrypt:= |
103 |
mpi? ( virtual/mpi ) |
104 |
opencl? ( virtual/opencl ) |
105 |
kerberos? ( virtual/krb5 ) |
106 |
pcap? ( net-libs/libpcap ) |
107 |
- dev-libs/gmp:* |
108 |
+ dev-libs/gmp:= |
109 |
sys-libs/zlib |
110 |
app-arch/bzip2" |
111 |
|
112 |
RDEPEND="${DEPEND} |
113 |
!app-crypt/johntheripper" |
114 |
|
115 |
-PATCHES=( "${FILESDIR}/${P}-opencl-fix.patch" ) |
116 |
+PATCHES=( |
117 |
+ "${FILESDIR}/${P}-opencl-fix.patch" |
118 |
+ "${FILESDIR}/${P}-gcc11.patch" |
119 |
+) |
120 |
|
121 |
pkg_setup() { |
122 |
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then |
123 |
|
124 |
diff --git a/app-crypt/johntheripper-jumbo/johntheripper-jumbo-9999.ebuild b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-9999.ebuild |
125 |
index 40bb28803b1..826ff08b2f5 100644 |
126 |
--- a/app-crypt/johntheripper-jumbo/johntheripper-jumbo-9999.ebuild |
127 |
+++ b/app-crypt/johntheripper-jumbo/johntheripper-jumbo-9999.ebuild |
128 |
@@ -5,7 +5,7 @@ EAPI=7 |
129 |
|
130 |
inherit flag-o-matic toolchain-funcs pax-utils |
131 |
|
132 |
-DESCRIPTION="fast password cracker" |
133 |
+DESCRIPTION="Fast password cracker" |
134 |
HOMEPAGE="http://www.openwall.com/john/" |
135 |
|
136 |
MY_PN="JohnTheRipper" |
137 |
@@ -28,11 +28,12 @@ SLOT="0" |
138 |
IUSE="custom-cflags kerberos mpi opencl openmp pcap" |
139 |
|
140 |
DEPEND=">=dev-libs/openssl-1.0.1:0= |
141 |
+ virtual/libcrypt:= |
142 |
mpi? ( virtual/mpi ) |
143 |
opencl? ( virtual/opencl ) |
144 |
kerberos? ( virtual/krb5 ) |
145 |
pcap? ( net-libs/libpcap ) |
146 |
- dev-libs/gmp:* |
147 |
+ dev-libs/gmp:= |
148 |
sys-libs/zlib |
149 |
app-arch/bzip2" |