Package Details: anki 24.11-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: 180
Popularity: 4.63
First Submitted: 2021-09-17 22:31 (UTC)
Last Updated: 2024-12-23 08:04 (UTC)

Latest Comments

« First ‹ Previous 1 .. 3 4 5 6 7 8 9 10 11 12 13 .. 31 Next › Last »

J5lx commented on 2023-08-24 23:19 (UTC)

Now that I’m checking, I can’t really find any documentation on it either. As I recall, I originally got that from a comment made by one of the package maintainers / TUs, but of course that’s not exactly the kind of source that’s easy to find when you’re specifically looking for it... So I tracked down the commit that originally introduced changelog support in Frugalware’s pacman fork (which was merged into upstream pacman a few months later). As you can see, their makepkg back then tried to autogenerate the changelog by querying the $BUILDSCRIPT (i.e. PKGBUILD) changes from the Darcs version control system and would even prefer that over a local changelog file. So yeah, I don’t think that changelog was meant for anything but changes in the package itself. As for the usefulness aspect... well, I guess that’s why of the 3100 packages on my system only 14 come with (package) changelogs.

AlexBocken commented on 2023-08-24 21:11 (UTC)

@J5lx The Arch wiki was quite short in describing how the changelog should be used. I can definitely see how upstream changelogs should be stored in /usr/share/doc. Is there any documentation on how to use the changelog property you could find? Looking at other packages I have installed the majority uses it only for build updates and is imo pretty useless (20 times "bump to <version>" does not really contain much information I could not gather from the AUR git commit messages). Although the majority, I'm not the only one who uses it combined with upstream changelogs. an example even from the default repos would be: extra/iwd

J5lx commented on 2023-08-18 22:03 (UTC)

Btw, the changelog field in the PKGBUILD is for the changelog of the package itself. The changelog of the contained software is typically placed in /usr/share/doc along with any other documentation materials included in the package :)

AlexBocken commented on 2023-07-22 09:17 (UTC)

@Cenda Thanks for the report. All PKGBUILDs (and hence also all AUR packages) assume the base-devel group to be installed. patch is part of that group. base-devel packages should not be included in the depends according to https://wiki.archlinux.org/title/PKGBUILD I'd advise you to install the base-devel group :)

Cenda commented on 2023-07-22 09:11 (UTC)

I think the patch dependency is missing:

==> Starting prepare()...
/var/tmp/pamac-build-cenda/anki/PKGBUILD: line 92: patch: command not found
==> ERROR: A failure occurred in prepare().
    Aborting...

Installing the patch package fixed it

AlexBocken commented on 2023-06-07 16:31 (UTC) (edited on 2023-06-07 16:42 (UTC) by AlexBocken)

Yes this is most likely an issue because of pip installs. Most python packages should be found either in the arch repos or the AUR (python-<name_of_package>).

Refrain from using pip, this creates double installs, lots of outdated versions being used etc.

All dependency anki needs are provided, you should not need to install anything manually to build this package. python-google, python-google-api-core, etc. are not required.

eclairevoyant commented on 2023-06-07 16:20 (UTC) (edited on 2023-06-07 16:22 (UTC) by eclairevoyant)

  • Uninstall whatever you installed via pip

  • Stop using pip

  • Make sure python-protobuf is up to date (repo version is 21.12-2) and in general your system should be up-to-date

Also building in a clean chroot can help prevent unnecessary build issues.

f_wenzel commented on 2023-06-07 16:16 (UTC) (edited on 2023-06-07 16:34 (UTC) by f_wenzel)

Hey, when building this I get the message

Command failed:

Traceback (most recent call last):
  File "/home/user/builds/anki/src/anki-2.1.65/pylib/tools/genbackend.py", line 11, in <module>
    import google.protobuf.descriptor
ModuleNotFoundError: No module named 'google'

even though I have google, google-api-core and whatever adjacent package I could find installed via pip. Is there any other reason this error could happen?

edit: It turned out that some part of what I did (installing google-api-core in pip and via pacman and installing rustup instead of rust) actually worked but I needed to delete the build dir once again, which I forgot to do.

AlexBocken commented on 2023-06-05 05:43 (UTC)

After rust has updated to 1.70.0 I was noticing how my previous advice concerning rustup was incorrect. Indeed, a rustup update may be necessary to use the most recent stable toolchain. Because of this, the PKGBUILD as of 2.1.65 now includes a check for rustup and forces an update in prepare() if it is used as the system cargo provider. This should allow for easier build reproducability between rust and rustup users.

Thank you very much for posting your errors here.