FS#76316 - [ghostscript] Please enable the x11 driver
Attached to Project:
Arch Linux
Opened by topcat01 (topcat01) - Thursday, 27 October 2022, 17:24 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 01 November 2022, 21:28 GMT
Opened by topcat01 (topcat01) - Thursday, 27 October 2022, 17:24 GMT
Last edited by Andreas Radke (AndyRTR) - Tuesday, 01 November 2022, 21:28 GMT
|
Details
Description:
extra/ghostscript does not have the x11 driver. Please consider enabling it. Additional info: * package version(s): 10.0.0-1 * config and/or log files etc. * link to upstream bug report, if any Steps to reproduce: `gs -h` shows no x11 drivers, and gs defaults to the `bbox` driver. I checked against Ubuntu where the x11 driver shows up and gs opens a window rendering the PS file. |
This task depends upon
Being orphaned it'll probably just gather dust. But if you report it upstream, propose a fix, etc, it might have a chance.
And that is? C'mon...the suspense!
This time for testing I build ghostpdl from source (the same source file used by the ghostscript package) with just the --with-x option to configure. The resulting gs binary shows the x11 driver and gv works when I change the interpreter (in gv options) to point to my locally built version. For comparison, I build gs from the PKGBUILD and the resultant gs is missing the x11 driver. In this case neither gs nor gsx makes gv happy.
So, it appears that something in the PKGBUILD disables the x11 driver. Note that the "x11 driver" is needed for some functionality like gv integration, and not merely for opening a window. Please let me know if any further details are necessary. My system is fully up to date with X11 headers and libs installed. Thanks!
working gs binary and replace it with a symlink to gsc.
(Check https://bugs.ghostscript.com/show_bug.cgi?id=705895 for the related culprint)
$ /usr/bin/gs -sDEVICE=x11
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
Unknown device: x11
I see that the PKGBUILD has dropped the `--enable-dynamic` flag so not sure what the issue is. My local test build from source (directly, not using the PKGBUILD) still works.
/usr/bin/gs -sDEVICE=x11
GPL Ghostscript 10.0.0 (2022-09-21)
Copyright (C) 2022 Artifex Software, Inc. All rights reserved.
This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
see the file COPYING for details.
and some white X11 window pops up.
and this also seems to work here:
andyrtr@workstation64:[~]$ gs -h | grep -i x11
Default output device: x11alpha
tiffsep1 txtwrite uniprint urf x11 x11alpha x11cmyk x11cmyk2 x11cmyk4
x11cmyk8 x11gray2 x11gray4 x11mono x11rg16x x11rg32x xcf xes xpswrite