Bug 22183 - xdvi broken due to missing flushpage in ghostscript
Summary: xdvi broken due to missing flushpage in ghostscript
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA5TOO MGA5-64-OK MGA6-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-12-12 15:43 CET by Chris Denice
Modified: 2017-12-21 18:44 CET (History)
5 users (show)

See Also:
Source RPM: ghostscript-9.22-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Chris Denice 2017-12-12 15:43:41 CET
Description of problem:

Postscript figures can no longer be displayed in .dvi file generated by laTex. 

The reason is a not enough tested upgrade of ghostscript, which does not support this feature anymore. Bug reported also on archlinux:

https://bugs.archlinux.org/task/56284

:(
Comment 1 Nicolas Salguero 2017-12-12 16:08:30 CET
Suggested advisory:
========================

The updated packages allow xdvi to work with Ghostscript 9.22 by restoring flushpage.
========================

Updated packages in 5/core/updates_testing:
========================
ghostscript-9.22-1.1.mga5
ghostscript-dvipdf-9.22-1.1.mga5
ghostscript-common-9.22-1.1.mga5
ghostscript-X-9.22-1.1.mga5
ghostscript-module-X-9.22-1.1.mga5
lib(64)gs9-9.22-1.1.mga5
lib(64)gs-devel-9.22-1.1.mga5
lib(64)ijs1-0.35-124.mga5
lib(64)ijs-devel-0.35-124.mga5
ghostscript-doc-9.22-1.1.mga5

from SRPMS:
ghostscript-9.22-1.1.mga5.src.rpm

Updated packages in 6/core/updates_testing:
========================
ghostscript-9.22-1.1.mga6
ghostscript-dvipdf-9.22-1.1.mga6
ghostscript-common-9.22-1.1.mga6
ghostscript-X-9.22-1.1.mga6
ghostscript-module-X-9.22-1.1.mga6
lib(64)gs9-9.22-1.1.mga6
lib(64)gs-devel-9.22-1.1.mga6
lib(64)ijs1-0.35-124.mga6
lib(64)ijs-devel-0.35-124.mga6
ghostscript-doc-9.22-1.1.mga6

from SRPMS:
ghostscript-9.22-1.1.mga6.src.rpm

Source RPM: texlive-texmf-20160523-6.mga6.src.rpm => ghostscript-9.22-1.1.mga6.src.rpm
Whiteboard: (none) => MGA5TOO
CC: (none) => nicolas.salguero
Status: NEW => ASSIGNED
Assignee: bugsquad => qa-bugs

Nicolas Salguero 2017-12-12 16:08:47 CET

Source RPM: ghostscript-9.22-1.1.mga6.src.rpm => ghostscript-9.22-1.mga6.src.rpm

Comment 2 Chris Denice 2017-12-12 23:05:07 CET
Well done! I am testing as soon as it lands on the mirrors!

thanks :)
Comment 3 Chris Denice 2017-12-13 09:45:27 CET
Tested with xdvi on x86_64, works for me!
Thanks for the rapid action :)
Comment 4 Herman Viaene 2017-12-14 11:58:12 CET
MGA5-32 on Dell Latitude D600 Xfce
No installation issues.
Never used xdvi before, found out it handles .tex files. Had some tex file created two years ago by gregorio, but run into problems.
At CLI:
$ xdvi christusv.dvi 
xdvi-xaw: Warning: could not find dvips map file psfonts.map; skipping
and error window:
Could not load any of the map files listed in xdvi.cfg - disabling FreeType.
I guess I would have to install gregorio on this laptop, as it carries special fonts for music notation????

CC: (none) => herman.viaene

