Bug 12097

Summary: xdvi recreates fonts at each start
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: Malo Deniélou <pmdenielou>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: pmdenielou
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: xdvik-22.84.16-6.mga4.src.rpm CVE:
Status comment:
Attachments: scriplet errors at removal of texlive
all files /tmp/texlive-*
test file .dvi

Description Chris Denice 2013-12-23 17:22:50 CET
Hi there,
when I use xdvi to read some dvi files, it complains about:

xdvi encyclopedia.dvi 
warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr:/:/usr/bin/share/texmf-local/web2c:/usr/share/texmf-local/web2c://share/texmf-local/web2c:/usr/bin/texmf-local/web2c:/usr/texmf-local/web2c://texmf-local/web2c:/usr/bin/share/texmf/web2c:/usr/share/texmf/web2c://share/texmf/web2c:/usr/bin/texmf/web2c:/usr/texmf/web2c://texmf/web2c.
xdvi: Warning: Unable to find "xdvi.cfg"!



and then starts recreating a lot of font files already generated previously. The usual behaviour of xdvi is to indeed create missing font files, but only once and if required:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmsy5
mktexpk: /home/chris/.texlive2013/texmf-var/fonts/pk/ljfour/public/cm/cmsy5.600pk already exists.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmmi10
mktexpk: /home/chris/.texlive2013/texmf-var/fonts/pk/ljfour/public/cm/cmmi10.600pk already exists.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmmi7
mktexpk: /home/chris/.texlive2013/texmf-var/fonts/pk/ljfour/public/cm/cmmi7.600pk already exists.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmmi5
mktexpk: /home/chris/.texlive2013/texmf-var/fonts/pk/ljfour/public/cm/cmmi5.600pk already exists.

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 cmr10
mktexpk: /home/chris/.texlive2013/texmf-var/fonts/pk/ljfour/public/cm/cmr10.600pk already exists.


cheers,
Chris
Comment 1 Malo Deniélou 2013-12-25 19:30:00 CET
I'll look into it.

Status: NEW => ASSIGNED
CC: (none) => pierre-malo.denielou
Assignee: bugsquad => pierre-malo.denielou

Comment 2 Chris Denice 2014-01-12 13:21:31 CET
Hi there,
any news? Let me know if I can test something more specific!

Cheers,
chris.
Comment 3 Malo Deniélou 2014-01-12 13:28:59 CET
Is it still valid with latest texlive?
Comment 4 Chris Denice 2014-01-12 15:32:40 CET
Created attachment 4759 [details]
scriplet errors at removal of texlive
Comment 5 Chris Denice 2014-01-12 15:33:07 CET
yep, the ones I have installed is:
texlive-20130530-4.mga4.src.rpm
xdvik-22.84.16-6.mga4.src.rpm

I have spotted some errors if this can help:



1) 
I have tried to remove and reinstall texlive and I have some scriplet error at removal (see attachment)


2)
I think xdvik misses some Requires. I can install it without texlive:
urpmi xdvik

But if I try to open a dvi file I get the following error:

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+57/600 --dpi 657 cmr10
mktexpk: No such file or directory

3) Installing texlive gives some error as well:
urpmi texlive
Preparing...                     ############################################################
      1/2: texlive               ############################################################
      2/2: texlive-collection-basic
                                 ############################################################
warning: %post(texlive-collection-basic-20130530-4.mga4.noarch) scriptlet failed, exit status 1
ERROR: 'script' failed for texlive-collection-basic-20130530-4.mga4.noarch:


Then, with xdvik and texlive installed, I hit the problem mentioned in the bug report, the font get recreated each time I open a dvi file.

Cheers,
chris.
Comment 6 Malo Deniélou 2014-01-12 16:39:40 CET
Can you attach the /tmp/texlive* files?
Does installing texlive-texmf solve the font generation problem?
Comment 7 Chris Denice 2014-01-12 20:17:28 CET
Created attachment 4760 [details]
all files /tmp/texlive-*
Comment 8 Chris Denice 2014-01-12 20:23:09 CET
Ok, so the /tmb/texlive-* files are before installing texlive-texmf.

Installing texlive-texmf *does not* solve the xdvik problem.

I got a warning on a scriplet as well though:

Preparing...                     ############################################################
      1/2: texlive-texmf         ############################################################
      2/2: texlive-dist          ############################################################
warning: %post(texlive-dist-20130530-4.mga4.noarch) scriptlet failed, exit status 1
ERROR: 'script' failed for texlive-dist-20130530-4.mga4.noarch: 


I'll explore a bit more, maybe that's some path problems with the missing config files.

cheers.
Comment 9 Malo Deniélou 2014-01-12 20:28:35 CET
Your file /etc/texmf/web2c/updmap.cfg contains lots of references to fonts that are not installed. If you rename that file and reinstall texlive, you shouldn't have any error anymore.
Comment 10 Chris Denice 2014-01-12 23:56:44 CET
Hi there,
I tried, renamed it udpmap.old and nothing changed. Same scriplets failures and same errors with xdvi :-/
Comment 11 Chris Denice 2014-01-13 07:42:16 CET
On the other hand:
urpmf texmf.cnf
texlive-collection-basic:/usr/share/texmf-dist/web2c/texmf.cnf

that file is not in the path looked by xdvi ---->

warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr:/:/usr/bin/share/texmf-local/web2c:/usr/share/texmf-local/web2c://share/texmf-local/web2c:/usr/bin/texmf-local/web2c:/usr/texmf-local/web2c://texmf-local/web2c:/usr/bin/share/texmf/web2c:/usr/share/texmf/web2c://share/texmf/web2c:/usr/bin/texmf/web2c:/usr/texmf/web2c://texmf/web2c.

If I add it by hand somewhere there, it solves the pb!
Comment 12 Malo Deniélou 2014-01-13 08:35:46 CET
Can you rename /etc/texmf/web2c/texmf.cnf as well? And can you attach the dvi file you're using for your tests? Thanks!
Comment 13 Chris Denice 2014-01-13 09:33:11 CET
Created attachment 4763 [details]
test file .dvi
Comment 14 Chris Denice 2014-01-13 09:34:33 CET
Here you go,
in fact that file:
/etc/texmf/web2c/texmf.cnf

does not exist; on all my three cauldron systems (updated from mga3). Maybe that's the scriplets failing?
Comment 15 Malo Deniélou 2014-01-18 18:12:26 CET
Ok. I looked again. Our version of xdvi is really antiquated. Fedora has dropped xdvik in favour of the xdvi from texlive.
There is no error when run with the xdvi from texlive. I'll obsolete xdvik.
Thanks for your report.
Comment 16 Chris Denice 2014-01-21 16:13:51 CET
Hi Malo,
we don't have another xdvi packaged with texlive, do we? Unless you have pushed a new version, but I don't see it yet on the mirror!

Thanks,
cheers.
Comment 17 Malo Deniélou 2014-01-21 19:06:11 CET
It should appear on your mirror shortly.
Comment 18 Chris Denice 2014-01-21 22:21:10 CET
F.A.N.T.A.S.T.I.C

Works perfectly and xdvi is even beautiful :)

I am closing,
thank you for the great work!

cheers,
chris.

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