Bug 371887 - .ps-files were not displayed since last update of ghostscript
Summary: .ps-files were not displayed since last update of ghostscript
Status: RESOLVED DOWNSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PS backend (show other bugs)
Version: 0.21.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 377120 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-10-31 11:16 UTC by agerer.zweik
Modified: 2017-03-03 23:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description agerer.zweik 2016-10-31 11:16:12 UTC
from last update of ghostscript, ghostscript-x11 and ghostscript-devel with automatic online-update no .ps-file is displayed when clicked in the dolphin file manager, which is using okular for the display of images. Only a small symbol is shown in the upper left corner. 
Printing of the files is possible and thumbnails are shown correctly.

With other software as kghostview, ghostview etc. the .ps-files are displayed.
Comment 1 Albert Astals Cid 2016-10-31 11:19:55 UTC
So will you tell us which versions of ghostscript, ghostscript-x11 and ghostscript-devel are you using or do we have to guess what "the last update" means?
Comment 2 agerer.zweik 2016-10-31 11:31:45 UTC
Thank you very much for answering so fast!!

sorry not to tell the version number, it is 9.15-6.1

'last update': In SUSE 13.2 an icon pops up whenever something needs 
updating and a list of necessary items is listet. In each case I have 
pressed the 'install'-button. So I did Saturday Okt. 29. In all former 
cases all was good, but not now with ghostscript, ghostscript-x11, 
ghostscript-devel update.

sincerely
Franz Agerer

Am 31.10.2016 um 12:19 schrieb Albert Astals Cid:
> https://bugs.kde.org/show_bug.cgi?id=371887
>
> Albert Astals Cid <aacid@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>                   CC|                            |aacid@kde.org
>               Status|UNCONFIRMED                 |NEEDSINFO
>
> --- Comment #1 from Albert Astals Cid <aacid@kde.org> ---
> So will you tell us which versions of ghostscript, ghostscript-x11 and
> ghostscript-devel are you using or do we have to guess what "the last update"
> means?
>
Comment 3 Albert Astals Cid 2016-10-31 15:47:40 UTC
And what was the version that worked?
Comment 4 agerer.zweik 2016-10-31 16:47:22 UTC
Sorry, I have no idea where to find the version number of the former 
ghostscript. The old version is overwritten by the updated one. I have 
never downloaded any version. It was installed by yast as part of the 
installed software of openSUSE 13.2. May be, the original version of the 
DVD was one or several times updated by the automatic online updater. I 
can only say, all former version worked.

sincerely
Franz Agerer


Am 31.10.2016 um 16:47 schrieb Albert Astals Cid:
> https://bugs.kde.org/show_bug.cgi?id=371887
>
> --- Comment #3 from Albert Astals Cid <aacid@kde.org> ---
> And what was the version that worked?
>
Comment 5 Antonio Larrosa 2016-10-31 18:04:36 UTC
Albert asked me to have a look at this since it seems to be an openSUSE issue. I had a look and it seems to be a problem with a security patch introduced in that update. I created an issue in openSUSE's bugzilla at https://bugzilla.opensuse.org/show_bug.cgi?id=1007816 . Franz, if this is an urgent problem for you, I mentioned a temporary workaround in that bugzilla entry.
Comment 6 agerer.zweik 2016-10-31 18:28:27 UTC
Antonio, no, it is not very urgent for me, for I use intermediately 
KGhostView, but I would really like to return to okular for viewing my 
files.

sincerely
Franz Agerer


Am 31.10.2016 um 19:04 schrieb Antonio Larrosa:
> https://bugs.kde.org/show_bug.cgi?id=371887
>
> Antonio Larrosa <larrosa@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |larrosa@kde.org
>
> --- Comment #5 from Antonio Larrosa <larrosa@kde.org> ---
> Albert asked me to have a look at this since it seems to be an openSUSE issue.
> I had a look and it seems to be a problem with a security patch introduced in
> that update. I created an issue in openSUSE's bugzilla at
> https://bugzilla.opensuse.org/show_bug.cgi?id=1007816 . Franz, if this is an
> urgent problem for you, I mentioned a temporary workaround in that bugzilla
> entry.
>
Comment 7 Wolfgang Bauer 2016-10-31 18:41:07 UTC
You can easily fix it yourself though until an update is released:
Open the file /usr/share/ghostscript/9.15/Resource/Init/gs_init.ps in a text editor (as root), and change line#2024 to:
  systemdict /getenv {pop //false} .forceput
(i.e. replace "put" with ".forceput")

That's the upstream fix for this problem btw:
http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=99e331527d541a8f01ad5455c4eb2aabd67281a6;hp=0d4644c003067fc14ca1db9c600dce420c06e6b1
Comment 8 agerer.zweik 2016-10-31 20:07:01 UTC
Thank you very much// Vielen herzlichen Dank
it works                     // es funktioniert!

Franz Agerer


Am 31.10.2016 um 19:41 schrieb Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=371887
>
> Wolfgang Bauer <wbauer@tmo.at> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |wbauer@tmo.at
>
> --- Comment #7 from Wolfgang Bauer <wbauer@tmo.at> ---
> You can easily fix it yourself though until an update is released:
> Open the file /usr/share/ghostscript/9.15/Resource/Init/gs_init.ps in a text
> editor (as root), and change line#2024 to:
>    systemdict /getenv {pop //false} .forceput
> (i.e. replace "put" with ".forceput")
>
> That's the upstream fix for this problem btw:
> http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=99e331527d541a8f01ad5455c4eb2aabd67281a6;hp=0d4644c003067fc14ca1db9c600dce420c06e6b1
>
Comment 9 Wolfgang Bauer 2016-11-01 00:04:08 UTC
Ok, let's close this as downstream then, as it was introduced by a security update in openSUSE.
Though it actually was an upstream problem in ghostscript too... ;-)
Comment 10 Wolfgang Bauer 2017-03-03 23:02:13 UTC
*** Bug 377120 has been marked as a duplicate of this bug. ***