summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2020-10-05 15:32:01 +0200
committerLouis Sautier <sbraz@gentoo.org>2020-10-05 16:31:45 +0200
commit1c7f58dcf770e00fff1ff516398f38064490edad (patch)
tree8e264175829e466a897a46658b480c32a4aff41d
parentdev-libs/libbase58: add a better check for TRASH dir on 0.1.4-r1 (diff)
downloadgentoo-1c7f58dcf770e00fff1ff516398f38064490edad.tar.gz
gentoo-1c7f58dcf770e00fff1ff516398f38064490edad.tar.bz2
gentoo-1c7f58dcf770e00fff1ff516398f38064490edad.zip
media-sound/mpd: fix io_uring initialization with OpenRC service
Mirror what upstream does with their systemd unit: https://github.com/MusicPlayerDaemon/MPD/commit/c031f9aa5d7a516af488f4cd4d9c22c4dc748439 Otherwise, io_uring fails to initialize with: "Failed to initialize io_uring: io_uring_queue_init() failed: Cannot allocate memory" https://github.com/MusicPlayerDaemon/MPD/issues/972 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Louis Sautier <sbraz@gentoo.org>
-rw-r--r--media-sound/mpd/files/mpd-0.21.4.init4
-rw-r--r--media-sound/mpd/mpd-0.22-r1.ebuild (renamed from media-sound/mpd/mpd-0.22.ebuild)0
2 files changed, 3 insertions, 1 deletions
diff --git a/media-sound/mpd/files/mpd-0.21.4.init b/media-sound/mpd/files/mpd-0.21.4.init
index 7f0950c62938..72fede85765a 100644
--- a/media-sound/mpd/files/mpd-0.21.4.init
+++ b/media-sound/mpd/files/mpd-0.21.4.init
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
: CFGFILE=${CFGFILE:=/etc/mpd.conf}
@@ -19,6 +19,8 @@ get_config() {
}
extra_started_commands='reload'
+# Required by io_uring
+rc_ulimit="-l 65535"
command=/usr/bin/mpd
command_args=${CFGFILE}
required_files=${CFGFILE}
diff --git a/media-sound/mpd/mpd-0.22.ebuild b/media-sound/mpd/mpd-0.22-r1.ebuild
index 96419725bc8b..96419725bc8b 100644
--- a/media-sound/mpd/mpd-0.22.ebuild
+++ b/media-sound/mpd/mpd-0.22-r1.ebuild