1 |
commit: 31bbdb905ea71cafecf3520aa371b243bb3655fc |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 1 14:23:05 2020 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 1 15:26:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31bbdb90 |
7 |
|
8 |
dev-libs/ell: bump to 0.35 |
9 |
|
10 |
This release needed a couple of extra fixes for musl, they are already |
11 |
in upstream git. These fixes should be removed on next bump. |
12 |
|
13 |
Package-Manager: Portage-3.0.11, Repoman-3.0.2 |
14 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
15 |
|
16 |
dev-libs/ell/Manifest | 1 + |
17 |
dev-libs/ell/ell-0.35.ebuild | 68 ++++++++++++++++++++++ |
18 |
...l-0.35-add-missing-include-in-dhcp-server.patch | 24 ++++++++ |
19 |
.../ell-0.35-add-rawmemchr-to-missing-h.patch | 44 ++++++++++++++ |
20 |
4 files changed, 137 insertions(+) |
21 |
|
22 |
diff --git a/dev-libs/ell/Manifest b/dev-libs/ell/Manifest |
23 |
index cea893a53b4..5d8012185b3 100644 |
24 |
--- a/dev-libs/ell/Manifest |
25 |
+++ b/dev-libs/ell/Manifest |
26 |
@@ -2,3 +2,4 @@ DIST ell-0.28.tar.xz 474880 BLAKE2B 2c571f952056c9f4e3e8c245b2b57645c4baa2935fdb |
27 |
DIST ell-0.31.tar.xz 478860 BLAKE2B f8f8d109605bf62396da001bd3d9b48fd6b7a6fc94ab890ab5a56fc8afb07a216b884fdf4b624ac8f39c3196de8149c7b32790da03262400aac6f8cd8b3fb56b SHA512 e304cc3bb1355fc0671412e793530503c83b1a036bfa3dd5b0cc36cfb28684b780293dc3d81a5727e0030743529882f71ac28d3c735860f6d46477e8ccf6a6e8 |
28 |
DIST ell-0.32.tar.xz 479012 BLAKE2B 909c63f590ba45e5e9aabf0e7c5ce1c44ee5b5235472071ec16c4e160eddfd38dc5383103a684c4d43e325e832965cdade5d8465990ed4c2a2aa44b52d60869b SHA512 13712ac4ff7165b749b8e2dcd5cad4cd8170600c3dca7304eb4068ee916c1187207bc24ffa5d64c9d33253d4a8f56c63b627ad0783d5ca38d78f625211fdc315 |
29 |
DIST ell-0.33.tar.xz 490180 BLAKE2B fc0f558a54bd57d7866c77ba3fdd97e0f35c33fd7ca79f6209c097824b303e69924ee9eb758af3a1881e8e87ac3ad84bea20767cd824cb8366a080eacac8b4be SHA512 4f0960b757c5cae55bf46a10aabb52280a76eda2a2d55ecc92f2a1321b72e936cab47102995597e985072d032f10379fdfc4f56360e535eeac444dab8b171ded |
30 |
+DIST ell-0.35.tar.xz 506400 BLAKE2B 694df293ce5fd31581cbdd9c2f6f3806a07a23ffb76cf04d6c13f1eebc8af5228ab030f3f1f6d68e1f234c4f1c55a6a1c41e93c41957c19ffc57255e86a78b26 SHA512 a61fc6e8b16627920a24a4bc271549863042ba27489039311009b7e16fe04bb88debcdcd239603cb471b78674a57851ee5ab8ee16229ebdf77850e0945410179 |
31 |
|
32 |
diff --git a/dev-libs/ell/ell-0.35.ebuild b/dev-libs/ell/ell-0.35.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..707fc0db4ef |
35 |
--- /dev/null |
36 |
+++ b/dev-libs/ell/ell-0.35.ebuild |
37 |
@@ -0,0 +1,68 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+inherit flag-o-matic linux-info multilib-minimal |
44 |
+ |
45 |
+DESCRIPTION="Embedded Linux Library provides core, low-level functionality for system daemons" |
46 |
+HOMEPAGE="https://01.org/ell" |
47 |
+if [[ "${PV}" == *9999 ]] ; then |
48 |
+ inherit autotools git-r3 |
49 |
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/libs/ell/ell.git" |
50 |
+else |
51 |
+ #remove on next bump |
52 |
+ inherit autotools |
53 |
+ SRC_URI="https://mirrors.edge.kernel.org/pub/linux/libs/${PN}/${P}.tar.xz" |
54 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" |
55 |
+fi |
56 |
+LICENSE="LGPL-2.1" |
57 |
+SLOT="0" |
58 |
+ |
59 |
+IUSE="glib pie test" |
60 |
+RESTRICT="!test? ( test )" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] ) |
64 |
+" |
65 |
+DEPEND=" |
66 |
+ ${RDEPEND} |
67 |
+ test? ( sys-apps/dbus ) |
68 |
+" |
69 |
+ |
70 |
+CONFIG_CHECK=" |
71 |
+ ~TIMERFD |
72 |
+ ~EVENTFD |
73 |
+ ~CRYPTO_USER_API |
74 |
+ ~CRYPTO_USER_API_HASH |
75 |
+ ~CRYPTO_MD5 |
76 |
+ ~CRYPTO_SHA1 |
77 |
+ ~KEY_DH_OPERATIONS |
78 |
+" |
79 |
+ |
80 |
+#remove on next bump |
81 |
+PATCHES=( "${FILESDIR}/ell-0.35-add-rawmemchr-to-missing-h.patch" |
82 |
+ "${FILESDIR}/ell-0.35-add-missing-include-in-dhcp-server.patch" ) |
83 |
+ |
84 |
+src_prepare() { |
85 |
+ default |
86 |
+ #remove on next bump |
87 |
+ eautoreconf |
88 |
+ [[ "${PV}" == *9999 ]] && eautoreconf |
89 |
+} |
90 |
+ |
91 |
+multilib_src_configure() { |
92 |
+ append-cflags "-fsigned-char" #662694 |
93 |
+ local myeconfargs=( |
94 |
+ $(use_enable glib) |
95 |
+ $(use_enable pie) |
96 |
+ ) |
97 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
98 |
+} |
99 |
+ |
100 |
+multilib_src_install_all() { |
101 |
+ local DOCS=( ChangeLog README ) |
102 |
+ einstalldocs |
103 |
+ |
104 |
+ find "${ED}" -name "*.la" -delete || die |
105 |
+} |
106 |
|
107 |
diff --git a/dev-libs/ell/files/ell-0.35-add-missing-include-in-dhcp-server.patch b/dev-libs/ell/files/ell-0.35-add-missing-include-in-dhcp-server.patch |
108 |
new file mode 100644 |
109 |
index 00000000000..788985ccd6f |
110 |
--- /dev/null |
111 |
+++ b/dev-libs/ell/files/ell-0.35-add-missing-include-in-dhcp-server.patch |
112 |
@@ -0,0 +1,24 @@ |
113 |
+From 6dfff19d4716ba216de1a3298ed0f667d7782810 Mon Sep 17 00:00:00 2001 |
114 |
+From: =?UTF-8?q?=C3=89rico=20Nogueira?= <ericonr@×××××××.org> |
115 |
+Date: Mon, 30 Nov 2020 18:40:33 -0300 |
116 |
+Subject: ell: add missing include in dhcp-server. |
117 |
+ |
118 |
+--- |
119 |
+ ell/dhcp-server.c | 1 + |
120 |
+ 1 file changed, 1 insertion(+) |
121 |
+ |
122 |
+diff --git a/ell/dhcp-server.c b/ell/dhcp-server.c |
123 |
+index c983ed4..144e83e 100644 |
124 |
+--- a/ell/dhcp-server.c |
125 |
++++ b/ell/dhcp-server.c |
126 |
+@@ -24,6 +24,7 @@ |
127 |
+ #include <config.h> |
128 |
+ #endif |
129 |
+ |
130 |
++#include <linux/types.h> |
131 |
+ #include <net/ethernet.h> |
132 |
+ #include <sys/socket.h> |
133 |
+ #include <arpa/inet.h> |
134 |
+-- |
135 |
+cgit 1.2.3-1.el7 |
136 |
+ |
137 |
|
138 |
diff --git a/dev-libs/ell/files/ell-0.35-add-rawmemchr-to-missing-h.patch b/dev-libs/ell/files/ell-0.35-add-rawmemchr-to-missing-h.patch |
139 |
new file mode 100644 |
140 |
index 00000000000..2008b27d56a |
141 |
--- /dev/null |
142 |
+++ b/dev-libs/ell/files/ell-0.35-add-rawmemchr-to-missing-h.patch |
143 |
@@ -0,0 +1,44 @@ |
144 |
+From 3916c1cc32be205e185a8a56de5cde1b9ec60e81 Mon Sep 17 00:00:00 2001 |
145 |
+From: Denis Kenzior <denkenz@×××××.com> |
146 |
+Date: Mon, 30 Nov 2020 13:00:11 -0600 |
147 |
+Subject: build: Add rawmemchr to missing.h |
148 |
+ |
149 |
+For those systems (i.e. musl) that do not support this |
150 |
+--- |
151 |
+ configure.ac | 1 + |
152 |
+ ell/missing.h | 10 ++++++++++ |
153 |
+ 2 files changed, 11 insertions(+) |
154 |
+ |
155 |
+diff --git a/configure.ac b/configure.ac |
156 |
+index 1e5ead9..f34add1 100644 |
157 |
+--- a/configure.ac |
158 |
++++ b/configure.ac |
159 |
+@@ -98,6 +98,7 @@ AC_ARG_ENABLE(ubsan, AC_HELP_STRING([--enable-ubsan], |
160 |
+ ]) |
161 |
+ |
162 |
+ AC_CHECK_FUNCS(explicit_bzero) |
163 |
++AC_CHECK_FUNCS(rawmemchr) |
164 |
+ |
165 |
+ AC_CHECK_FUNC(signalfd, dummy=yes, |
166 |
+ AC_MSG_ERROR(signalfd support is required)) |
167 |
+diff --git a/ell/missing.h b/ell/missing.h |
168 |
+index 6b9b0fd..2a3e647 100644 |
169 |
+--- a/ell/missing.h |
170 |
++++ b/ell/missing.h |
171 |
+@@ -67,3 +67,13 @@ static inline void explicit_bzero(void *s, size_t n) |
172 |
+ #ifndef SO_BINDTOIFINDEX |
173 |
+ #define SO_BINDTOIFINDEX 62 |
174 |
+ #endif |
175 |
++ |
176 |
++#ifndef HAVE_RAWMEMCHR |
177 |
++static inline void *rawmemchr(const void *s, int c) |
178 |
++{ |
179 |
++_Pragma("GCC diagnostic push") |
180 |
++_Pragma("GCC diagnostic ignored \"-Wstringop-overflow=\"") |
181 |
++ return memchr(s, c, (size_t) -1); |
182 |
++_Pragma("GCC diagnostic pop") |
183 |
++} |
184 |
++#endif |
185 |
+-- |
186 |
+cgit 1.2.3-1.el7 |
187 |
+ |