Compiling after CVE changes

Build fails after Latest requests CVE · ankitects/anki@4853798 · GitHub

WARNING: The candidate selected for download or install is a yanked version: ‘requests’ candidate (version
2.32.1 at https://files.pythonhosted.org/packages/9c/a6/b9bf71eeb6dc835311b5c47a7c90df57b080610911616396112
52257768d/requests-2.32.1-py3-none-any.whl (from Links for requests) (requires-python:>=3.8)
)
Reason for being yanked: Yanked due to conflicts CVE-2024-35195 mitigation


@dae thanks for the commit. Unfortunately the build continues to fail :slight_smile:

I can’t seem to reproduce this, even after removing out/pyenv and the pip cache. What’s the updated error message?

1 Like

I also removed out and pip,yarn cache

QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor ./tools/runopt
Finished release [optimized] target(s) in 0.12s
[1/1; 1 active; 0.061s] build:configure
[3/45; 2 active; 32.539s] node_modules
yarn install v1.22.22
[1/4] Resolving packages…
[2/4] Fetching packages…
warning Pattern [“string-width@^4.1.0”] is trying to unpack in the same destination “/home/chris/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs” as pattern [“string-width-cjs@npm:string-width@^4.2.0”]. This could result in non-deterministic behavior, skipping.
warning svelte-preprocess@5.1.3: The engine “pnpm” appears to be invalid.
[3/4] Linking dependencies…
warning " > esbuild-sass-plugin@2.16.1" has incorrect peer dependency “esbuild@^0.19.4”.
[4/4] Building fresh packages…
Done in 32.26s.
[34/45; 2 active; 36.146s] sveltekit
FAILED: /home/chris/anki/ankidev/out/sveltekit /home/chris/anki/ankidev/out/sveltekit.marker
/home/chris/anki/ankidev/out/rust/release/runner run --stamp=/home/chris/anki/ankidev/out/sveltekit.marker ./yarn build
yarn run v1.22.22
$ cd ts && vite build
/usr/bin/env: ‘node’: Text file busy
error Command failed with exit code 126.
info Visit yarn run | Yarn for documentation about this command.
Failed with code Some(126): ./yarn build
[35/45; 1 active; 69.549s] pylib:rsbridge
Compiling anki v0.0.0 (/home/chris/anki/ankidev/rslib)
Compiling rsbridge v0.0.0 (/home/chris/anki/ankidev/pylib/rsbridge)
Finished release [optimized] target(s) in 1m 09s
ninja: build stopped: subcommand failed.
Build failed.
~/anki/ankidev main > 1m 10s 06:05:47

Many users report the same problem:
https://aur.archlinux.org/packages/anki

https://aur.archlinux.org/packages/anki-git

Some reported solution but haven’t tried it yet
https://github.com/nodejs/docker-node/issues/1912

1 Like

You could try tools/clean

It didn’t help unfortunately :frowning:

The thread you linked seems to indicate it’s an issue with your kernel version.

2 Likes

Problem fixed. Currently with Kernel: 6.9.3-arch1-1

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.