[Bug 343032] New: texdoc tries to start mozilla
https://bugzilla.novell.com/show_bug.cgi?id=343032 Summary: texdoc tries to start mozilla Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: koenig@linux.de QAContact: qa@suse.de Found By: --- harald > rpm -qf /usr/bin/texdoc texlive-2007-69.2 harald > texdoc scrguide /usr/bin/texdoc: line 199: mozilla: command not found this should default to firefox instead of mozilla. another small permission problem with texlive: harald > ll /etc/texmf/tex/generic/config/language.dat -rw------- 1 root root 3080 Nov 1 23:46 /etc/texmf/tex/generic/config/language.dat most likely there is no need that this file isn't world-readable ?! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343032
Mark Gordon
https://bugzilla.novell.com/show_bug.cgi?id=343032#c1
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c2
Harald Koenig
question; how you have changed the permission of that file?
/suse/werner> ll /etc/texmf/tex/generic/config/language.dat -rw-r--r-- 1 root root 3102 Feb 6 2007 /etc/texmf/tex/generic/config/language.dat
hmm, absolutely no idea -- I have to investigate on my side;-)
indeed, rpm shows that it's not a problem in the suse package:
rpm -qlvf /etc/texmf/tex/generic/config/language.dat | grep
etc/texmf/tex/generic/config/language.dat
-rw-r--r-- 1 root root 3102 Feb 6 2007
/etc/texmf/tex/generic/config/language.dat
lrwxrwxrwx 1 root root 59 Oct 3 23:33
/usr/share/texmf/tex/generic/config/language.dat ->
./../../../../../etc/texmf/tex/generic/config/language.dat
s60 > rpm -Vf /etc/texmf/tex/generic/config/language.dat
SM?....T c /etc/texmf/tex/generic/config/language.dat
......T c /etc/texmf/web2c/updmap.cfg
.5....T /usr/share/texmf/bin/noarch/texdoc
on idea which I have to check: I did install the full TeX-Live DVD to
/usr/local/texlive/... -- maybe the TL2007 installation causes this change (not
only the permissions are wrong, the contents is wrong too).
but: the timestamp of lanuage.dat (Nov 1) doesn't match the TL2007 installation
date (Nov 10), so ???
harald > ll --full-time /etc/texmf/tex/generic/config/language.dat
-rw------- 1 root root 3080 2007-11-01 23:46:40.000000000 +0100
/etc/texmf/tex/generic/config/language.dat
so I checked the time stamps in "rpm -qa --last" and surprise: I did the
update 10.2 -> 10.3 on Nov 1, and the last rpm of the update from DVD9 was
installed on "Thu Nov 1 23:38:30 2007", only 8 minutes before the time stamp
of language.dat -- so it has to do with the update process and SuSEconfig I'd
guess ?!
looking for that time stamp in yast logs:
YaST2 # grep 23:46: /var/log/YaST2/*
..
/var/log/YaST2/y2log:2007-11-01 23:46:19 <1> harald(5286) [YCP]
clients/inst_suseconfig.ycp:78 Executing 'HOME=/tmp/YaST2-05286-tPNMW7
/sbin/SuSEconfig --verbose --module texlive >> /var/log/YaST2/y2log.SuSEconfig
2>&1'
/var/log/YaST2/y2log:2007-11-01 23:46:49 <1> harald(5286) [YCP]
clients/inst_suseconfig.ycp:78 Executing 'HOME=/tmp/YaST2-05286-tPNMW7
/sbin/SuSEconfig --verbose --module words >> /var/log/YaST2/y2log.SuSEconfig
2>&1'
..
so it's SuSEconfig --module texlive
here is the diff between the original lnaguage.dat from the rpm and my
"modified" version:
harald > sudo diff /tmp/language.dat /etc/texmf/tex/generic/config/language.dat
87d86
< pinyin xu-pyhyph.tex
any idea what might have caused this deletion of pinyin ?
xu-pyhyph.tex is installed:
harald > rpm -qf /usr/share/texmf/tex/generic/xu-hyphen/xu-pyhyph.tex
texlive-2007-69.2
looking for "pinyin" in y2log.SuSEconfig I find exactly one match, but
there are no time stamps y2log.SuSEconfig so it's not obvious if this
might be relevant (my gut says *no* ;-)
-------------------------------------------------------------------------------
fmtutil: running `pdftex -ini -jobname=xmltex -progname=xmltex
-translate-file=cp227.tcx &latex xmltex.ini' ...
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) (INITEX)
(/usr/share/texmf/web2c/cp227.tcx)
kpathsea: Running mktexfmt latex.fmt
Sorry, I can't find the format `latex.fmt'; will try `xmltex.fmt'.
entering extended mode
(/usr/share/texmf/tex/xmltex/xmltex.ini
LaTeX2e <2005/12/01>
Babel
https://bugzilla.novell.com/show_bug.cgi?id=343032#c3
--- Comment #3 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c4
--- Comment #4 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c5
--- Comment #5 from Harald Koenig
Hmmm grep chmod /sbin/conf.d/SuSEconfig.texlive shows nothing. I can only guess that your umask is very restricted which may cause that on of the TeXLive scripts (e.g. fmtutil) updating /etc/texmf/tex/generic/config/language.dat uses this to produce this strange result.
not at all: harald > grep umask /etc/profile* /etc/profile:# The global umask value is stored in /etc/login.defs and /etc/profile:# will be set by pam_umask.so (see "man pam_umask"). /etc/profile:#umask 022 harald > grep umask /etc/profile.d/* /etc/profile.d/z-profile.local.sh:umask 022 and remember that "the incident" occured during the update via boxed DVD... (In reply to comment #4 from Werner Fink)
Beside this you may should install texlive-bin-latex and texlive-latex for having latex around.
of course they are installed, ever have been (note the installation time stamp of texlive-bin-latex: that's the DVD9 update run): harald > rpm -qa --last | grep texlive texlive-cjk-latex-extras-20070515-43 Fri Nov 2 12:07:56 2007 texlive-xetex-2007-69.2 Fri Nov 2 12:07:53 2007 texlive-omega-2007-69.2 Fri Nov 2 12:06:38 2007 texlive-metapost-2007-69.2 Fri Nov 2 12:06:18 2007 texlive-cjk-2007-69.2 Fri Nov 2 12:05:14 2007 texlive-bin-xetex-2007-68 Fri Nov 2 12:02:41 2007 texlive-bin-omega-2007-68 Fri Nov 2 12:02:24 2007 texlive-bin-metapost-2007-68 Fri Nov 2 12:02:19 2007 texlive-bin-cjk-2007-68 Fri Nov 2 12:02:16 2007 texlive-context-2007-69.2 Fri Nov 2 12:02:01 2007 texlive-latex-2007-69.2 Fri Nov 2 11:45:35 2007 texlive-bin-devel-2007-68 Fri Nov 2 11:36:27 2007 texlive-bin-devel-2007-68 Fri Nov 2 11:36:27 2007 texlive-devel-2007-69.2 Fri Nov 2 11:36:02 2007 texlive-2007-69.2 Fri Nov 2 11:34:21 2007 texlive-bin-latex-2007-68 Thu Nov 1 22:46:17 2007 texlive-bin-2007-68 Thu Nov 1 22:37:25 2007 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343032#c6
--- Comment #6 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c7
--- Comment #7 from Harald Koenig
Then mixing two TeXLive installations, the small SuSE tree and the TUG full tree, had caused this problem.
_very_ unlikely: SUSE update (and texlive.rpm installation) happend on Nov 1, while I installed TL2007 DVD 10 days later on Nov. 10.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343032#c8
--- Comment #8 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c9
--- Comment #9 from Harald Koenig
As long as I'm not able to reproduce this I can not change anything. This seems not fixable by using my crystal ball ;)
ok, here is more input for your crystal ball -- I can reproduce the problem like this: ------------------------------------------------------------------------------- umask 022 echo foo > /etc/texmf/tex/generic/config/language.dat /sbin/SuSEconfig --force --module texlive ------------------------------------------------------------------------------- creates a new language.dat with permissions 600 here are the important lines from "bash -x" output of SuSEconfig.texinfo: ++ mktemp /tmp/language.dat.XXXXXX + tmp=/tmp/language.dat.o12781 + cmp -s /tmp/language.dat.o12781 /etc/texmf/tex/generic/config/language.dat + mv /tmp/language.dat.o12781 /etc/texmf/tex/generic/config/language.dat mktemp creates the tmp file with 600, later it's moved and the permissions stay wrong. voila. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343032#c10
--- Comment #10 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=343032#c12
--- Comment #12 from Harald Koenig
When the /etc/texmf/tex/generic/config/language.dat had been overwritten?
when: while running the update from 10.2 to 10.3 (see time stamps etc.). why: for unknown reason SuSEconfig.texlive with the original 10.3 texlive packages created a temoprary language.dat which was missing the "pinyin" line compated with the distibuted language.dat version. this difference caused SuSEconfig.texlive to install the new/temoprary file. could that missing pinyin language setting be related with the reason for update rpms for texlive from 2007-69 to 2007-69.2 by any means ?! anyway, good to know that problem is unerstood & fixed... so back to my original question ;-) what about the hard wired "mozilla" in /usr/bin/texdoc ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=343032#c13
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com