Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 782373

Summary: app-misc/anki-2.1.43: version bump
Product: Gentoo Linux Reporter: gerion <gerion.entrup>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED FIXED    
Severity: normal CC: carlphilippreh, gentoo, ionen, jasmin+gentoo, leonard, me, opal, posting, proxy-maint, sam, sqn14, vicalcas, watermanpaint, wgh
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=869917
https://github.com/gentoo/gentoo/pull/31122
Whiteboard:
Package list:
Runtime testing required: ---

Description gerion 2021-04-12 01:53:30 UTC
See: https://github.com/ankitects/anki/releases

Appearently, every version (even minor versions) contains a lot of new stuff.

Reproducible: Always
Comment 1 Alessandro Barbieri 2021-07-31 07:18:42 UTC
it will need bazel to build now
Comment 2 Stephen Bosch 2021-11-02 13:01:46 UTC
Anki upstream is at 2.1.49 as of 26 October 2021.
Comment 3 vicalcas 2021-12-13 21:45:52 UTC
Someone commented below that it will need bazel to build. Don't know how inconvenient that is, but i wanted to express why the bump is something that would be pretty nice just by giving examples to anki addons that don't seem to work (based on what the anki webpage tells us) in just some minor versions before. Sorting by ratings I found this in the top 10:
https://ankiweb.net/shared/info/1436550454
https://ankiweb.net/shared/info/2494384865
https://ankiweb.net/shared/info/1136455830
https://ankiweb.net/shared/info/817108664
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-13 15:50:06 UTC
(In reply to vicalcas from comment #3)
> Someone commented below that it will need bazel to build. Don't know how

It is essentially a non-starter. The best we can do is an anki-bin.
Comment 5 Lucio Sauer 2022-09-14 11:52:28 UTC
(In reply to Sam James from comment #4)
> (In reply to vicalcas from comment #3)
> > Someone commented below that it will need bazel to build. Don't know how
> 
> It is essentially a non-starter.

Apparently, it has been done for FreeBSD: https://www.freshports.org/games/anki#
Though this seems to be a lot of effort.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-15 01:17:23 UTC
(In reply to Lucio Sauer from comment #5)
> (In reply to Sam James from comment #4)
> > (In reply to vicalcas from comment #3)
> > > Someone commented below that it will need bazel to build. Don't know how
> > 
> > It is essentially a non-starter.
> 
> Apparently, it has been done for FreeBSD:
> https://www.freshports.org/games/anki#
> Though this seems to be a lot of effort.

Interesting spot, thanks!
Comment 7 Ran Rutenberg 2022-10-15 17:26:41 UTC
It looks like Arch also made an updated source package, but they do use basel for it.
Comment 8 Ran Rutenberg 2022-10-15 17:27:15 UTC
https://aur.archlinux.org/packages/anki
Comment 9 Lucio Sauer 2023-04-29 23:31:13 UTC
I have successfully packaged Anki somewhere between 2.1.61 and 2.1.62 (unreleased):
https://github.com/antecrescent/antecrescentoo/tree/main/app-misc/anki

Some notes:
- This depends on a lot of Yarn packages, so I wrote a corresponding mini eclass which should probably be generalized into a "node.eclass" of some sorts. I have yet to introduce this to the gentoo-dev mailing list.
- The dependency dev-python/protobuf-python was also packaged by me, but has only received minimal testing as of now.
- The package builds and runs successfully on a Python 3.11-only system and could thus probably fix 896566.
Comment 10 Lucio Sauer 2023-04-29 23:38:32 UTC
(In reply to Lucio Sauer from comment #9)
> I have successfully packaged Anki somewhere between 2.1.61 and 2.1.62
> [...]
> - The dependency dev-python/protobuf-python was also packaged by me...
I meant dev-python/mypy-protobuf.
Comment 11 silver_ghost 2023-08-07 13:34:24 UTC
Are there any news? 2.1.65 is the actual version now. And I can see dev-util/bazel in portage now.
Comment 12 Lucio Sauer 2023-08-07 14:21:54 UTC
(In reply to silver_ghost from comment #11)
> Are there any news? 2.1.65 is the actual version now.

I am waiting for a review of my pull request linked in this bug's header. It's a version bump to 2.1.65.
In the mean time you could switch to app-misc/anki-bin in ::guru which is kept up-to-date.
Comment 13 Larry the Git Cow gentoo-dev 2024-01-21 10:00:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b9198bdf25bfcdf1dd878e39c202ecae74c6ed2

commit 3b9198bdf25bfcdf1dd878e39c202ecae74c6ed2
Author:     Lucio Sauer <watermanpaint@posteo.net>
AuthorDate: 2024-01-09 03:36:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-21 10:00:25 +0000

    app-misc/anki: add 23.12.1
    
    Closes: https://bugs.gentoo.org/914774
    Closes: https://bugs.gentoo.org/911923
    Closes: https://bugs.gentoo.org/782373
    Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/anki/Manifest                             | 648 ++++++++++++++
 app-misc/anki/anki-23.12.1.ebuild                  | 955 +++++++++++++++++++++
 .../files/23.12.1/configure-offline-build.patch    |  62 ++
 .../anki/files/23.12.1/ninja-gentoo-setup.patch    |  80 ++
 .../anki/files/23.12.1/no-git-submodule-sync.patch |  67 ++
 app-misc/anki/files/23.12.1/pseudo-venv.patch      | 123 +++
 .../anki/files/23.12.1/remove-formatter-dep.patch  |  11 +
 app-misc/anki/files/23.12.1/remove-yarn-dep.patch  |  68 ++
 app-misc/anki/files/23.12.1/unbundle-sqlite.patch  |  14 +
 .../anki/files/23.12.1/use-system-nextest.patch    |  26 +
 app-misc/anki/metadata.xml                         |  13 +
 11 files changed, 2067 insertions(+)