Bug 12806 - There are multiple issues in buildroot that faults cups printing
Summary: There are multiple issues in buildroot that faults cups printing
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.02.1
Hardware: PC Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-23 06:44 UTC by Alexey
Modified: 2020-05-16 14:23 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey 2020-04-23 06:44:26 UTC
First trouble is incorrect qpdf buiding.
Qpdf is mandatory dependence of cups.
In current master, qpdf builds with incorrect --no-random option. On 
any work< qpdf send 'no such file' error. For example:
qpdf /usr/share/cups/data/secret.pdf -

This commmand must get PDF file in stdout.But only 'No such file or
 directory' error present.

0/1 patch fix this by changing configure options to 
with-random=/dev/random.

Next global problem - cups-filters need ghostscript.
>From  https://github.com/OpenPrinting/cups-filters/blob/master/README :
By default, pdftops uses Ghostscript if this does not get changed
    at compile time, for example by the Linux distribution vendor.

0/2 patch fix id by settinbg ghostscript as default render if 
ghostscript enabled in voard config.

Last trouble - ghostscript building without cups support.

0/3 patch fix is by removing disable-patch option. Now, if cups is 
enabled, it will be added to dependencies and correct configure 
options added to ghostscript building. Also fixed ghostscript 
buildroot building issue with unpleasant hack in configure.ac, which 
broke pkg-config. It's broke cups search by ghostscript configure 
script.
GHOSTSCRIPT_CUPS_CONFIG_FIX also needed for this task.
Comment 2 Thomas Petazzoni 2020-05-16 14:23:59 UTC
Issue fixed. Thanks!