Comment 5 Herman Viaene 2017-12-14 15:02:05 CET
BTW: the version of libijs1 under test seems to be libijs1-0.35-124.1mga5.
Comment 6 Nicolas Salguero 2017-12-14 15:04:00 CET
(In reply to Herman Viaene from comment #5)
> BTW: the version of libijs1 under test seems to be libijs1-0.35-124.1mga5.

Oops, you are right.

Updated packages in 5/core/updates_testing:
========================
ghostscript-9.22-1.1.mga5
ghostscript-dvipdf-9.22-1.1.mga5
ghostscript-common-9.22-1.1.mga5
ghostscript-X-9.22-1.1.mga5
ghostscript-module-X-9.22-1.1.mga5
lib(64)gs9-9.22-1.1.mga5
lib(64)gs-devel-9.22-1.1.mga5
lib(64)ijs1-0.35-124.1.mga5
lib(64)ijs-devel-0.35-124.1.mga5
ghostscript-doc-9.22-1.1.mga5

from SRPMS:
ghostscript-9.22-1.1.mga5.src.rpm

Updated packages in 6/core/updates_testing:
========================
ghostscript-9.22-1.1.mga6
ghostscript-dvipdf-9.22-1.1.mga6
ghostscript-common-9.22-1.1.mga6
ghostscript-X-9.22-1.1.mga6
ghostscript-module-X-9.22-1.1.mga6
lib(64)gs9-9.22-1.1.mga6
lib(64)gs-devel-9.22-1.1.mga6
lib(64)ijs1-0.35-124.1.mga6
lib(64)ijs-devel-0.35-124.1.mga6
ghostscript-doc-9.22-1.1.mga6

from SRPMS:
ghostscript-9.22-1.1.mga6.src.rpm
Comment 7 Chris Denice 2017-12-14 16:56:23 CET
@herman, yes, these warnings appear to be font issues. I would say that's a texlive bug to be reported. You can also try to install the whole texlive-dist and texlive-texmf packages, which are huge, and texlive-fontsextra, to see of this fixes your pb.

The issues reported here showed up in xdvi, if the latex file contains a (postscript) figure. It was not rendered with ghostscript-9.22 but works fine now with 9.22-1.1
Lewis Smith 2017-12-16 11:21:51 CET

Keywords: (none) => advisory

Comment 8 Len Lawrence 2017-12-16 23:03:31 CET
Installed the packages on Mageia 5 for x86_64.

$ gs ticket.ps
works fine but I do not have a specimen dvi file with an included postscript file.
Not an expert in TeX and it is more than 25 years since my LaTeX days so would not have a clue about composition.  The texlive stuff comes in at 700 MB or more.

CC: (none) => tarazed25

Comment 9 Lewis Smith 2017-12-18 14:09:34 CET
Testing M5/64

Only AFTER doing the update:
 ghostscript-common-9.22-1.1.mga5
 ghostscript-dvipdf-9.22-1.1.mga5
 ghostscript-module-X-9.22-1.1.mga5
 ghostscript-9.22-1.1.mga5
 ghostscript-fonts-8.11-19.mga5
 lib64ijs1-0.35-124.1.mga5

I luckily already had Lyx installed + the massive texlive packages. Used Lyx to create a small document in which I inserted a full-page PS image. Exported the document as DVI.
Was able to view it with xdvi, image included. The full-page image, all viewable in the source Lyx document, was right-truncated in xdvi. Scaling the image down in Lyx, re-exporting, enabled all the image to show in xdvi. The latter program is extremely slow to work.
Coupled with comment 3, this update looks OK for Mageia 5. To try also Mageia 6.

Whiteboard: MGA5TOO => MGA5TOO MGA5-64-OK
CC: (none) => lewyssmith

Comment 10 Lewis Smith 2017-12-19 16:57:47 CET
Testing M6/64

BEFORE the update:
 ghostscript-9.22-1.mga6
 ghostscript-common-9.22-1.mga6
 ghostscript-dvipdf-9.22-1.mga6
 ghostscript-module-X-9.22-1.mga6
 ghostscript-X-9.22-1.mga6
 lib64gs9-9.22-1.mga6
 lib64ijs1-0.35-124.mga6

xdvi-ing a DVI document containing a PS image yielded a lot of garbled console msgs starting:
 $ xdvi /mnt/common/Mageia/docs/dvi_image.dvi 
 xdvi-xaw: Warning: could not find dvips map file psfonts.map; skipping
 ...

The Document display was all grey background, showed its text and an outline box for the PS image - itself *not* displayed (the fault).
An "Xdvi Error" popup said:
 Could not load any of the map files listed in xdvi.cfg - disabling FreeType.

AFTER the update:
- ghostscript-9.22-1.1.mga6.x86_64
- ghostscript-common-9.22-1.1.mga6.x86_64
- ghostscript-dvipdf-9.22-1.1.mga6.x86_64
- ghostscript-module-X-9.22-1.1.mga6.x86_64
- ghostscript-X-9.22-1.1.mga6.x86_64
- lib64gs9-9.22-1.1.mga6.x86_64
- lib64ijs1-0.35-124.1.mga6.x86_64

Same unsatisfactory result as before = same as Herman hit Comment 4. I may try adding the extra pkgs suggested in Comment 7 - massive texlive was pulled in when I installed xdvi, so the extras may not be so bad.
For the moment, Comment 3 looks our best test.
Comment 11 Lewis Smith 2017-12-19 18:49:39 CET
Continuing M6/64

Re the previous post-update test, I should have noted:
 $ xdvi /mnt/common/Mageia/docs/dvi_image.dvi 
 xdvi-xaw: Warning: could not find dvips map file psfonts.map; skipping
 xdvi-xaw: Warning: Could not find graphics file "0_mnt_common_tmp_elPar-Wien-Par.ps" [The embedded PostScript file]
------------
I installed as per C7 (3/4Gb download):
 texlive-dist
 texlive-texmf
 texlive-fontsextra.

 $ xdvi /mnt/common/Mageia/docs/dvi_image.dvi 
 xdvi-xaw: Warning: Could not find graphics file "0_mnt_common_tmp_elPar-Wien-Par.ps"
which displayed the document as previously: grey background, text, red frame only for the PS graphic. The font-related and (pre-update) garbled console O/P, and Xdvi Error pop-up, are gone. Improvements. The 'missing' graphics file console msg explains the undisplayed PS graphic.

Given favourable C3 test, C7 +ve confirmation, lack of regression, I am OKing and validating this.
---------------
PS to create a PostScript file, Firefox 'print' to file, choose PS;
to create a DVI file, use Lyx, insert a PS file, Export as DVI.

Whiteboard: MGA5TOO MGA5-64-OK => MGA5TOO MGA5-64-OK MGA6-64-OK
Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 12 Mageia Robot 2017-12-21 18:44:20 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0127.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


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