diff mbox series

[meta-oe,93/96] libcupsfilters: Fix build dependencies for 2.2.1

Message ID 20261115074918.2932593-93-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,01/96] crow: upgrade 1.3.4 -> 1.3.5 | expand

Commit Message

Khem Raj Nov. 15, 2026, 7:49 a.m. UTC
2.2 replaced qpdf with pdfio and added JPEG-XL support, which is
enabled by default and makes configure fail without libjxl. Depend on
pdfio instead of qpdf and poppler (only pdftoppm is used, at runtime),
and add a jpegxl PACKAGECONFIG.

Also strip the recipe sysroot from libcupsfilters.pc; it embeds the
cups pkg-config cflags (dbus include paths) since 2.2.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb b/meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb
index 3e773715d5..5fa268295f 100644
--- a/meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb
+++ b/meta-oe/recipes-printing/cups/libcupsfilters_2.2.1.bb
@@ -3,7 +3,7 @@  HOMEPAGE = "https://github.com/OpenPrinting"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=aab2024bd2a475438a154cd1640c9684"

-DEPENDS = "cups fontconfig libexif dbus lcms qpdf poppler libpng jpeg tiff"
+DEPENDS = "cups fontconfig libexif dbus lcms pdfio libpng jpeg tiff"

 SRC_URI = "https://github.com/OpenPrinting/${BPN}/releases/download/${PV}/${BP}.tar.xz \
            "
@@ -11,6 +11,9 @@  SRC_URI[sha256sum] = "0a22b849d5068c4c86b20fbb4192d3faa3dabcc9ee844c8fd73710ed82

 inherit autotools gettext pkgconfig github-releases

+PACKAGECONFIG ??= "jpegxl"
+PACKAGECONFIG[jpegxl] = "--with-jpegxl,--without-jpegxl,libjxl"
+
 # github-releases defaults GITHUB_BASE_URI to github.com/<BPN>/<BPN>, which 404s
 # for this project; releases live under the OpenPrinting org.
 GITHUB_BASE_URI = "https://github.com/OpenPrinting/${BPN}/releases/"
@@ -18,3 +21,7 @@  UPSTREAM_CHECK_REGEX = "releases/tag/(?P<pver>\d+(\.\d+)+)"

 FILES:${PN} += "${datadir}"
 RDEPENDS:${PN} += "ghostscript"
+
+do_install:append() {
+    sed -i -e 's:${RECIPE_SYSROOT}::g' ${D}${libdir}/pkgconfig/libcupsfilters.pc
+}