Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#80056 - [pappl] Built in base PNG filter not available due to missing libpng dependency

Attached to Project: Arch Linux
Opened by Matt Robinson (ribbons) - Sunday, 22 October 2023, 18:57 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 22 October 2023, 20:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The pappl PKGBUILD (1.2.0-1 in this instance) does not list a dependency on libpng so the HAVE_LIBPNG macro is not defined and the built-in base image/png to image/pwg-raster filter is not included in the package:

https://github.com/michaelrsweet/pappl/blob/dc8e97b021bf92fc1ecd74a983803dd19a58d812/pappl/system.c#L251

Interestingly, libjpeg-turbo is listed as a dependency so the other base filter (image/jpeg to image/pwg-raster) is available.

I discovered this when submitting png images to lprint and getting the unexpected log message "Unable to process job with format 'image/png'" instead of a printed label.

Steps to reproduce:

* lprint submit a PNG image
* A label is not printed
* Log message "Unable to process job with format 'image/png'." originating from pappl is written by lprint

Suggested patch:

diff --git a/PKGBUILD b/PKGBUILD
index 23b7c24..926741d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ arch=('x86_64')
url="https://www.msweet.org/pappl/"
license=('Apache' 'custom')
depends=('libcups' 'libjpeg-turbo' 'pam' 'libusb'
- 'openssl' 'zlib' 'avahi' 'glibc')
+ 'openssl' 'zlib' 'avahi' 'glibc' 'libpng')
makedepends=('git')
source=(https://github.com/michaelrsweet/pappl/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz{,.sig})
sha256sums=('93b2fd7f8d4528fa655adc6174ed7eb925e80f417663acd8118fb04b61cc38d7'
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Sunday, 22 October 2023, 20:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.4.2-2

Loading...