From 03c6c36d1e1e884cda65751ec1c1e9fb63ad53a3 Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Sun, 27 Sep 2026 07:41:35 +0000 Subject: [PATCH 1/2] liteparse: Add versions 2.14.3, 2.14.4, 2.14.5, 2.14.6, 2.14.7 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/liteparse.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/packages/liteparse.yaml b/docs/packages/liteparse.yaml index 37bd254598..e151df8bae 100644 --- a/docs/packages/liteparse.yaml +++ b/docs/packages/liteparse.yaml @@ -9,3 +9,8 @@ versions: - filename: liteparse-2.14.2-cp310-abi3-manylinux_2_39_riscv64.whl sha256: 678e5fa50419dddcdc43d0eab50684f52dec1456e09850c1d4c183a8d42af7c5 requires-python: '>=3.10' +- version: 2.14.3 +- version: 2.14.4 +- version: 2.14.5 +- version: 2.14.6 +- version: 2.14.7 From 6c1d67d1295e1cca258f044e1f3aeb809647e2bb Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Sun, 27 Sep 2026 09:25:14 +0000 Subject: [PATCH 2/2] liteparse: carry forward the skia riscv64 patch to 2.14.3-2.14.7 The nightly-upgrade bot bumped docs/packages/liteparse.yaml to 2.14.3, 2.14.4, 2.14.5, 2.14.6 and 2.14.7 but did not add any patches/liteparse// directory, so the "Apply riscv64 patches" step's git apply failed with "No such file or directory" before the pdfium build could start. The patch applies to the pdfium checkout liteparse pins in crates/pdfium-sys/build.rs, not to liteparse itself: - 2.14.3 and 2.14.4 still pin chromium/8028, like 2.14.2, so the patch is copied unchanged. - 2.14.5, 2.14.6 and 2.14.7 pin chromium/8058, whose skia/BUILD.gn has the same skia_opts CPU chain 17 lines earlier. Only the hunk header changes (@@ -577 -> @@ -560), so git apply no longer relies on an offset; the context and the added riscv64 branch are identical. Each copy was checked with git apply --check against skia/BUILD.gn at its own pinned pdfium branch. --- .../0001-skia-accept-riscv64-target-cpu.patch | 19 +++++++++++++++++++ .../0001-skia-accept-riscv64-target-cpu.patch | 19 +++++++++++++++++++ .../0001-skia-accept-riscv64-target-cpu.patch | 19 +++++++++++++++++++ .../0001-skia-accept-riscv64-target-cpu.patch | 19 +++++++++++++++++++ .../0001-skia-accept-riscv64-target-cpu.patch | 19 +++++++++++++++++++ 5 files changed, 95 insertions(+) create mode 100644 patches/liteparse/2.14.3/0001-skia-accept-riscv64-target-cpu.patch create mode 100644 patches/liteparse/2.14.4/0001-skia-accept-riscv64-target-cpu.patch create mode 100644 patches/liteparse/2.14.5/0001-skia-accept-riscv64-target-cpu.patch create mode 100644 patches/liteparse/2.14.6/0001-skia-accept-riscv64-target-cpu.patch create mode 100644 patches/liteparse/2.14.7/0001-skia-accept-riscv64-target-cpu.patch diff --git a/patches/liteparse/2.14.3/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.14.3/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 0000000000..45a29e65d2 --- /dev/null +++ b/patches/liteparse/2.14.3/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 +@@ -577,6 +577,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) + } diff --git a/patches/liteparse/2.14.4/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.14.4/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 0000000000..45a29e65d2 --- /dev/null +++ b/patches/liteparse/2.14.4/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 +@@ -577,6 +577,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) + } diff --git a/patches/liteparse/2.14.5/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.14.5/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 0000000000..aaa74eb2ec --- /dev/null +++ b/patches/liteparse/2.14.5/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) + } diff --git a/patches/liteparse/2.14.6/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.14.6/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 0000000000..aaa74eb2ec --- /dev/null +++ b/patches/liteparse/2.14.6/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) + } diff --git a/patches/liteparse/2.14.7/0001-skia-accept-riscv64-target-cpu.patch b/patches/liteparse/2.14.7/0001-skia-accept-riscv64-target-cpu.patch new file mode 100644 index 0000000000..aaa74eb2ec --- /dev/null +++ b/patches/liteparse/2.14.7/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) + }