1 |
commit: 89c3f8595f9ff13308caa5f56d43117295d2660a |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 2 16:58:11 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 2 21:38:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c3f859 |
7 |
|
8 |
net-misc/memcached: remove unused patch |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/19307 |
11 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
12 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
....21-hash-fix-build-failure-against-gcc-10.patch | 56 ---------------------- |
16 |
1 file changed, 56 deletions(-) |
17 |
|
18 |
diff --git a/net-misc/memcached/files/memcached-1.5.21-hash-fix-build-failure-against-gcc-10.patch b/net-misc/memcached/files/memcached-1.5.21-hash-fix-build-failure-against-gcc-10.patch |
19 |
deleted file mode 100644 |
20 |
index 527d4607316..00000000000 |
21 |
--- a/net-misc/memcached/files/memcached-1.5.21-hash-fix-build-failure-against-gcc-10.patch |
22 |
+++ /dev/null |
23 |
@@ -1,56 +0,0 @@ |
24 |
-From 63b8e76067523a02a3e0215db1aef0b34edcf708 Mon Sep 17 00:00:00 2001 |
25 |
-From: Sergei Trofimovich <slyfox@g.o> |
26 |
-Date: Thu, 23 Jan 2020 22:16:36 +0000 |
27 |
-Subject: [PATCH] hash: fix build failure against gcc-10 |
28 |
- |
29 |
-On gcc-10 (and gcc-9 -fno-common) build fails as: |
30 |
- |
31 |
-``` |
32 |
-gcc -g -O2 -pthread -pthread -Wall -Werror -pedantic -Wmissing-prototypes \ |
33 |
- -Wmissing-declarations -Wredundant-decls -o memcached ... -levent |
34 |
-ld: memcached-hash.o:memcached/hash.h:5: |
35 |
- multiple definition of `hash'; memcached-memcached.o:memcached/hash.h:5: first defined here |
36 |
-``` |
37 |
- |
38 |
-gcc-10 will change the default from -fcommon to fno-common: |
39 |
-https://gcc.gnu.org/PR85678. |
40 |
- |
41 |
-The error also happens if CFLAGS=-fno-common passed explicitly. |
42 |
- |
43 |
-Reported-by: Brian Evans |
44 |
-Bug: https://bugs.gentoo.org/706196 |
45 |
-Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
46 |
---- |
47 |
- hash.c | 2 ++ |
48 |
- hash.h | 2 +- |
49 |
- 2 files changed, 3 insertions(+), 1 deletion(-) |
50 |
- |
51 |
-diff --git a/hash.c b/hash.c |
52 |
-index a0c3036..b5ff28a 100644 |
53 |
---- a/hash.c |
54 |
-+++ b/hash.c |
55 |
-@@ -4,6 +4,8 @@ |
56 |
- #include "jenkins_hash.h" |
57 |
- #include "murmur3_hash.h" |
58 |
- |
59 |
-+hash_func hash; |
60 |
-+ |
61 |
- int hash_init(enum hashfunc_type type) { |
62 |
- switch(type) { |
63 |
- case JENKINS_HASH: |
64 |
-diff --git a/hash.h b/hash.h |
65 |
-index 059d1e2..3b2a984 100644 |
66 |
---- a/hash.h |
67 |
-+++ b/hash.h |
68 |
-@@ -2,7 +2,7 @@ |
69 |
- #define HASH_H |
70 |
- |
71 |
- typedef uint32_t (*hash_func)(const void *key, size_t length); |
72 |
--hash_func hash; |
73 |
-+extern hash_func hash; |
74 |
- |
75 |
- enum hashfunc_type { |
76 |
- JENKINS_HASH=0, MURMUR3_HASH |
77 |
--- |
78 |
-2.25.0 |
79 |
- |