Github messages for voidlinux
 help / color / mirror / Atom feed
From: acdimalev <acdimalev@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: anki: update to 2.1.65 failed
Date: Tue, 29 Aug 2023 11:32:53 +0200	[thread overview]
Message-ID: <20230829093253.lj4Y6KZgieSd7tLHOXm-qnKlpuFdz81duUqtFGldwwM@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-44276@inbox.vuxu.org>

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

New comment by acdimalev on void-packages repository

https://github.com/void-linux/void-packages/pull/44276#issuecomment-1697092248

Comment:
That went nowhere fast.

Just in case anyone else has been bit by the same problem.  Upgrading Anki on my phone automatically enabled the following feature that broke Anki on my desktop:

Settings / Reviewing / New timezone handling

Disabled that and it's working again.

Building Recent versions of Anki in Void looks a bit like a mess.  It's worth noting that the docs call out musl as being explicitly not supported.  But just trying to get the thing to build at all, this is what I've got.

```
# force use of OS binaries
export NODE_BINARY=/usr/bin/node
export PROTOC_BINARY=/usr/bin/protoc
export PYTHON_BINARY=/usr/bin/python3
export YARN_BINARY=/usr/bin/yarn
export PYTHONPATH=/usr/lib/python3.11/site-packages

# disable all pyenv package installation
echo > python/requirements.base.txt
echo > python/requirements.dev.txt
echo > python/requirements.qt6_lin.txt

# add runtime dependencies...
# black
# python3-Flask
# python3-Flask-Cors
# python3-protobuf
# python3-waitress

# disable use of pip-sync
# --- a/build/runner/src/pyenv.rs
# +++ b/build/runner/src/pyenv.rs
# @@ -25,7 +25,6 @@ pub fn setup_pyenv(args: PyenvArgs) {
#
#      let pyenv_bin_folder = pyenv_folder.join(if cfg!(windows) { "scripts" } else { "bin" });
#      let pyenv_python = pyenv_bin_folder.join("python");
# -    let pip_sync = pyenv_bin_folder.join("pip-sync");
#
#      if !pyenv_python.exists() {
#          run_silent(
# @@ -52,6 +51,4 @@ pub fn setup_pyenv(args: PyenvArgs) {
#              &args.initial_reqs,
#          ]));
#      }
# -
# -    run_silent(Command::new(pip_sync).args(&args.reqs));
#  }

# disable protobuf mypy output
# maybe there's a dependency that would satisfy this...
# --- a/build/configure/src/python.rs
# +++ b/build/configure/src/python.rs
# @@ -86,9 +86,7 @@ pub struct GenPythonProto {
#  impl BuildAction for GenPythonProto {
#      fn command(&self) -> &str {
#          "$protoc $
# -        --plugin=protoc-gen-mypy=$protoc-gen-mypy $
#          --python_out=$builddir/pylib $
# -        --mypy_out=$builddir/pylib $
#          -Iproto $in"
#      }
# EOD

# build
tools/build
```

This results in the output of a couple wheel files which _should_ be installable via normal means, but I've run out of steam for testing at the moment.

```
$ ls -1 out/wheels/
anki-2.1.65-cp39-abi3-manylinux_2_28_x86_64.whl
aqt-2.1.65-py3-none-any.whl
```

  parent reply	other threads:[~2023-08-29  9:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-05 13:18 [PR PATCH] anki: updated to (TODO) loreb
2023-06-05 13:21 ` loreb
2023-06-08 13:13 ` [PR PATCH] [Updated] " loreb
2023-06-17 12:29 ` [PR PATCH] [Updated] anki: update to 2.1.65 failed loreb
2023-08-27 21:31 ` acdimalev
2023-08-29  9:32 ` acdimalev [this message]
2023-08-29 13:00 ` loreb
2023-11-28  1:46 ` github-actions
2023-12-12  1:47 ` [PR PATCH] [Closed]: " github-actions

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=20230829093253.lj4Y6KZgieSd7tLHOXm-qnKlpuFdz81duUqtFGldwwM@z \
    --to=acdimalev@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).