Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/systemd/files/
Date: Tue, 29 Aug 2017 22:21:53
Message-Id: 1504045297.dcb455acf2a1b7c423a6d4d4996deec8304f585b.floppym@gentoo
1 commit: dcb455acf2a1b7c423a6d4d4996deec8304f585b
2 Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
3 AuthorDate: Tue Aug 29 08:14:55 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 29 22:21:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb455ac
7
8 sys-apps/systemd: remove unused patches
9
10 Closes: https://github.com/gentoo/gentoo/pull/5552
11
12 sys-apps/systemd/files/226-kcmp.patch | 31 ---
13 sys-apps/systemd/files/226-noclean-tmp.patch | 28 --
14 ...heck-for-lz4-in-the-old-and-new-numbering.patch | 44 ---
15 ...dd-check-for-gperf-lookup-function-signat.patch | 302 ---------------------
16 sys-apps/systemd/files/232-systemd-user-pam.patch | 16 --
17 sys-apps/systemd/files/CVE-2015-7510.patch | 37 ---
18 6 files changed, 458 deletions(-)
19
20 diff --git a/sys-apps/systemd/files/226-kcmp.patch b/sys-apps/systemd/files/226-kcmp.patch
21 deleted file mode 100644
22 index a91f49fb487..00000000000
23 --- a/sys-apps/systemd/files/226-kcmp.patch
24 +++ /dev/null
25 @@ -1,31 +0,0 @@
26 -From 75b554579b4e962e2c02053129a37611a2dc9133 Mon Sep 17 00:00:00 2001
27 -From: Mike Gilbert <floppym@g.o>
28 -Date: Mon, 14 Sep 2015 18:55:09 -0400
29 -Subject: [PATCH] Add fallback for kcmp() in case __NR_kcmp is undefined
30 -
31 -IA64 is missing this syscall as of linux-4.2.
32 -This works around it until the necessary kernel patch gets merged.
33 ----
34 - src/basic/missing.h | 5 +++++
35 - 1 file changed, 5 insertions(+)
36 -
37 -diff --git a/src/basic/missing.h b/src/basic/missing.h
38 -index dc1f244..371ef8a 100644
39 ---- a/src/basic/missing.h
40 -+++ b/src/basic/missing.h
41 -@@ -1028,7 +1028,12 @@ static inline int renameat2(int oldfd, const char *oldname, int newfd, const cha
42 -
43 - #if !HAVE_DECL_KCMP
44 - static inline int kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2) {
45 -+#if defined(__NR_kcmp)
46 - return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2);
47 -+#else
48 -+ errno = ENOSYS;
49 -+ return -1;
50 -+#endif
51 - }
52 - #endif
53 -
54 ---
55 -2.6.4
56 -
57
58 diff --git a/sys-apps/systemd/files/226-noclean-tmp.patch b/sys-apps/systemd/files/226-noclean-tmp.patch
59 deleted file mode 100644
60 index 290b1bd3700..00000000000
61 --- a/sys-apps/systemd/files/226-noclean-tmp.patch
62 +++ /dev/null
63 @@ -1,28 +0,0 @@
64 -From 3a44775e2618896526d093f7142934205e46d33a Mon Sep 17 00:00:00 2001
65 -From: Mike Gilbert <floppym@g.o>
66 -Date: Fri, 25 Sep 2015 10:26:18 -0400
67 -Subject: [PATCH] tmpfiles: Disable cleaning of /tmp and /var/tmp
68 -
69 -Bug: https://bugs.gentoo.org/490676
70 ----
71 - tmpfiles.d/tmp.conf | 4 ++--
72 - 1 file changed, 2 insertions(+), 2 deletions(-)
73 -
74 -diff --git a/tmpfiles.d/tmp.conf b/tmpfiles.d/tmp.conf
75 -index ffdd82f..241fad5 100644
76 ---- a/tmpfiles.d/tmp.conf
77 -+++ b/tmpfiles.d/tmp.conf
78 -@@ -8,8 +8,8 @@
79 - # See tmpfiles.d(5) for details
80 -
81 - # Clear tmp directories separately, to make them easier to override
82 --v /tmp 1777 root root 10d
83 --v /var/tmp 1777 root root 30d
84 -+v /tmp 1777 root root
85 -+v /var/tmp 1777 root root
86 -
87 - # Exclude namespace mountpoints created with PrivateTmp=yes
88 - x /tmp/systemd-private-%b-*
89 ---
90 -2.5.3
91 -
92
93 diff --git a/sys-apps/systemd/files/232-0001-build-sys-check-for-lz4-in-the-old-and-new-numbering.patch b/sys-apps/systemd/files/232-0001-build-sys-check-for-lz4-in-the-old-and-new-numbering.patch
94 deleted file mode 100644
95 index 788f0aa15c7..00000000000
96 --- a/sys-apps/systemd/files/232-0001-build-sys-check-for-lz4-in-the-old-and-new-numbering.patch
97 +++ /dev/null
98 @@ -1,44 +0,0 @@
99 -From 63621678f44325b4c48574f9c9d7a3c499d1a608 Mon Sep 17 00:00:00 2001
100 -From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@××××××.pl>
101 -Date: Wed, 23 Nov 2016 10:18:30 -0500
102 -Subject: [PATCH 1/2] build-sys: check for lz4 in the old and new numbering
103 - scheme (#4717)
104 -
105 -lz4 upstream decided to switch to an incompatible numbering scheme
106 -(1.7.3 follows 131, to match the so version).
107 -PKG_CHECK_MODULES does not allow two version matches for the same package,
108 -so e.g. lz4 < 10 || lz4 >= 125 cannot be used. Check twice, once for
109 -"new" numbers (anything below 10 is assume to be new), once for the "old"
110 -numbers (anything above >= 125). This assumes that the "new" versioning
111 -will not get to 10 to quickly. I think that's a safe assumption, lz4 is a
112 -mature project.
113 -
114 -Fixed #4690.
115 ----
116 - configure.ac | 9 ++++++---
117 - 1 file changed, 6 insertions(+), 3 deletions(-)
118 -
119 -diff --git a/configure.ac b/configure.ac
120 -index 0b10fc7de..1928e65bd 100644
121 ---- a/configure.ac
122 -+++ b/configure.ac
123 -@@ -623,10 +623,13 @@ AM_CONDITIONAL(HAVE_BZIP2, [test "$have_bzip2" = "yes"])
124 - have_lz4=no
125 - AC_ARG_ENABLE(lz4, AS_HELP_STRING([--disable-lz4], [Disable optional LZ4 support]))
126 - AS_IF([test "x$enable_lz4" != "xno"], [
127 -- PKG_CHECK_MODULES(LZ4, [ liblz4 >= 125 ],
128 -- [AC_DEFINE(HAVE_LZ4, 1, [Define in LZ4 is available])
129 -+ PKG_CHECK_MODULES(LZ4, [ liblz4 < 10 ],
130 -+ [AC_DEFINE(HAVE_LZ4, 1, [Define if LZ4 is available])
131 - have_lz4=yes],
132 -- have_lz4=no)
133 -+ [PKG_CHECK_MODULES(LZ4, [ liblz4 >= 125 ],
134 -+ [AC_DEFINE(HAVE_LZ4, 1, [Define if LZ4 is available])
135 -+ have_lz4=yes],
136 -+ have_lz4=no)])
137 - AS_IF([test "x$have_lz4" = xno -a "x$enable_lz4" = xyes],
138 - [AC_MSG_ERROR([*** LZ4 support requested but libraries not found])])
139 - ])
140 ---
141 -2.11.0
142 -
143
144 diff --git a/sys-apps/systemd/files/232-0002-build-sys-add-check-for-gperf-lookup-function-signat.patch b/sys-apps/systemd/files/232-0002-build-sys-add-check-for-gperf-lookup-function-signat.patch
145 deleted file mode 100644
146 index 440ec75bd3b..00000000000
147 --- a/sys-apps/systemd/files/232-0002-build-sys-add-check-for-gperf-lookup-function-signat.patch
148 +++ /dev/null
149 @@ -1,302 +0,0 @@
150 -From 016fb3b83b861cfe58694996076a9764dcb46475 Mon Sep 17 00:00:00 2001
151 -From: Mike Gilbert <floppymaster@×××××.com>
152 -Date: Tue, 10 Jan 2017 02:39:05 -0500
153 -Subject: [PATCH 2/2] build-sys: add check for gperf lookup function signature
154 - (#5055)
155 -
156 -gperf-3.1 generates lookup functions that take a size_t length
157 -parameter instead of unsigned int. Test for this at configure time.
158 -
159 -Fixes: https://github.com/systemd/systemd/issues/5039
160 ----
161 - configure.ac | 22 ++++++++++++++++++++++
162 - src/basic/af-list.c | 2 +-
163 - src/basic/arphrd-list.c | 2 +-
164 - src/basic/cap-list.c | 2 +-
165 - src/basic/errno-list.c | 2 +-
166 - src/core/load-fragment.h | 2 +-
167 - src/journal/journald-server.h | 2 +-
168 - src/login/logind.h | 2 +-
169 - src/network/networkd-conf.h | 2 +-
170 - src/network/networkd-netdev.h | 2 +-
171 - src/network/networkd-network.h | 2 +-
172 - src/nspawn/nspawn-settings.h | 2 +-
173 - src/resolve/dns-type.c | 2 +-
174 - src/resolve/resolved-conf.h | 2 +-
175 - src/test/test-af-list.c | 2 +-
176 - src/test/test-arphrd-list.c | 2 +-
177 - src/timesync/timesyncd-conf.h | 2 +-
178 - src/udev/net/link-config.h | 2 +-
179 - src/udev/udev-builtin-keyboard.c | 2 +-
180 - 19 files changed, 40 insertions(+), 18 deletions(-)
181 -
182 -diff --git a/configure.ac b/configure.ac
183 -index 1928e65bd..5c639e32d 100644
184 ---- a/configure.ac
185 -+++ b/configure.ac
186 -@@ -258,6 +258,28 @@ AC_CHECK_SIZEOF(rlim_t,,[
187 - #include <sys/resource.h>
188 - ])
189 -
190 -+GPERF_TEST="$(echo foo,bar | ${GPERF} -L ANSI-C)"
191 -+
192 -+AC_COMPILE_IFELSE(
193 -+ [AC_LANG_PROGRAM([
194 -+ #include <string.h>
195 -+ const char * in_word_set(const char *, size_t);
196 -+ $GPERF_TEST]
197 -+ )],
198 -+ [GPERF_LEN_TYPE=size_t],
199 -+ [AC_COMPILE_IFELSE(
200 -+ [AC_LANG_PROGRAM([
201 -+ #include <string.h>
202 -+ const char * in_word_set(const char *, unsigned);
203 -+ $GPERF_TEST]
204 -+ )],
205 -+ [GPERF_LEN_TYPE=unsigned],
206 -+ [AC_MSG_ERROR([** unable to determine gperf len type])]
207 -+ )]
208 -+)
209 -+
210 -+AC_DEFINE_UNQUOTED([GPERF_LEN_TYPE], [$GPERF_LEN_TYPE], [gperf len type])
211 -+
212 - # ------------------------------------------------------------------------------
213 - # we use python to build the man page index
214 - have_python=no
215 -diff --git a/src/basic/af-list.c b/src/basic/af-list.c
216 -index 3fac9c508..4b291d177 100644
217 ---- a/src/basic/af-list.c
218 -+++ b/src/basic/af-list.c
219 -@@ -23,7 +23,7 @@
220 - #include "af-list.h"
221 - #include "macro.h"
222 -
223 --static const struct af_name* lookup_af(register const char *str, register unsigned int len);
224 -+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
225 -
226 - #include "af-from-name.h"
227 - #include "af-to-name.h"
228 -diff --git a/src/basic/arphrd-list.c b/src/basic/arphrd-list.c
229 -index 6792d1ee3..2d598dc66 100644
230 ---- a/src/basic/arphrd-list.c
231 -+++ b/src/basic/arphrd-list.c
232 -@@ -23,7 +23,7 @@
233 - #include "arphrd-list.h"
234 - #include "macro.h"
235 -
236 --static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
237 -+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
238 -
239 - #include "arphrd-from-name.h"
240 - #include "arphrd-to-name.h"
241 -diff --git a/src/basic/cap-list.c b/src/basic/cap-list.c
242 -index 3e773a06f..d68cc78d0 100644
243 ---- a/src/basic/cap-list.c
244 -+++ b/src/basic/cap-list.c
245 -@@ -26,7 +26,7 @@
246 - #include "parse-util.h"
247 - #include "util.h"
248 -
249 --static const struct capability_name* lookup_capability(register const char *str, register unsigned int len);
250 -+static const struct capability_name* lookup_capability(register const char *str, register GPERF_LEN_TYPE len);
251 -
252 - #include "cap-from-name.h"
253 - #include "cap-to-name.h"
254 -diff --git a/src/basic/errno-list.c b/src/basic/errno-list.c
255 -index 31b66bad5..c6a01eec8 100644
256 ---- a/src/basic/errno-list.c
257 -+++ b/src/basic/errno-list.c
258 -@@ -23,7 +23,7 @@
259 - #include "macro.h"
260 -
261 - static const struct errno_name* lookup_errno(register const char *str,
262 -- register unsigned int len);
263 -+ register GPERF_LEN_TYPE len);
264 -
265 - #include "errno-from-name.h"
266 - #include "errno-to-name.h"
267 -diff --git a/src/core/load-fragment.h b/src/core/load-fragment.h
268 -index c05f205c3..ede6b1f73 100644
269 ---- a/src/core/load-fragment.h
270 -+++ b/src/core/load-fragment.h
271 -@@ -118,7 +118,7 @@ int config_parse_user_group(const char *unit, const char *filename, unsigned lin
272 - int config_parse_user_group_strv(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
273 -
274 - /* gperf prototypes */
275 --const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, unsigned length);
276 -+const struct ConfigPerfItem* load_fragment_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
277 - extern const char load_fragment_gperf_nulstr[];
278 -
279 - typedef enum Disabled {
280 -diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h
281 -index 99d91496b..d1520c45d 100644
282 ---- a/src/journal/journald-server.h
283 -+++ b/src/journal/journald-server.h
284 -@@ -179,7 +179,7 @@ void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigne
285 - void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_(3,0) _sentinel_;
286 -
287 - /* gperf lookup function */
288 --const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length);
289 -+const struct ConfigPerfItem* journald_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
290 -
291 - int config_parse_storage(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
292 -
293 -diff --git a/src/login/logind.h b/src/login/logind.h
294 -index 086fa1eeb..7556ee2e4 100644
295 ---- a/src/login/logind.h
296 -+++ b/src/login/logind.h
297 -@@ -182,7 +182,7 @@ int manager_unit_is_active(Manager *manager, const char *unit);
298 - int manager_job_is_active(Manager *manager, const char *path);
299 -
300 - /* gperf lookup function */
301 --const struct ConfigPerfItem* logind_gperf_lookup(const char *key, unsigned length);
302 -+const struct ConfigPerfItem* logind_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
303 -
304 - int manager_set_lid_switch_ignore(Manager *m, usec_t until);
305 -
306 -diff --git a/src/network/networkd-conf.h b/src/network/networkd-conf.h
307 -index c7bfb42a7..00ddb7672 100644
308 ---- a/src/network/networkd-conf.h
309 -+++ b/src/network/networkd-conf.h
310 -@@ -23,7 +23,7 @@
311 -
312 - int manager_parse_config_file(Manager *m);
313 -
314 --const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, unsigned length);
315 -+const struct ConfigPerfItem* networkd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
316 -
317 - int config_parse_duid_type(
318 - const char *unit,
319 -diff --git a/src/network/networkd-netdev.h b/src/network/networkd-netdev.h
320 -index 70ff947b9..37c743121 100644
321 ---- a/src/network/networkd-netdev.h
322 -+++ b/src/network/networkd-netdev.h
323 -@@ -175,7 +175,7 @@ NetDevKind netdev_kind_from_string(const char *d) _pure_;
324 - int config_parse_netdev_kind(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
325 -
326 - /* gperf */
327 --const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, unsigned length);
328 -+const struct ConfigPerfItem* network_netdev_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
329 -
330 - /* Macros which append INTERFACE= to the message */
331 -
332 -diff --git a/src/network/networkd-network.h b/src/network/networkd-network.h
333 -index 42fc82d39..09c3b3a3a 100644
334 ---- a/src/network/networkd-network.h
335 -+++ b/src/network/networkd-network.h
336 -@@ -236,7 +236,7 @@ int config_parse_dhcp_route_table(const char *unit, const char *filename, unsign
337 - /* Legacy IPv4LL support */
338 - int config_parse_ipv4ll(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
339 -
340 --const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, unsigned length);
341 -+const struct ConfigPerfItem* network_network_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
342 -
343 - extern const sd_bus_vtable network_vtable[];
344 -
345 -diff --git a/src/nspawn/nspawn-settings.h b/src/nspawn/nspawn-settings.h
346 -index 231e6d726..4ae34f8e2 100644
347 ---- a/src/nspawn/nspawn-settings.h
348 -+++ b/src/nspawn/nspawn-settings.h
349 -@@ -103,7 +103,7 @@ bool settings_private_network(Settings *s);
350 -
351 - DEFINE_TRIVIAL_CLEANUP_FUNC(Settings*, settings_free);
352 -
353 --const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, unsigned length);
354 -+const struct ConfigPerfItem* nspawn_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
355 -
356 - int config_parse_capability(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
357 - int config_parse_id128(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
358 -diff --git a/src/resolve/dns-type.c b/src/resolve/dns-type.c
359 -index aaf5ed62c..d89ae28dc 100644
360 ---- a/src/resolve/dns-type.c
361 -+++ b/src/resolve/dns-type.c
362 -@@ -29,7 +29,7 @@ typedef const struct {
363 - } dns_type;
364 -
365 - static const struct dns_type_name *
366 --lookup_dns_type (register const char *str, register unsigned int len);
367 -+lookup_dns_type (register const char *str, register GPERF_LEN_TYPE len);
368 -
369 - #include "dns_type-from-name.h"
370 - #include "dns_type-to-name.h"
371 -diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h
372 -index fc425a36b..8184d6cad 100644
373 ---- a/src/resolve/resolved-conf.h
374 -+++ b/src/resolve/resolved-conf.h
375 -@@ -41,7 +41,7 @@ int manager_parse_search_domains_and_warn(Manager *m, const char *string);
376 - int manager_add_dns_server_by_string(Manager *m, DnsServerType type, const char *word);
377 - int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
378 -
379 --const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, unsigned length);
380 -+const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
381 -
382 - int config_parse_dns_servers(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
383 - int config_parse_search_domains(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
384 -diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
385 -index aeaa0929b..e2479133d 100644
386 ---- a/src/test/test-af-list.c
387 -+++ b/src/test/test-af-list.c
388 -@@ -24,7 +24,7 @@
389 - #include "string-util.h"
390 - #include "util.h"
391 -
392 --static const struct af_name* lookup_af(register const char *str, register unsigned int len);
393 -+static const struct af_name* lookup_af(register const char *str, register GPERF_LEN_TYPE len);
394 -
395 - #include "af-from-name.h"
396 - #include "af-list.h"
397 -diff --git a/src/test/test-arphrd-list.c b/src/test/test-arphrd-list.c
398 -index f3989ad20..8f4f342fa 100644
399 ---- a/src/test/test-arphrd-list.c
400 -+++ b/src/test/test-arphrd-list.c
401 -@@ -24,7 +24,7 @@
402 - #include "string-util.h"
403 - #include "util.h"
404 -
405 --static const struct arphrd_name* lookup_arphrd(register const char *str, register unsigned int len);
406 -+static const struct arphrd_name* lookup_arphrd(register const char *str, register GPERF_LEN_TYPE len);
407 -
408 - #include "arphrd-from-name.h"
409 - #include "arphrd-list.h"
410 -diff --git a/src/timesync/timesyncd-conf.h b/src/timesync/timesyncd-conf.h
411 -index cba0724b1..0280697e9 100644
412 ---- a/src/timesync/timesyncd-conf.h
413 -+++ b/src/timesync/timesyncd-conf.h
414 -@@ -22,7 +22,7 @@
415 - #include "conf-parser.h"
416 - #include "timesyncd-manager.h"
417 -
418 --const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, unsigned length);
419 -+const struct ConfigPerfItem* timesyncd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
420 -
421 - int manager_parse_server_string(Manager *m, ServerType type, const char *string);
422 -
423 -diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h
424 -index 91cc0357c..b0d8ceb76 100644
425 ---- a/src/udev/net/link-config.h
426 -+++ b/src/udev/net/link-config.h
427 -@@ -93,7 +93,7 @@ const char *mac_policy_to_string(MACPolicy p) _const_;
428 - MACPolicy mac_policy_from_string(const char *p) _pure_;
429 -
430 - /* gperf lookup function */
431 --const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, unsigned length);
432 -+const struct ConfigPerfItem* link_config_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
433 -
434 - int config_parse_mac_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
435 - int config_parse_name_policy(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);
436 -diff --git a/src/udev/udev-builtin-keyboard.c b/src/udev/udev-builtin-keyboard.c
437 -index aa10beafb..09024116f 100644
438 ---- a/src/udev/udev-builtin-keyboard.c
439 -+++ b/src/udev/udev-builtin-keyboard.c
440 -@@ -29,7 +29,7 @@
441 - #include "string-util.h"
442 - #include "udev.h"
443 -
444 --static const struct key *keyboard_lookup_key(const char *str, unsigned len);
445 -+static const struct key *keyboard_lookup_key(const char *str, GPERF_LEN_TYPE len);
446 - #include "keyboard-keys-from-name.h"
447 -
448 - static int install_force_release(struct udev_device *dev, const unsigned *release, unsigned release_count) {
449 ---
450 -2.11.0
451 -
452
453 diff --git a/sys-apps/systemd/files/232-systemd-user-pam.patch b/sys-apps/systemd/files/232-systemd-user-pam.patch
454 deleted file mode 100644
455 index 9c4b3910927..00000000000
456 --- a/sys-apps/systemd/files/232-systemd-user-pam.patch
457 +++ /dev/null
458 @@ -1,16 +0,0 @@
459 ---- a/src/login/systemd-user.m4
460 -+++ b/src/login/systemd-user.m4
461 -@@ -2,11 +2,7 @@
462 - #
463 - # Used by systemd --user instances.
464 -
465 --account required pam_unix.so
466 -+account include system-services
467 -
468 --m4_ifdef(`HAVE_SELINUX',
469 --session required pam_selinux.so close
470 --session required pam_selinux.so nottys open
471 --)m4_dnl
472 --session required pam_loginuid.so
473 -+session include system-services
474 - session optional pam_systemd.so
475
476 diff --git a/sys-apps/systemd/files/CVE-2015-7510.patch b/sys-apps/systemd/files/CVE-2015-7510.patch
477 deleted file mode 100644
478 index 088adbb1b68..00000000000
479 --- a/sys-apps/systemd/files/CVE-2015-7510.patch
480 +++ /dev/null
481 @@ -1,37 +0,0 @@
482 -From cb31827d62066a04b02111df3052949fda4b6888 Mon Sep 17 00:00:00 2001
483 -From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@××××××.pl>
484 -Date: Mon, 23 Nov 2015 13:59:43 -0500
485 -Subject: [PATCH] nss-mymachines: do not allow overlong machine names
486 -
487 -https://github.com/systemd/systemd/issues/2002
488 ----
489 - src/nss-mymachines/nss-mymachines.c | 6 ++++++
490 - 1 file changed, 6 insertions(+)
491 -
492 -diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c
493 -index 969fa96..c98a959 100644
494 ---- a/src/nss-mymachines/nss-mymachines.c
495 -+++ b/src/nss-mymachines/nss-mymachines.c
496 -@@ -416,6 +416,9 @@ enum nss_status _nss_mymachines_getpwnam_r(
497 - if (!e || e == p)
498 - goto not_found;
499 -
500 -+ if (e - p > HOST_NAME_MAX - 1) /* -1 for the last dash */
501 -+ goto not_found;
502 -+
503 - r = parse_uid(e + 1, &uid);
504 - if (r < 0)
505 - goto not_found;
506 -@@ -573,6 +576,9 @@ enum nss_status _nss_mymachines_getgrnam_r(
507 - if (!e || e == p)
508 - goto not_found;
509 -
510 -+ if (e - p > HOST_NAME_MAX - 1) /* -1 for the last dash */
511 -+ goto not_found;
512 -+
513 - r = parse_gid(e + 1, &gid);
514 - if (r < 0)
515 - goto not_found;
516 ---
517 -2.6.3
518 -