From 15df8b4e802cfb29ba3d1aff2b446f376d97501b Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 9 Nov 2023 14:37:48 +0200 Subject: qpdf: Update 10.6.3 -> 11.6.3 Update to version 11.6.3: - Fix a bug in which qpdf could potentially discard a character in a binary string if that character was preceded by an octal escaped string with fewer than three digits. This bug was introduced in the 11.0.0 release. The bug would not apply to content streams with default settings. - The linearization specification precludes linearized files that require offets past the 4 GB mark. A bug in qpdf was preventing it from working when offsets had to pass the 2 GB mark. This has been corrected. Switch to cmake. Use /dev/random to perform encryption securely. Change the fully defined path on the target to fix buildpaths QA issues with libqpdfTargets.cmake. Add openssl and gnutls as dependencies. Tested with usermerge distro feature and clang. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi Signed-off-by: Khem Raj --- meta-oe/recipes-printing/qpdf/qpdf_10.6.3.bb | 33 ----------------------- meta-oe/recipes-printing/qpdf/qpdf_11.6.3.bb | 40 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 33 deletions(-) delete mode 100644 meta-oe/recipes-printing/qpdf/qpdf_10.6.3.bb create mode 100644 meta-oe/recipes-printing/qpdf/qpdf_11.6.3.bb diff --git a/meta-oe/recipes-printing/qpdf/qpdf_10.6.3.bb b/meta-oe/recipes-printing/qpdf/qpdf_10.6.3.bb deleted file mode 100644 index fa33daf52d..0000000000 --- a/meta-oe/recipes-printing/qpdf/qpdf_10.6.3.bb +++ /dev/null @@ -1,33 +0,0 @@ -DESCRIPTION = "PDF transformation/inspection software" -HOMEPAGE = "http://qpdf.sourceforge.net" -LICENSE = "Artistic-2.0" -SECTION = "libs" -DEPENDS = "libpcre zlib libjpeg-turbo" - -SRC_URI = "${SOURCEFORGE_MIRROR}/qpdf/qpdf-${PV}.tar.gz" -SRC_URI[sha256sum] = "e8fc23b2a584ea68c963a897515d3eb3129186741dd19d13c86d31fa33493811" - -LIC_FILES_CHKSUM = "file://Artistic-2.0;md5=7806296b9fae874361e6fb10072b7ee3" - -inherit autotools-brokensep gettext - -# disable random file detection for cross-compile -EXTRA_OECONF = "--without-random \ - --disable-static \ - --disable-check-autofiles \ - " - -LDFLAGS:append:mipsarch = " -latomic" -LDFLAGS:append:riscv32 = " -latomic" - -S="${WORKDIR}/${BPN}-${PV}" - -# avoid Makefile returning error on 'make clean' before configure was run -CLEANBROKEN = "1" - -DEBIAN_NOAUTONAME:libqpdf = "1" - -PACKAGES =+ "libqpdf" -FILES:libqpdf = "${libdir}/libqpdf.so.*" - -RDEPENDS:${PN} = "libqpdf" diff --git a/meta-oe/recipes-printing/qpdf/qpdf_11.6.3.bb b/meta-oe/recipes-printing/qpdf/qpdf_11.6.3.bb new file mode 100644 index 0000000000..b56f8a822a --- /dev/null +++ b/meta-oe/recipes-printing/qpdf/qpdf_11.6.3.bb @@ -0,0 +1,40 @@ +DESCRIPTION = "PDF transformation/inspection software" +HOMEPAGE = "http://qpdf.sourceforge.net" +LICENSE = "Artistic-2.0" +SECTION = "libs" +DEPENDS = "libpcre zlib libjpeg-turbo openssl gnutls" + +SRC_URI = "${SOURCEFORGE_MIRROR}/qpdf/qpdf-${PV}.tar.gz" +SRC_URI[sha256sum] = "c394b1b0cff4cd9d13b0f5e16bdf3cf54da424dc434f9d40264b7fe67acd90bc" + +LIC_FILES_CHKSUM = "file://Artistic-2.0;md5=7806296b9fae874361e6fb10072b7ee3" + +inherit cmake gettext + +# disable random file detection for cross-compile +EXTRA_OECONF = "--without-random \ + --disable-static \ + --disable-check-autofiles \ + " + +EXTRA_OECMAKE = '-DRANDOM_DEVICE="/dev/random"' + +LDFLAGS:append:mipsarch = " -latomic" +LDFLAGS:append:riscv32 = " -latomic" + +S="${WORKDIR}/${BPN}-${PV}" + +do_install:append() { + # Change the fully defined path on the target + sed -i -e 's|${STAGING_LIBDIR}|${libdir}|g' ${D}${libdir}/cmake/${BPN}/libqpdfTargets.cmake +} + +# avoid Makefile returning error on 'make clean' before configure was run +CLEANBROKEN = "1" + +DEBIAN_NOAUTONAME:libqpdf = "1" + +PACKAGES =+ "libqpdf" +FILES:libqpdf = "${libdir}/libqpdf.so.*" + +RDEPENDS:${PN} = "libqpdf" -- cgit v1.2.3-54-g00ecf