[meta-oe] qpdf: upgrade 10.4.0 -> 10.5.0

Message ID 1640615604-22927-1-git-send-email-wangmy@fujitsu.com
State New
Headers show
Series [meta-oe] qpdf: upgrade 10.4.0 -> 10.5.0 | expand

Commit Message

Mingyu Wang (Fujitsu) Dec. 27, 2021, 2:33 p.m. UTC
Changelog:
=========
Packaging changes:
-----------------
Pre-built documentation is no longer distributed with the source distribution.
The AppImage and Windows binary distributions still contain embedded
documentation, and a separate doc distribution file is available from the qpdf
release site. Documentation is now available at https://qpdf.readthedocs.io
for every major/minor version starting with version 10.5. Please see Packaging
Documentation for details on how packagers should handle documentation.

The documentation sources have been switched from docbook to reStructuredText
processed with Sphinx. This will break previous documentation links.
A redirect is in place on the main website. A top-to-bottom review of the
documentation is planned for an upcoming release.

Library Enhancements:
--------------------
Since qpdf version 8, using object accessor methods on an instance of
QPDFObjectHandle may create warnings if the object is not of the expected type.
These warnings now have an error code of qpdf_e_object instead of
qpdf_e_damaged_pdf. Also, comments have been added to QPDFObjectHandle.hh to
explain in more detail what the behavior is. See Object Accessor Methods for
a more in-depth discussion.

Add Pl_Buffer::getMallocBuffer() to initialize a buffer allocated with malloc()
for better cross-language interoperability.

C API Enhancements:
-------------------
Many thanks to M. Holger whose contributions have heavily influenced these C
API enhancements. His several suggestions, pull requests, questions, and
critical reading of documentation and comments have resulted in significant
usability improvements to the C API.

Overhaul error handling for the object handle functions C API. Some rare error
conditions that would previously have caused a crash are now trapped and
reported, and the functions that generate them return fallback values.
See comments in the ERROR HANDLING section of include/qpdf/qpdf-c.h for details.
In particular, exceptions thrown by the underlying C++ code when calling object
accessors are caught and converted into errors. The errors can be checked by
calling qpdf_has_error. Use qpdf_silence_errors to prevent the error from being
written to stderr.

Add qpdf_get_last_string_length to the C API to get the length of the last
string that was returned. This is needed to handle strings that contain embedded
null characters.

Add qpdf_oh_is_initialized and qpdf_oh_new_uninitialized to the C API to make it
possible to work with uninitialized objects.

Add qpdf_oh_new_object to the C API. This allows you to clone an object handle.

Add qpdf_get_object_by_id, qpdf_make_indirect_object, and qpdf_replace_object,
exposing the corresponding methods in QPDF and QPDFObjectHandle.

Add several functions for working with pages. See PAGE FUNCTIONS in
include/qpdf/qpdf-c.h for details.

Add several functions for working with streams. See STREAM FUNCTIONS in
include/qpdf/qpdf-c.h for details.

Add qpdf_oh_get_type_code and qpdf_oh_get_type_name.

Add qpdf_oh_get_binary_string_value and qpdf_oh_new_binary_string for making it
easier to deal with strings that contain embedded null characters.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../recipes-printing/qpdf/{qpdf_10.4.0.bb => qpdf_10.5.0.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-printing/qpdf/{qpdf_10.4.0.bb => qpdf_10.5.0.bb} (90%)

Patch

diff --git a/meta-oe/recipes-printing/qpdf/qpdf_10.4.0.bb b/meta-oe/recipes-printing/qpdf/qpdf_10.5.0.bb
similarity index 90%
rename from meta-oe/recipes-printing/qpdf/qpdf_10.4.0.bb
rename to meta-oe/recipes-printing/qpdf/qpdf_10.5.0.bb
index 793dbb195..9644c653e 100644
--- a/meta-oe/recipes-printing/qpdf/qpdf_10.4.0.bb
+++ b/meta-oe/recipes-printing/qpdf/qpdf_10.5.0.bb
@@ -5,7 +5,7 @@  SECTION = "libs"
 DEPENDS = "libpcre zlib libjpeg-turbo"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/qpdf/qpdf-${PV}.tar.gz"
-SRC_URI[sha256sum] = "9ac6e691cc3f35a9fe44632e3fba727e1b6ef21181c0a883287abf5cf97ae222"
+SRC_URI[sha256sum] = "88257d36a44fd5c50b2879488324dd9cafc11686ae49d8c4922a4872203ce006"
 
 LIC_FILES_CHKSUM = "file://Artistic-2.0;md5=7806296b9fae874361e6fb10072b7ee3"