Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] anki: fix 'distutils' not found in Python 3.12
@ 2023-10-12  2:08 virinci
  2023-10-12 19:57 ` [PR PATCH] [Merged]: " ahesford
  0 siblings, 1 reply; 2+ messages in thread
From: virinci @ 2023-10-12  2:08 UTC (permalink / raw)
  To: ml

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

There is a new pull request by virinci against master on the void-packages repository

https://github.com/virinci/void-packages anki-fix-distutils
https://github.com/void-linux/void-packages/pull/46629

anki: fix 'distutils' not found in Python 3.12
Fixes #46613 
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
<!--
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From ddec0781208785125997eb88bf9d1e7c5d3bdded Mon Sep 17 00:00:00 2001
From: virinci <104734512+virinci@users.noreply.github.com>
Date: Thu, 12 Oct 2023 07:27:37 +0530
Subject: [PATCH] anki: fix 'distutils' not found

---
 srcpkgs/anki/patches/fix_distutils_not_found.patch | 8 ++++++++
 srcpkgs/anki/template                              | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/anki/patches/fix_distutils_not_found.patch

diff --git a/srcpkgs/anki/patches/fix_distutils_not_found.patch b/srcpkgs/anki/patches/fix_distutils_not_found.patch
new file mode 100644
index 0000000000000..555c89bbf766b
--- /dev/null
+++ b/srcpkgs/anki/patches/fix_distutils_not_found.patch
@@ -0,0 +1,8 @@
+--- a/anki/mpv.py
++++ b/anki/mpv.py
+@@ -39 +39 @@ import inspect
+-from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module
++from shutil import which
+@@ -68 +68 @@ class MPVBase:
+-    executable = find_executable("mpv")
++    executable = which("mpv")
diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template
index ead0f33a1df7c..97ad67d6001a1 100644
--- a/srcpkgs/anki/template
+++ b/srcpkgs/anki/template
@@ -1,7 +1,7 @@
 # Template file for 'anki'
 pkgname=anki
 version=2.1.15
-revision=6
+revision=7
 build_style=gnu-makefile
 depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
  python3-PyAudio python3-mpv python3-Markdown python3-send2trash

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: anki: fix 'distutils' not found in Python 3.12
  2023-10-12  2:08 [PR PATCH] anki: fix 'distutils' not found in Python 3.12 virinci
@ 2023-10-12 19:57 ` ahesford
  0 siblings, 0 replies; 2+ messages in thread
From: ahesford @ 2023-10-12 19:57 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

anki: fix 'distutils' not found in Python 3.12
https://github.com/void-linux/void-packages/pull/46629

Description:
Fixes #46613 
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] aarch64-musl
<!--
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-12 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12  2:08 [PR PATCH] anki: fix 'distutils' not found in Python 3.12 virinci
2023-10-12 19:57 ` [PR PATCH] [Merged]: " ahesford

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).