Bug 7245 - texmacs: Bad display of pictures and no export to PDF files
Summary: texmacs: Bad display of pictures and no export to PDF files
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure MGA2-32-OK MGA2-64-OK
Keywords: validated_update
Depends on: 2317
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-29 18:17 CEST by leo lenoir
Modified: 2012-09-07 20:37 CEST (History)
4 users (show)

See Also:
Source RPM: texmacs-1.0.7.11-2.mga2
CVE:
Status comment:


Attachments

Description leo lenoir 2012-08-29 18:17:27 CEST
Description of problem:
Hi!
Two problems with texmacs (texmacs-1.0.7.11-2.mga2.x86_64.rpm) on mageia2 64 bits.
(GNU TeXmacs is a free wysiwyw editing platformwith special features for scientists.)
First texmacs doesn't display pictures (jpg, png,eps).
I see something like a "printscreen" where my pictures should be, the size of my pictures.
Texmacs doesn't also export to PDF files. The PDF files it makes are in fact ps files.
Three : texmacs-1.0.7.11 is old .

I try texmacs-1.0.7.16-1.mga3.x86_64.rpm for Cauldron.
No bug with pictures.
But it can't make right PDF files.

This bug is known : https://savannah.gnu.org/bugs/?30120

I made a texmacs rpm with texmacs-1.0.7.16-1.mga3.src.rpm.
I'd to add a few thing in the spec file (files forgotten), but now it works.
Because I compiled it with ghostscript on my computer ?


Version-Release number of selected component (if applicable):
texmacs-1.0.7.11-2.mga2.x86_64.rpm
texmacs-1.0.7.16-1.mga3.x86_64.rpm


How reproducible: try put a picture in the document. Try to export to PDF.
Remco Rijnders 2012-08-29 18:21:39 CEST

Assignee: bugsquad => pierre-malo.denielou
Summary: Bad display of pictures and no export to PDF files => texmacs: Bad display of pictures and no export to PDF files
Source RPM: texmacs-1.0.7.11-2.mga2.x86_64 texmacs-1.0.7.16-1.mga3.x86_64.rpm => texmacs-1.0.7.11-2.mga2

Comment 1 Malo Deniélou 2012-08-29 18:56:04 CEST
Hi, I can reproduce the problem with displaying pictures. I will investigate.

For pdf, using file>export>pdf, I have no problem. Maybe texmacs is missing a requires for ghostscript, as you are suggesting. I will investigate as well.

Thanks for the report.
Malo Deniélou 2012-08-29 18:56:13 CEST

Status: NEW => ASSIGNED

Comment 2 Malo Deniélou 2012-08-31 19:01:15 CEST
Can you check that installing ghostscript-module-X fixes the picture problem?

For the pdf problem, I can't reproduce, but it looks like a missing dependency as well. Can you tell me more about your install? For example, does the pdf export of libreoffice work?
Comment 3 leo lenoir 2012-09-05 12:28:21 CEST
Yes, libreoffice pdf export is working.

I made a rpm package of texmacs (TeXmacs-1.0.7.14-69.1.mga1.x86_64.rpm) for mageia 1 last year.
I tried it when i saw texmacs for mageia 2 failled. It works.

I tried rpm package for Cauldron (mageia 3). Same problem, fake pdf export, but real ps file.

Now I'm using my home brew rpm , made with the rpm source package of Cauldron (mageia 3).
It's work.
And it works without that ghostscript-module-X package I didn't install.

About this bug, I saw this here(https://savannah.gnu.org/bugs/?30120) :
"It turns out this happens when TeXmacs is configured without access to ghostscript. The work around is to rebuild TeXmacs with a ghostscript dependency. "

I built my rpm packages with ghostscript installed. Is this the reason that they worked ?
(Sorry for my english)
Comment 4 Malo Deniélou 2012-09-05 14:18:53 CEST
Your English is ok. 
Thanks for your input. I actually could reproduce the pdf bug. For the image problem, I am sure this is due to the missing ghostscript-module-X package.

I pushed an update candidate to updates_testing. Please check that it works for you.
Comment 5 Malo Deniélou 2012-09-05 14:32:22 CEST
I have uploaded a new texmacs package for Mageia 2.

Test procedure: 
- with the current Mageia 2 version:
  * remove ghostscript-module-X and install texmacs and look at the welcome page (Help>Welcome), the images of the page are replaced by ugly rectangles.
  * From that welcome screen, do File>Export>PDF, and save it somewhere. Now, if you look at the pdf file produced (in a console: file thefileIjustproduced.pdf), you can observe that it is actually a Postscript file, which is quite wrong.
- with the updating version:
  * installing texmacs, pulls ghostscript-module-X, so images should be displayed correctly.
  * the exportation to pdf format actually produces a pdf output:
$ file thefileIjustproduced.pdf


Suggested advisory:
========================

Updated texmacs package fix two bugs (Bug 7245):

- missing requires causes image display problem
- pdf export produces postscript files

========================

Updated packages in core/updates_testing:
========================
texmacs-1.0.7.11-2.1.mga2.{i586,x86_64}.rpm

Source RPM: 
texmacs-1.0.7.11-2.1.mga2.src.rpm

CC: (none) => pierre-malo.denielou
Assignee: pierre-malo.denielou => qa-bugs

Comment 6 claire robinson 2012-09-05 15:13:34 CEST
This is affected by bug 2317 so adding a depends..


----------------------------------------
Mageia release 2 (Official) for i586
Latest version found in "Core Release" is texmacs-1.0.7.11-2.mga2
Latest version found in "Core Updates Testing" is texmacs-1.0.7.11-2.1.mga2
----------------------------------------
The following packages will require linking:

ghostscript-module-X-9.05-2.mga2 (Core Release)
----------------------------------------

Depends on: (none) => 2317
Whiteboard: (none) => has_procedure

Comment 7 Eduard Beliaev 2012-09-06 20:16:42 CEST
No problems with Mageia 2 i568/x86. Tested with the procedure.

CC: (none) => ed_rus099
Whiteboard: has_procedure => has_procedure MGA2-32-OK

Comment 8 Eduard Beliaev 2012-09-07 00:20:31 CEST
Works ok on Mageia 2 x86_64.

Whiteboard: has_procedure MGA2-32-OK => has_procedure MGA2-32-OK MGA2-64-OK

Comment 9 Eduard Beliaev 2012-09-07 04:18:22 CEST
Could sysadmin please push from core/updates_testing to core/updates.

See comment #5 for advisory and SRPM, for linking comment #6.

Thank you!
Comment 10 Eduard Beliaev 2012-09-07 04:19:12 CEST
Could sysadmin please push from core/updates_testing to core/updates.

See comment #5 for advisory and SRPM, for linking comment #6.

Thank you!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 11 Thomas Backlund 2012-09-07 20:37:47 CEST
Packages linked and update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0186

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


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