Github messages for voidlinux
 help / color / mirror / Atom feed
From: My9xVm <My9xVm@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] anki: fix mpv args
Date: Sat, 14 Nov 2020 16:44:13 +0100	[thread overview]
Message-ID: <20201114154413.gSnjNmJXuvnKaQla_iBpYmloWjbZewoHmhZ1tLbK43U@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26341@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 392 bytes --]

There is an updated pull request by My9xVm against master on the void-packages repository

https://github.com/My9xVm/void-packages anki
https://github.com/void-linux/void-packages/pull/26341

anki: fix mpv args
source: https://github.com/ankitects/anki/commit/ccd715013609133c55e83924734efa78abc03326

A patch file from https://github.com/void-linux/void-packages/pull/26341.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-anki-26341.patch --]
[-- Type: text/x-diff, Size: 1937 bytes --]

From c7a6482290f21022b081f85754456cf43047cd15 Mon Sep 17 00:00:00 2001
From: ghost <ghost@invalid>
Date: Sun, 13 Sep 2020 12:26:40 +0000
Subject: [PATCH] anki: backport patch to fix mpv args

---
 srcpkgs/anki/patches/fix_mpv_args.patch | 29 +++++++++++++++++++++++++
 srcpkgs/anki/template                   |  3 +--
 2 files changed, 30 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/anki/patches/fix_mpv_args.patch

diff --git a/srcpkgs/anki/patches/fix_mpv_args.patch b/srcpkgs/anki/patches/fix_mpv_args.patch
new file mode 100644
index 00000000000..96dec5eceaf
--- /dev/null
+++ b/srcpkgs/anki/patches/fix_mpv_args.patch
@@ -0,0 +1,29 @@
+--- ./anki/mpv.py
++++ ./anki/mpv.py
+@@ -104,9 +104,9 @@
+         """
+         self.argv = [self.executable]
+         self.argv += self.default_argv
+-        self.argv += ["--input-ipc-server", self._sock_filename]
++        self.argv += ["--input-ipc-server="+self._sock_filename]
+         if self.window_id is not None:
+-            self.argv += ["--wid", str(self.window_id)]
++            self.argv += ["--wid="+str(self.window_id)]
+ 
+     def _start_process(self):
+         """Start the mpv process.
+
+--- ./anki/sound.py
++++ ./anki/sound.py
+@@ -123,10 +123,7 @@
+ 
+ def setMpvConfigBase(base):
+     mpvConfPath = os.path.join(base, "mpv.conf")
+-    MpvManager.default_argv += [
+-        "--no-config",
+-        "--include="+mpvConfPath,
+-    ]
++    MpvManager.default_argv += ["--include="+mpvConfPath]
+ 
+ mpvManager = None
+ 
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index a25bc0d4e7e..55976fbd26e 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -1,8 +1,7 @@
 # Template file for 'anki'
 pkgname=anki
 version=2.1.15
-revision=3
-archs=noarch
+revision=4
 build_style=gnu-makefile
 depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
  python3-PyAudio python3-mpv python3-Markdown python3-send2trash

  parent reply	other threads:[~2020-11-14 15:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-13  2:28 [PR PATCH] " My9xVm
2020-11-13  2:31 ` My9xVm
2020-11-13  2:31 ` [PR PATCH] [Closed]: " My9xVm
2020-11-13  2:32 ` My9xVm
2020-11-14  2:01 ` ericonr
2020-11-14 15:44 ` My9xVm [this message]
2020-11-16 13:40 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201114154413.gSnjNmJXuvnKaQla_iBpYmloWjbZewoHmhZ1tLbK43U@z \
    --to=my9xvm@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).