Commit Graph

2 Commits

Author SHA1 Message Date
Khem Raj 9cca0fa277 python3-pikepdf: Fix cross build with scikit-build-core
do_compile failed to find ninja, and after providing it CMake's C++20
module dependency scanning (clang-scan-deps) failed in the cross
environment with "'cstddef' file not found".

Add ninja-native and python3-scikit-build-core-native to DEPENDS so the
--no-isolation build finds its build tools, and disable C++20 module
scanning via CMAKE_ARGS since pikepdf uses the C++20 language but no
named modules.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-08 23:34:16 -07:00
Leon Anavi d8b0db4279 python3-pikepdf: Upgrade 10.5.1 -> 10.9.1
Upgrade to release 10.9.1:

- Fixed a crash (SIGABRT via std::terminate) that could occur when
  a file-backed {class}pikepdf.Pdf was deallocated while a Python
  exception was already propagating -- for example when
  pikepdf.open(filename) appears as a transient element of a
  list/tuple literal whose later element raises. Opening from a
  filename closes the file in the input source destructor, which
  calls back into Python; with an exception already in flight that
  call raised an error that escaped the destructor. The in-flight
  exception is now preserved and propagates normally. Added a guard
  for a likely non-reproducible related case with DecimalPrecision.

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-07-08 11:05:07 -07:00