Package Details: anki 24.06.3-2

Git Clone URL: https://aur.archlinux.org/anki.git (read-only, click to copy)
Package Base: anki
Description: Helps you remember facts (like words/phrases in a foreign language) efficiently
Upstream URL: https://apps.ankiweb.net/
Keywords: anki languages learning vocabulary
Licenses: AGPL3
Conflicts: anki-bin, anki-git, anki-qt5
Submitter: demize
Maintainer: AlexBocken
Last Packager: AlexBocken
Votes: 173
Popularity: 5.88
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-08-02 10:08 (UTC)

Required by (2)

Sources (7)

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 .. 30 Next › Last »

msrd0 commented on 2023-05-21 12:16 (UTC)

The package fails to compile for me

     Running `out/rust/debug/configure`
[0/68; 1 active; 0.000s] qt/aqt:data/qt/icons:from_src
[0/68; 2 active; 0.000s] qt/aqt:data/web/imgs
[0/68; 3 active; 0.000s] qt/aqt:py.typed
[0/68; 4 active; 0.001s] node_modules
[0/68; 5 active; 0.001s] build:configure
[0/68; 6 active; 0.001s] ftl:repo:core
[0/68; 7 active; 0.001s] pyenv
[4/68; 4 active; 3.031s] ftl:repo:qt
[5/68; 4 active; 4.857s] build:run_configure
ninja: job failed: /home/msrd0/.cache/yay/anki/src/anki/out/rust/debug/runner run /home/msrd0/.cache/yay/anki/src/anki/out/rust/debug/configure "&&" ninja -f /home/msrd0/.cache/yay/anki/src/anki/out/build.ninja -t cleandead
Command failed:

ninja: unknown tool 'cleandead'

ninja: subcommand failed

Build failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: anki-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
anki - exit status 4

AlexBocken commented on 2023-05-21 11:30 (UTC) (edited on 2023-05-21 11:33 (UTC) by AlexBocken)

Thank you very much for the help, @Ugzuzg !

Additionally to now using local node/yarn I have added the following:

  • As I wanted this package to build with link time optimization (LTO) I have forced the build to use mold for now.

  • rust packages are built with opt-level = 3 as to my knowledge, not opt-level = 1 as previously given by the anki devs.

  • rust packages are fetched in prepare(), not build(), for a cleaner install process as recommended by the Rust package guidelines.

Ugzuzg commented on 2023-05-20 21:15 (UTC)

@AlexBocken, this worked for me:

diff --git a/PKGBUILD b/PKGBUILD
index 794ce86..d269d05 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -81,7 +81,8 @@ build() {
     #use local binaries instead of downloading them as well for python and protoc
     export PYTHON_BINARY=$(which python)
     export PROTOC_BINARY=$(which protoc)
-    #export NODE_BINARY=$(which node) # does not yet compile
+    export NODE_BINARY=$(which node)
+    export YARN_BINARY=$(which yarn)

     ./tools/build
 }

AlexBocken commented on 2023-05-16 07:47 (UTC)

thanks for the headsup, for some reason i was under the believe that which was not in base-devel and didnt want to add another make dependency. Updated the PKGBUILD but won't be forcing rebuilds with a -2.

0x9fff00 commented on 2023-05-15 20:00 (UTC)

The type command is locale-dependent which causes type python | cut -d' ' -f1,2 --complement to fail for some non-English locales, outputting strings like „/usr/bin/python‟, /usr/bin/python です, and це /usr/bin/python. Please use which or command -v instead

AlexBocken commented on 2023-05-15 07:19 (UTC)

With the release of 2.1.63 I've been trying to clean up the build process. It is now using the local protoc and python library for installations instead of downloading it separately as well.

The build process also supports local node versions but this does not currently build successfully for me. If someone has a reliable method to build using the local node binary please post a comment or send me an email.

AlexBocken commented on 2023-05-13 10:31 (UTC) (edited on 2023-05-13 11:37 (UTC) by AlexBocken)

@fernandobasso most likely anki was updated before python and was built against 3.10, not 3.11. A rebuild should fix this. Let me know if the issue persists.

@eclairevoyant Good point, edited.

eclairevoyant commented on 2023-05-13 10:24 (UTC) (edited on 2023-05-13 10:24 (UTC) by eclairevoyant)

@fernandobasso you probably need to rebuild anki

@AlexBocken you should probably mention the full fingerprint of the parent key (814EA4E90C34AF39A712DE703F5566A2D16899FB) in your pinned comment for security reasons, not the short fingerprint

FernandoBasso commented on 2023-05-13 10:02 (UTC) (edited on 2023-05-14 10:18 (UTC) by FernandoBasso)

Just upgraded the entire system including anki 2.1.62-2, and anki won't open:

$ anki 
Traceback (most recent call last):
  File "/usr/bin/anki", line 5, in <module>
    from aqt import run
ModuleNotFoundError: No module named 'aqt'

EDIT: As mentioned in other comments, yes, rebuilding anki fixed the issue. Thanks.

fx333 commented on 2023-05-06 11:32 (UTC)

Works for me, just built 2.1.62-2. Try redoing it in a clean chroot.