Skip to content

anki: 24.11 -> 25.02.5 - #392737

Merged
FliegendeWurst merged 2 commits into
NixOS:masterfrom
euank:anki-25-2-3
Jun 6, 2025
Merged

FliegendeWurst merged 2 commits into
NixOS:masterfrom
euank:anki-25-2-3

Conversation

@euank

@euank euank commented Mar 24, 2025 •

Copy link
Copy Markdown
Member

Fixes #395496

Upstream release: https://github.com/ankitects/anki/releases/tag/25.02.5

This update is a bit more involved than previous ones because the yarn.lock updated to a new yarn-berry format.

On my machine, this does give graphics errors until I echo software > ~/.local/share/Anki2/gldriver6.

I'm fairly confident that isn't actually an anki issue, but rather a qt and/or graphics driver issue on my machine, so I think it's probably okay to continue on regardless?

It's common enough upstream even has docs for it: https://docs.ankiweb.net/platform/linux/display-issues.html

[78397:78459:0428/000959.383654:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003003
[78397:78459:0428/000959.383668:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[78397:78459:0428/000959.383673:ERROR:native_pixmap_egl_binding.cc(118)] Unable to initialize binding from pixmap
[78397:78459:0428/000959.383684:ERROR:ozone_image_backing.cc(309)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[78397:78459:0428/000959.383688:ERROR:shared_image_manager.cc(255)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[78397:78459:0428/000959.383692:ERROR:native_skia_output_device.cpp(261)] ProduceSkia() failed.
....
[78397:78459:0428/000959.398132:ERROR:skia_output_surface_impl_on_gpu.cc(2264)] Failed to make current.
Received signal 11 SEGV_MAPERR 0007f35d4029

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added the 6.topic: games Gaming on NixOS label Mar 24, 2025
Comment thread pkgs/games/anki/default.nix Resolved
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 24, 2025
@nix-owners
nix-owners Bot requested a review from oxij March 24, 2025 15:28
@euank
euank marked this pull request as draft March 31, 2025 14:42
@euank

This comment was marked as outdated.

@euank

This comment was marked as outdated.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 7, 2025
@euank
euank marked this pull request as ready for review April 11, 2025 16:26
@ofborg ofborg Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Apr 11, 2025
@euank

euank commented Apr 11, 2025

Copy link
Copy Markdown
Member Author

I've marked this as ready to review since I believe I've got something that works reliably-enough now.

The fixed output derivation for yarn still isn't ideal, but it seems to be consistent, and it matches what some other packages are doing (i.e. mastodon).

@euank euank mentioned this pull request Apr 11, 2025
3 tasks done
@euank euank mentioned this pull request Apr 25, 2025
13 tasks
@euank
euank marked this pull request as draft April 27, 2025 15:09
@felixsinger

Copy link
Copy Markdown
Member

What's the status here? Also, Anki 25.02.5 got released 3 weeks ago.

@euank
euank marked this pull request as ready for review May 19, 2025 04:26
@euank

euank commented May 19, 2025

Copy link
Copy Markdown
Member Author

I forgot to click "ready for review" after the last set of changes.

I think this is ready for review! I'll update it to 25.02.5 as well this evening

@github-actions github-actions Bot added the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label May 19, 2025
euank added 2 commits May 20, 2025 00:46
Upstream makes it easier to build offline now, simplify the yarn part a
little
This update is a bit more involved than previous ones because the yarn
format also updated to yarn-berry, so we have to deal with that.
@euank euank changed the title anki: 24.11 -> 25.02 anki: 24.11 -> 25.02.5 May 19, 2025
@euank

euank commented May 19, 2025

Copy link
Copy Markdown
Member Author

Updated to 25.02.5, and updated the description.

I do get graphics issues with 25.02.5, i.e. I need to use software rendering as documented here. I'm on the amdgpu driver (an RX 6700 XT) under wayland.

I'm kinda curious if other people get this too with this update, since if it's everyone we should probably dig deeper... and if it's just me, ah well, it's not like software rendering is too slow for me 😅

@felixsinger

felixsinger commented May 20, 2025 •

Copy link
Copy Markdown
Member

Updated to 25.02.5, and updated the description.

I do get graphics issues with 25.02.5, i.e. I need to use software rendering as documented here. I'm on the amdgpu driver (an RX 6700 XT) under wayland.

I'm kinda curious if other people get this too with this update, since if it's everyone we should probably dig deeper... and if it's just me, ah well, it's not like software rendering is too slow for me 😅

I've compile-tested and ran it. Couldn't see any issue. How do I know if software rendering is used?

Edit: Sorry, I should have looked on that site you linked. I've tested with OpenGL, Vulkan and software rendering and all wroked for me. I'm on Intel Core i7-8565U using iGPU with i915 graphics driver.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label May 20, 2025

@eljamm eljamm left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it and everything looks good

I'm kinda curious if other people get this too with this update, since if it's everyone we should probably dig deeper... and if it's just me, ah well, it's not like software rendering is too slow for me 😅

I have an AMD APU and Vulkan rendering doesn't work for me (don't think it ever did), but OpenGL does. I also have an Nvidia GPU and everything works with it, so this could likely be an AMD-related issue (or Wayland, or both?). That said, I usually use software rendering too because it seems smoother to me.

@eljamm eljamm added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels May 24, 2025
@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/2405

@FliegendeWurst FliegendeWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update looks okay. It would be good to document how missing-hashes.json was generated

@siraben

siraben commented May 30, 2025

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 392737
Commit: 3e76f46fb9335648771914ce0bdac86fcb6e952a


x86_64-linux

✅ 9 packages built:
  • anki
  • anki-sync-server
  • anki.dist
  • anki.doc
  • anki.man
  • ki
  • ki.dist
  • mnemosyne
  • mnemosyne.dist

@euank

euank commented May 31, 2025 •

Copy link
Copy Markdown
Member Author

@FliegendeWurst the missing-hashes file is generated as documented here, with yarn-berry-fetcher missing-hashes.

I think it's okay to leave that to the general nixpkgs documentation, just like the other common functions (fetchGitHub etc) are documented elsewhere

@felixsinger

felixsinger commented May 31, 2025 •

Copy link
Copy Markdown
Member

I've created an update script for the Redmine package. It's not hooked up anywhere yet, but at least it gives an idea of the general steps. Would be nice to have that for anki as well. https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/re/redmine/update.sh

Edit: Not needed to do that here. A follow-up PR is fine.

@felixsinger

Copy link
Copy Markdown
Member

Good to go?

@FliegendeWurst
FliegendeWurst merged commit f4ccda6 into NixOS:master Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: games Gaming on NixOS 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Request: anki 24.11 → 25.02

7 participants