1 |
commit: 1c7f58dcf770e00fff1ff516398f38064490edad |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 5 13:32:01 2020 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 5 14:31:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c7f58dc |
7 |
|
8 |
media-sound/mpd: fix io_uring initialization with OpenRC service |
9 |
|
10 |
Mirror what upstream does with their systemd unit: |
11 |
https://github.com/MusicPlayerDaemon/MPD/commit/c031f9aa5d7a516af488f4cd4d9c22c4dc748439 |
12 |
|
13 |
Otherwise, io_uring fails to initialize with: |
14 |
"Failed to initialize io_uring: io_uring_queue_init() failed: |
15 |
Cannot allocate memory" |
16 |
https://github.com/MusicPlayerDaemon/MPD/issues/972 |
17 |
|
18 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
19 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
20 |
|
21 |
media-sound/mpd/files/mpd-0.21.4.init | 4 +++- |
22 |
media-sound/mpd/{mpd-0.22.ebuild => mpd-0.22-r1.ebuild} | 0 |
23 |
2 files changed, 3 insertions(+), 1 deletion(-) |
24 |
|
25 |
diff --git a/media-sound/mpd/files/mpd-0.21.4.init b/media-sound/mpd/files/mpd-0.21.4.init |
26 |
index 7f0950c6293..72fede85765 100644 |
27 |
--- a/media-sound/mpd/files/mpd-0.21.4.init |
28 |
+++ b/media-sound/mpd/files/mpd-0.21.4.init |
29 |
@@ -1,5 +1,5 @@ |
30 |
#!/sbin/openrc-run |
31 |
-# Copyright 1999-2019 Gentoo Authors |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
# Distributed under the terms of the GNU General Public License v2 |
34 |
|
35 |
: CFGFILE=${CFGFILE:=/etc/mpd.conf} |
36 |
@@ -19,6 +19,8 @@ get_config() { |
37 |
} |
38 |
|
39 |
extra_started_commands='reload' |
40 |
+# Required by io_uring |
41 |
+rc_ulimit="-l 65535" |
42 |
command=/usr/bin/mpd |
43 |
command_args=${CFGFILE} |
44 |
required_files=${CFGFILE} |
45 |
|
46 |
diff --git a/media-sound/mpd/mpd-0.22.ebuild b/media-sound/mpd/mpd-0.22-r1.ebuild |
47 |
similarity index 100% |
48 |
rename from media-sound/mpd/mpd-0.22.ebuild |
49 |
rename to media-sound/mpd/mpd-0.22-r1.ebuild |