1 |
commit: a0111536f393cd3776de329f52d1f3b2ce5dfec4 |
2 |
Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jan 31 07:17:24 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 3 06:37:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0111536 |
7 |
|
8 |
dev-libs/concurrencykit: bump to 0.7.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/696418 |
11 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
12 |
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com> |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
dev-libs/concurrencykit/Manifest | 1 + |
16 |
.../concurrencykit/concurrencykit-0.7.0.ebuild | 28 ++++++++++++++++ |
17 |
.../concurrencykit/files/concurrencykit-doc.patch | 24 ++++++++++++++ |
18 |
.../files/concurrencykit-glibc-2.30.patch | 37 ++++++++++++++++++++++ |
19 |
4 files changed, 90 insertions(+) |
20 |
|
21 |
diff --git a/dev-libs/concurrencykit/Manifest b/dev-libs/concurrencykit/Manifest |
22 |
index d73660a2410..32e70eae573 100644 |
23 |
--- a/dev-libs/concurrencykit/Manifest |
24 |
+++ b/dev-libs/concurrencykit/Manifest |
25 |
@@ -1,2 +1,3 @@ |
26 |
DIST concurrencykit-0.5.2.tar.gz 212783 BLAKE2B d2e3f28a21236c83835dda06fb4c6182b4ae1fe9e14c66d01ab9ccd2c94c4487d06fa668039f9d7d980a100e88bae570edf193a6955ece88cc306cc1c05670fd SHA512 69b4f8618a52e53f2b7c2e47a9d52773370ae74c89ca1de70c6dc7567b5a46b3f57dafa82d61a89525807672697e1cd75b83c3be56cd5a80c10b819e9d9d07b0 |
27 |
DIST concurrencykit-0.6.0.tar.gz 217198 BLAKE2B 5ba85bd111c06e7be7af5679227350efe187836e5cb2afc19bff4a8f0fbcd97e9631fad64397b0426e8020a6a0f103a0fbe3bf8f83810eaa8a3a1b429a3e8383 SHA512 4c75f1194a6ad9d3e51a4bad4802cc522df70870135e6e2db1e303d0df89d57e5dc7a73e924de49fe9641b3dcdc81b1a74a26aa7297cd06b7acb5cbf46c402f0 |
28 |
+DIST concurrencykit-0.7.0.tar.gz 245574 BLAKE2B 14c386eb35c76297933d2935cdfc1cb0d21071d4fe1784eeb27595c2e75a8edc5add349df6795d03372b30711cda4deeb7957bdcfd7e62ba89b254fb41ba6a55 SHA512 509fe5bc1575a6fd646d30fbcd74204ba4683092f154dc1fb55ed6fc17e734e17759bacfc3f42344db4c243ca6b239f7d207cf2ebc609e2a37d7ddfd1bdcc3a1 |
29 |
|
30 |
diff --git a/dev-libs/concurrencykit/concurrencykit-0.7.0.ebuild b/dev-libs/concurrencykit/concurrencykit-0.7.0.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..1d7428703ed |
33 |
--- /dev/null |
34 |
+++ b/dev-libs/concurrencykit/concurrencykit-0.7.0.ebuild |
35 |
@@ -0,0 +1,28 @@ |
36 |
+# Copyright 1999-2020 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+MY_PN="ck" |
42 |
+MY_P="${MY_PN}-${PV}" |
43 |
+ |
44 |
+DESCRIPTION="A library with concurrency related algorithms and data structures in C" |
45 |
+HOMEPAGE="http://concurrencykit.org" |
46 |
+SRC_URI="https://github.com/concurrencykit/ck/archive/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="Apache-2.0 BSD-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+# libck.so name collision #616762 |
53 |
+# these packages have nothing in common |
54 |
+RDEPEND="!sys-cluster/charm" |
55 |
+ |
56 |
+# https://github.com/concurrencykit/ck/issues/147 |
57 |
+# https://github.com/concurrencykit/ck/issues/150 |
58 |
+PATCHES=( |
59 |
+ "${FILESDIR}/${PN}-glibc-2.30.patch" |
60 |
+ "${FILESDIR}/${PN}-doc.patch" |
61 |
+) |
62 |
+ |
63 |
+S="${WORKDIR}/${MY_P}" |
64 |
|
65 |
diff --git a/dev-libs/concurrencykit/files/concurrencykit-doc.patch b/dev-libs/concurrencykit/files/concurrencykit-doc.patch |
66 |
new file mode 100644 |
67 |
index 00000000000..40aa466bb4e |
68 |
--- /dev/null |
69 |
+++ b/dev-libs/concurrencykit/files/concurrencykit-doc.patch |
70 |
@@ -0,0 +1,24 @@ |
71 |
+diff --git a/doc/Makefile.in b/doc/Makefile.in |
72 |
+index cbad704..f476925 100644 |
73 |
+--- a/doc/Makefile.in |
74 |
++++ b/doc/Makefile.in |
75 |
+@@ -1,7 +1,7 @@ |
76 |
+ .PHONY: clean install uninstall |
77 |
+ |
78 |
+ MANDIR=@MANDIR@ |
79 |
+-GZIP=@GZIP@ |
80 |
++GZIP=/bin/echo |
81 |
+ GZIP_SUFFIX=.3@GZIP_SUFFIX@ |
82 |
+ BUILD_DIR=@BUILD_DIR@ |
83 |
+ SRC_DIR=@SRC_DIR@ |
84 |
+@@ -206,7 +206,9 @@ refcheck: |
85 |
+ |
86 |
+ install: |
87 |
+ mkdir -p $(DESTDIR)/$(MANDIR)/man3 || exit |
88 |
+- cp *$(GZIP_SUFFIX) $(DESTDIR)/$(MANDIR)/man3 || exit |
89 |
++ for target in $(OBJECTS); do \ |
90 |
++ cp -v $$target $(DESTDIR)/$(MANDIR)/man3/$$target.3 || exit; \ |
91 |
++ done |
92 |
+ |
93 |
+ uninstall: |
94 |
+ for target in $(OBJECTS); do \ |
95 |
|
96 |
diff --git a/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch b/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch |
97 |
new file mode 100644 |
98 |
index 00000000000..452421c6312 |
99 |
--- /dev/null |
100 |
+++ b/dev-libs/concurrencykit/files/concurrencykit-glibc-2.30.patch |
101 |
@@ -0,0 +1,37 @@ |
102 |
+diff --git a/regressions/common.h b/regressions/common.h |
103 |
+index 6e53483d..9cdc690a 100644 |
104 |
+--- a/regressions/common.h |
105 |
++++ b/regressions/common.h |
106 |
+@@ -267,13 +267,11 @@ struct affinity { |
107 |
+ #define AFFINITY_INITIALIZER {0, 0} |
108 |
+ |
109 |
+ #ifdef __linux__ |
110 |
+-#ifndef gettid |
111 |
+ static pid_t |
112 |
+-gettid(void) |
113 |
++common_gettid(void) |
114 |
+ { |
115 |
+ return syscall(__NR_gettid); |
116 |
+ } |
117 |
+-#endif /* gettid */ |
118 |
+ |
119 |
+ CK_CC_UNUSED static int |
120 |
+ aff_iterate(struct affinity *acb) |
121 |
+@@ -285,7 +283,7 @@ aff_iterate(struct affinity *acb) |
122 |
+ CPU_ZERO(&s); |
123 |
+ CPU_SET(c % CORES, &s); |
124 |
+ |
125 |
+- if (sched_setaffinity(gettid(), sizeof(s), &s) != 0) |
126 |
++ if (sched_setaffinity(common_gettid(), sizeof(s), &s) != 0) |
127 |
+ perror("WARNING: Could not affine thread"); |
128 |
+ |
129 |
+ return 0; |
130 |
+@@ -300,7 +298,7 @@ aff_iterate_core(struct affinity *acb, unsigned int *core) |
131 |
+ CPU_ZERO(&s); |
132 |
+ CPU_SET((*core) % CORES, &s); |
133 |
+ |
134 |
+- if (sched_setaffinity(gettid(), sizeof(s), &s) != 0) |
135 |
++ if (sched_setaffinity(common_gettid(), sizeof(s), &s) != 0) |
136 |
+ perror("WARNING: Could not affine thread"); |
137 |
+ |
138 |
+ return 0; |