Bug 6064 - pstopdf broken by default on SLES 12
Summary: pstopdf broken by default on SLES 12
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server OS (show other bugs)
Version: 1.3.1
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Karl Mikaelsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 14:15 CEST by Pierre Ossman
Modified: 2019-09-18 13:12 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2016-10-17 14:15:33 CEST
It requires bc but doesn't have a proper RPM dependency, leaving a default installation with a broken pstopdf and hence a broken thinlocal.
Comment 1 Pierre Ossman cendio 2016-10-18 11:49:05 CEST
Solve this by reporting bug to SUSE and put up a platform specific note.
Comment 2 Karl Mikaelsson cendio 2017-08-07 13:55:56 CEST
https://bugzilla.suse.com/show_bug.cgi?id=1036220
Comment 3 Karl Mikaelsson cendio 2017-08-14 09:30:00 CEST
(In reply to comment #2)
> https://bugzilla.suse.com/show_bug.cgi?id=1036220

tl;dr: upstream cups-filters has dropped pstopdf in favor of gstopdf and adjusted their filter chains to fit.
Comment 4 Pierre Ossman cendio 2017-08-14 15:41:26 CEST
First let's update our SLES image and see if they've also made the same change as OpenSUSE. If they have then we can continue looking at gstopdf, otherwise move that part to a separate bug and go back to the 'bc' problem.
Comment 5 Karl Mikaelsson cendio 2017-08-22 09:45:16 CEST
* SLES12SP2 still has pstopdf installed through cups-filters-1.0.58-13.1.x86_64.

* SLES12SP3 has not been released yet, est. release in September.

* OpenSUSE Leap 42.3 is available, and it also has pstopdf available through cups-filters-1.8.2-3.1.x86_64.
Comment 6 Peter Åstrand cendio 2017-08-22 13:16:31 CEST
Please note that our printing support uses ps2pdf, while this bug talks about pstopdf.
Comment 7 Pierre Ossman cendio 2017-08-29 12:55:37 CEST
Let's retest ThinLinc on a clean install of SLES and see if this still is an issue.
Comment 8 Pierre Ossman cendio 2017-08-30 13:36:12 CEST
Some confusion about commands here:

 - pstopdf : a CUPS filter, not a normal command. Uses ps2ps for the actual conversion
 - ps2pdf : a standalone command to convert PostScript to PDF

A default configured CUPS on SLES (and most other systems), will use it's pstopdf filter when it needs to convert PostScript to PDF.

ThinLinc also adds its own filter, thinlinc-ps2pdf, which is used if the pstopdf is missing. This filter uses ps2pdf to do the actual conversion. I don't think there's any reasonable scenario on SLES where this ends up being used.
Comment 9 Pierre Ossman cendio 2017-08-30 13:38:35 CEST
Method to reproduce:

1. Minimal install of SLES
2. Install cups, enable and start it
3. Install ThinLinc, letting it pull in all extra dependencies
4. Print a PostScript job*

* Many programs on SLES 12 output PDF directly, so it's only some programs that are affected by this issue. The use of bc in the pstopdf filter is also on some conditional code paths, so it might not trigger for all jobs. I created a PostScript file from gedit and then printed that using lpr.

Note You need to log in before you can comment on or make changes to this bug.