diff --git a/docs/packages/liteparse.yaml b/docs/packages/liteparse.yaml index 478b016ed4d..a395d5e8131 100644 --- a/docs/packages/liteparse.yaml +++ b/docs/packages/liteparse.yaml @@ -44,3 +44,4 @@ versions: - filename: liteparse-2.14.7-cp310-abi3-manylinux_2_39_riscv64.whl sha256: 7338747b81d7c0ddf10d4dbba5affc14af235435a9575d501ebcd5b476cc0a04 requires-python: '>=3.10' +- version: 2.15.0 diff --git a/patches/liteparse/2.15.0/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.15.0/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 00000000000..aaa74eb2ecd --- /dev/null +++ b/patches/liteparse/2.15.0/0001-skia-accept-riscv64-target-cpu.patch @@ -0,0 +1,19 @@ +Upstream-Status: To upstream [not yet submitted; pdfium main's skia/BUILD.gn still lacks the riscv64 branch Chromium's copy has] + +PDFium's skia/BUILD.gn asserts on every target CPU its skia_opts chain does not +name, so `gn gen` fails for target_cpu = "riscv64" even with pdf_use_skia=false: +the root BUILD.gn's gn_check group depends on //skia whenever checkout_skia is set, +which it is for checkout_configuration=small. Chromium's own skia/BUILD.gn already +carries this empty riscv64 branch (Skia's portable code path needs no extra flags). +diff --git a/skia/BUILD.gn b/skia/BUILD.gn +--- a/skia/BUILD.gn ++++ b/skia/BUILD.gn +@@ -560,6 +560,8 @@ skia_source_set("skia_opts") { + # Conditional and empty body needed to avoid assert below + } else if (current_cpu == "mipsel" || current_cpu == "mips64el") { + cflags += [ "-fomit-frame-pointer" ] ++ } else if (current_cpu == "riscv64") { ++ # Conditional and empty body needed to avoid assert() below. + } else { + assert(false, "Unsupported target CPU " + current_cpu) + }