commit:     1c7f58dcf770e00fff1ff516398f38064490edad
Author:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
AuthorDate: Mon Oct  5 13:32:01 2020 +0000
Commit:     Louis Sautier <sbraz <AT> gentoo <DOT> org>
CommitDate: Mon Oct  5 14:31:45 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c7f58dc

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 <AT> gentoo.org>

 media-sound/mpd/files/mpd-0.21.4.init                   | 4 +++-
 media-sound/mpd/{mpd-0.22.ebuild => mpd-0.22-r1.ebuild} | 0
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/media-sound/mpd/files/mpd-0.21.4.init 
b/media-sound/mpd/files/mpd-0.21.4.init
index 7f0950c6293..72fede85765 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
similarity index 100%
rename from media-sound/mpd/mpd-0.22.ebuild
rename to media-sound/mpd/mpd-0.22-r1.ebuild

Reply via email to