Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/packages/liteparse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 19 additions & 0 deletions patches/liteparse/2.14.3/0001-skia-accept-riscv64-target-cpu.patch
Original file line number Diff line number Diff line change
@@ -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)
}
19 changes: 19 additions & 0 deletions patches/liteparse/2.14.4/0001-skia-accept-riscv64-target-cpu.patch
Original file line number Diff line number Diff line change
@@ -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)
}
19 changes: 19 additions & 0 deletions patches/liteparse/2.14.5/0001-skia-accept-riscv64-target-cpu.patch
Original file line number Diff line number Diff line change
@@ -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)
}
19 changes: 19 additions & 0 deletions patches/liteparse/2.14.6/0001-skia-accept-riscv64-target-cpu.patch
Original file line number Diff line number Diff line change
@@ -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)
}
19 changes: 19 additions & 0 deletions patches/liteparse/2.14.7/0001-skia-accept-riscv64-target-cpu.patch
Original file line number Diff line number Diff line change
@@ -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)
}
Loading