1 |
commit: fa548218468082aba16ddb7ce819fa1d4abbc0cd |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 21 14:52:00 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 21 15:17:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa548218 |
7 |
|
8 |
sys-apps/systemd-readahead: Fix build with glibc-2.27 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/650314 |
11 |
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
13 |
|
14 |
.../files/systemd-readahead-216-glibc-2.27.patch | 15 +++++++++++++++ |
15 |
sys-apps/systemd-readahead/systemd-readahead-216.ebuild | 5 ++++- |
16 |
2 files changed, 19 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/sys-apps/systemd-readahead/files/systemd-readahead-216-glibc-2.27.patch b/sys-apps/systemd-readahead/files/systemd-readahead-216-glibc-2.27.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..11837c6cc04 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/systemd-readahead/files/systemd-readahead-216-glibc-2.27.patch |
23 |
@@ -0,0 +1,15 @@ |
24 |
+--- a/src/shared/missing.h.orig 2018-10-21 16:47:25.858241043 +0200 |
25 |
++++ b/src/shared/missing.h 2018-10-21 16:47:36.986335212 +0200 |
26 |
+@@ -204,12 +204,6 @@ |
27 |
+ } |
28 |
+ #endif |
29 |
+ |
30 |
+-#ifndef HAVE_MEMFD_CREATE |
31 |
+-static inline int memfd_create(const char *name, uint64_t flags) { |
32 |
+- return syscall(__NR_memfd_create, name, flags); |
33 |
+-} |
34 |
+-#endif |
35 |
+- |
36 |
+ #ifndef BTRFS_IOCTL_MAGIC |
37 |
+ #define BTRFS_IOCTL_MAGIC 0x94 |
38 |
+ #endif |
39 |
|
40 |
diff --git a/sys-apps/systemd-readahead/systemd-readahead-216.ebuild b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
41 |
index a7580f0a561..301b757c717 100644 |
42 |
--- a/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
43 |
+++ b/sys-apps/systemd-readahead/systemd-readahead-216.ebuild |
44 |
@@ -1,4 +1,4 @@ |
45 |
-# Copyright 1999-2018 Gentoo Foundation |
46 |
+# Copyright 1999-2018 Gentoo Authors |
47 |
# Distributed under the terms of the GNU General Public License v2 |
48 |
|
49 |
EAPI=6 |
50 |
@@ -29,6 +29,9 @@ DEPEND="${RDEPEND} |
51 |
PATCHES=( |
52 |
# https://github.com/systemd/systemd/pull/2838 , bug #604614 |
53 |
"${FILESDIR}/${P}-sysmacros.patch" |
54 |
+ |
55 |
+ # https://github.com/systemd/systemd/issues/8099, bug #650314 |
56 |
+ "${FILESDIR}"/${P}-glibc-2.27.patch |
57 |
) |
58 |
|
59 |
src_prepare() { |