1 |
commit: 3ef9576b099dfc7aa84ab72dc8879f02da693762 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 31 22:41:49 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 31 23:13:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ef9576b |
7 |
|
8 |
app-crypt/mhash: style changes |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
.../mhash-0.9.9-autotools-namespace-stomping.patch | 15 ++++------ |
13 |
.../mhash/files/mhash-0.9.9-fix-mem-leak.patch | 4 +-- |
14 |
.../files/mhash-0.9.9-fix-snefru-segfault.patch | 4 +-- |
15 |
.../files/mhash-0.9.9-fix-whirlpool-segfault.patch | 4 +-- |
16 |
app-crypt/mhash/files/mhash-0.9.9.9-align.patch | 5 ++-- |
17 |
.../mhash/files/mhash-0.9.9.9-alignment.patch | 5 ++-- |
18 |
.../files/mhash-0.9.9.9-force64bit-tiger.patch | 5 ++-- |
19 |
.../mhash-0.9.9.9-remove_premature_free.patch | 5 ++-- |
20 |
app-crypt/mhash/mhash-0.9.9.9-r2.ebuild | 32 ++++++++++------------ |
21 |
9 files changed, 35 insertions(+), 44 deletions(-) |
22 |
|
23 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9-autotools-namespace-stomping.patch b/app-crypt/mhash/files/mhash-0.9.9-autotools-namespace-stomping.patch |
24 |
index 19981b6b907..4bccf6765ae 100644 |
25 |
--- a/app-crypt/mhash/files/mhash-0.9.9-autotools-namespace-stomping.patch |
26 |
+++ b/app-crypt/mhash/files/mhash-0.9.9-autotools-namespace-stomping.patch |
27 |
@@ -7,9 +7,8 @@ Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=221093 |
28 |
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=152625&action=view |
29 |
Signed-off-by: Peter Alfredson <loki_val@g.o> |
30 |
|
31 |
-diff -NrU5 mhash-0.9.9.orig/configure.in mhash-0.9.9/configure.in |
32 |
---- mhash-0.9.9.orig/configure.in 2008-05-09 16:17:52.000000000 +0200 |
33 |
-+++ mhash-0.9.9/configure.in 2008-05-09 16:18:20.000000000 +0200 |
34 |
+--- a/configure.in |
35 |
++++ b/configure.in |
36 |
@@ -4,10 +4,11 @@ |
37 |
AC_CANONICAL_TARGET |
38 |
AC_CONFIG_SRCDIR([lib/mhash.c]) |
39 |
@@ -22,9 +21,8 @@ diff -NrU5 mhash-0.9.9.orig/configure.in mhash-0.9.9/configure.in |
40 |
|
41 |
dnl Check system. |
42 |
|
43 |
-diff -NrU5 mhash-0.9.9.orig/include/mutils/config.h.in mhash-0.9.9/include/mutils/config.h.in |
44 |
---- mhash-0.9.9.orig/include/mutils/config.h.in 1970-01-01 01:00:00.000000000 +0100 |
45 |
-+++ mhash-0.9.9/include/mutils/config.h.in 2008-05-09 16:18:20.000000000 +0200 |
46 |
+--- a/include/mutils/config.h.in |
47 |
++++ b/include/mutils/config.h.in |
48 |
@@ -0,0 +1,22 @@ |
49 |
+/* Name of package */ |
50 |
+#undef PACKAGE |
51 |
@@ -48,9 +46,8 @@ diff -NrU5 mhash-0.9.9.orig/include/mutils/config.h.in mhash-0.9.9/include/mutil |
52 |
+#undef VERSION |
53 |
+ |
54 |
+ |
55 |
-diff -NrU5 mhash-0.9.9.orig/include/mutils/mhash_config.h.in mhash-0.9.9/include/mutils/mhash_config.h.in |
56 |
---- mhash-0.9.9.orig/include/mutils/mhash_config.h.in 2008-05-09 16:17:52.000000000 +0200 |
57 |
-+++ mhash-0.9.9/include/mutils/mhash_config.h.in 2008-05-09 16:19:17.000000000 +0200 |
58 |
+--- a/include/mutils/mhash_config.h.in |
59 |
++++ b/include/mutils/mhash_config.h.in |
60 |
@@ -179,28 +179,10 @@ |
61 |
#undef MHASH_VERSION |
62 |
|
63 |
|
64 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9-fix-mem-leak.patch b/app-crypt/mhash/files/mhash-0.9.9-fix-mem-leak.patch |
65 |
index 74552499501..f6083eb180f 100644 |
66 |
--- a/app-crypt/mhash/files/mhash-0.9.9-fix-mem-leak.patch |
67 |
+++ b/app-crypt/mhash/files/mhash-0.9.9-fix-mem-leak.patch |
68 |
@@ -14,8 +14,8 @@ Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255006 |
69 |
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178560 |
70 |
Signed-off-by: Thomas Harning <harningt@×××××.com> |
71 |
|
72 |
---- mhash-0.9.9/lib/mhash.c 2007-02-21 01:18:46.000000000 -0500 |
73 |
-+++ mhash-0.9.9-new/lib/mhash.c 2009-01-15 01:57:53.000000000 -0500 |
74 |
+--- a/lib/mhash.c |
75 |
++++ b/lib/mhash.c |
76 |
@@ -719,6 +719,8 @@ |
77 |
mutils_memcpy( &ret->state_size, &mem[pos], sizeof(ret->state_size)); |
78 |
pos += sizeof( ret->state_size); |
79 |
|
80 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9-fix-snefru-segfault.patch b/app-crypt/mhash/files/mhash-0.9.9-fix-snefru-segfault.patch |
81 |
index c308269c1b2..6e9e0275b02 100644 |
82 |
--- a/app-crypt/mhash/files/mhash-0.9.9-fix-snefru-segfault.patch |
83 |
+++ b/app-crypt/mhash/files/mhash-0.9.9-fix-snefru-segfault.patch |
84 |
@@ -14,8 +14,8 @@ Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255131 |
85 |
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178666&action=view |
86 |
Signed-off-by: Thomas Harning <harningt@×××××.com> |
87 |
|
88 |
---- mhash-0.9.9/lib/snefru.c 2009-01-16 00:16:04.000000000 -0500 |
89 |
-+++ mhash-0.9.9-new/lib/snefru.c 2009-01-16 00:16:21.000000000 -0500 |
90 |
+--- a/lib/snefru.c |
91 |
++++ b/lib/snefru.c |
92 |
@@ -859,6 +859,8 @@ |
93 |
{ |
94 |
mutils_word32 i; |
95 |
|
96 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch b/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch |
97 |
index 6c79139d579..8437e624b2e 100644 |
98 |
--- a/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch |
99 |
+++ b/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch |
100 |
@@ -14,8 +14,8 @@ Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255131 |
101 |
Patch-URL: http://bugs.gentoo.org/attachment.cgi?id=178667&action=view |
102 |
Signed-off-by: Thomas Harning <harningt@×××××.com> |
103 |
|
104 |
---- mhash-0.9.9/lib/whirlpool.c 2006-01-08 03:14:47.000000000 -0500 |
105 |
-+++ mhash-0.9.9-new/lib/whirlpool.c 2009-01-16 00:17:34.000000000 -0500 |
106 |
+--- a/lib/whirlpool.c |
107 |
++++ b/lib/whirlpool.c |
108 |
@@ -970,6 +970,8 @@ |
109 |
mutils_word8 * digest) |
110 |
{ |
111 |
|
112 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9.9-align.patch b/app-crypt/mhash/files/mhash-0.9.9.9-align.patch |
113 |
index 04bb310aa77..81486034cb6 100644 |
114 |
--- a/app-crypt/mhash/files/mhash-0.9.9.9-align.patch |
115 |
+++ b/app-crypt/mhash/files/mhash-0.9.9.9-align.patch |
116 |
@@ -1,6 +1,5 @@ |
117 |
-diff -up mhash-0.9.9.9/lib/stdfns.c.BAD mhash-0.9.9.9/lib/stdfns.c |
118 |
---- mhash-0.9.9.9/lib/stdfns.c.BAD 2009-07-02 16:38:43.217029623 -0400 |
119 |
-+++ mhash-0.9.9.9/lib/stdfns.c 2009-07-02 16:41:58.647120391 -0400 |
120 |
+--- a/lib/stdfns.c |
121 |
++++ b/lib/stdfns.c |
122 |
@@ -152,6 +152,18 @@ mutils_bzero(void *s, __const mutils_wor |
123 |
} |
124 |
} |
125 |
|
126 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9.9-alignment.patch b/app-crypt/mhash/files/mhash-0.9.9.9-alignment.patch |
127 |
index 04df22167a3..0df89bc8486 100644 |
128 |
--- a/app-crypt/mhash/files/mhash-0.9.9.9-alignment.patch |
129 |
+++ b/app-crypt/mhash/files/mhash-0.9.9.9-alignment.patch |
130 |
@@ -1,6 +1,5 @@ |
131 |
-diff -up mhash-0.9.9.9/lib/stdfns.c.BAD mhash-0.9.9.9/lib/stdfns.c |
132 |
---- mhash-0.9.9.9/lib/stdfns.c.BAD 2009-07-21 12:05:40.139461097 -0400 |
133 |
-+++ mhash-0.9.9.9/lib/stdfns.c 2009-07-21 12:06:52.151190927 -0400 |
134 |
+--- a/lib/stdfns.c |
135 |
++++ b/lib/stdfns.c |
136 |
@@ -378,6 +378,12 @@ mutils_memmove(void *dest, __const void |
137 |
bigptr1 = (mutils_word32 *) dest; |
138 |
bigptr2 = (mutils_word32 *) src; |
139 |
|
140 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9.9-force64bit-tiger.patch b/app-crypt/mhash/files/mhash-0.9.9.9-force64bit-tiger.patch |
141 |
index 2248bcc6a30..08f18d45828 100644 |
142 |
--- a/app-crypt/mhash/files/mhash-0.9.9.9-force64bit-tiger.patch |
143 |
+++ b/app-crypt/mhash/files/mhash-0.9.9.9-force64bit-tiger.patch |
144 |
@@ -1,6 +1,5 @@ |
145 |
-diff -up mhash-0.9.9.9/lib/tiger.c.BAD mhash-0.9.9.9/lib/tiger.c |
146 |
---- mhash-0.9.9.9/lib/tiger.c.BAD 2009-07-02 16:42:47.683029940 -0400 |
147 |
-+++ mhash-0.9.9.9/lib/tiger.c 2009-07-02 16:43:46.085049317 -0400 |
148 |
+--- a/lib/tiger.c |
149 |
++++ b/lib/tiger.c |
150 |
@@ -252,7 +252,9 @@ void tiger_update(struct tiger_ctx *ctx, |
151 |
void tiger_final(struct tiger_ctx *ctx) |
152 |
{ |
153 |
|
154 |
diff --git a/app-crypt/mhash/files/mhash-0.9.9.9-remove_premature_free.patch b/app-crypt/mhash/files/mhash-0.9.9.9-remove_premature_free.patch |
155 |
index 5ed4ecbe629..f81ec66b6f9 100644 |
156 |
--- a/app-crypt/mhash/files/mhash-0.9.9.9-remove_premature_free.patch |
157 |
+++ b/app-crypt/mhash/files/mhash-0.9.9.9-remove_premature_free.patch |
158 |
@@ -1,6 +1,5 @@ |
159 |
-diff -ru mhash-0.9.9.9.orig/src/keygen_test.c mhash-0.9.9.9/src/keygen_test.c |
160 |
---- mhash-0.9.9.9.orig/src/keygen_test.c 2007-02-21 07:39:08.000000000 +0100 |
161 |
-+++ mhash-0.9.9.9/src/keygen_test.c 2009-12-04 01:29:16.000000000 +0100 |
162 |
+--- a/src/keygen_test.c |
163 |
++++ b/src/keygen_test.c |
164 |
@@ -121,8 +121,6 @@ |
165 |
|
166 |
mhash_keygen_ext(KEYGEN_S2K_SALTED, data, key, keysize, password, passlen); |
167 |
|
168 |
diff --git a/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild b/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild |
169 |
index 7e884b399b2..ac1dfcae39a 100644 |
170 |
--- a/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild |
171 |
+++ b/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild |
172 |
@@ -3,7 +3,7 @@ |
173 |
|
174 |
EAPI=7 |
175 |
|
176 |
-DESCRIPTION="library providing a uniform interface to a large number of hash algorithms" |
177 |
+DESCRIPTION="Library providing a uniform interface to a large number of hash algorithms" |
178 |
HOMEPAGE="http://mhash.sourceforge.net/" |
179 |
SRC_URI="mirror://sourceforge/mhash/${P}.tar.gz" |
180 |
|
181 |
@@ -15,26 +15,23 @@ IUSE="static-libs" |
182 |
BDEPEND="dev-lang/perl" # pod2html |
183 |
|
184 |
PATCHES=( |
185 |
- "${FILESDIR}/${PN}-0.9.9-fix-mem-leak.patch" |
186 |
- "${FILESDIR}/${PN}-0.9.9-fix-snefru-segfault.patch" |
187 |
- "${FILESDIR}/${PN}-0.9.9-fix-whirlpool-segfault.patch" |
188 |
- "${FILESDIR}/${PN}-0.9.9-autotools-namespace-stomping.patch" |
189 |
- "${FILESDIR}/${P}-remove_premature_free.patch" |
190 |
- "${FILESDIR}/${P}-force64bit-tiger.patch" |
191 |
- "${FILESDIR}/${P}-align.patch" |
192 |
- "${FILESDIR}/${P}-alignment.patch" |
193 |
+ "${FILESDIR}"/${PN}-0.9.9-fix-mem-leak.patch |
194 |
+ "${FILESDIR}"/${PN}-0.9.9-fix-snefru-segfault.patch |
195 |
+ "${FILESDIR}"/${PN}-0.9.9-fix-whirlpool-segfault.patch |
196 |
+ "${FILESDIR}"/${PN}-0.9.9-autotools-namespace-stomping.patch |
197 |
+ "${FILESDIR}"/${P}-remove_premature_free.patch |
198 |
+ "${FILESDIR}"/${P}-force64bit-tiger.patch |
199 |
+ "${FILESDIR}"/${P}-align.patch |
200 |
+ "${FILESDIR}"/${P}-alignment.patch |
201 |
) |
202 |
|
203 |
-DOCS=( |
204 |
- doc/example.c |
205 |
- doc/skid2-authentication |
206 |
-) |
207 |
-HTML_DOCS=( |
208 |
- doc/mhash.html |
209 |
-) |
210 |
+DOCS=( doc/example.c doc/skid2-authentication ) |
211 |
+ |
212 |
+HTML_DOCS=( doc/mhash.html ) |
213 |
|
214 |
src_prepare() { |
215 |
default |
216 |
+ |
217 |
sed -i \ |
218 |
-e 's/--netscape//' \ |
219 |
"${S}"/doc/Makefile.in || die |
220 |
@@ -49,10 +46,11 @@ src_configure() { |
221 |
|
222 |
src_compile() { |
223 |
default |
224 |
+ |
225 |
emake -C doc mhash.html |
226 |
} |
227 |
|
228 |
src_install() { |
229 |
default |
230 |
- find "${D}" -name '*.la' -delete || die |
231 |
+ find "${ED}" -name '*.la' -delete || die |
232 |
} |