Bug#678711: texlive-binaries: fmtutil-sys fails

2012-07-06 Thread ael
I have now looked carefully through mktexlsr and traced its execution
to try to get to the bottom of this. 

All I found was that various ls-R* files were wrong. Removing them
allowed mktexlsr to run properly and all the texlive updates to
complete.

I have no idea how the incorrect ls-R files were produced,
but they all seem to be dated 23rd June when I returned
from an absence and did a full aptitude update. Similar updates
on other machines did not have problems.

For what it is worth, here are some details of bad files:


/var/lib/texmf/ls-R-TEXLIVEMAIN

The old file, which caused the trouble, created on 23rd June, was:
-
 
fetex
# . call update-fmtutil
# . call fmtutil-sys --missing (or --all)
#
#cyrtexinfo pdfetex language.dat -translate-file=cp227.tcx *cyrtxinf.ini
# End of file: /etc/texmf/fmt.d/50cyrtexinfo.cnf
(followed by zero byte characters)



/etc/texmf/fmt.d/50cyrtexinfo.cnf :-

# 
# 50cyrtexinfo.cnf
#
# Please leave this comment!
# -_- DebPkgProvidedMaps -_-
#
# Texinfo formats for cyrillic language
#
# If you want to build cyrtexinfo, the cyrillic texinfo format, you have
# to do the following steps (all as root)
# . install either tetex-base and tetex-extra, or texlive-langcyrillic
# . comment out the format line in this file
# . create a link
#   /usr/local/bin/cyrtexinfo - ../../bin/pdfetex
# . call update-fmtutil
# . call fmtutil-sys --missing (or --all)
#
#cyrtexinfo pdfetex language.dat -translate-file=cp227.tcx *cyrtxinf.ini
-

Another peculiar file is 

-rw-r--r-- 1 root root 955844 Jun 23 14:19 /var/lib/texmf/ls-R-TEXLIVEDIST
which starts (hexdump)

  2f 70 72 74 70 6f 6f 6c  2e 68 00 2f 75 73 72 33  |/prtpool.h./usr3|
0010  32 2f 69 6e 63 6c 75 64  65 2f 6d 6f 7a 69 6c 6c  |2/include/mozill|
0020  61 2d 31 2e 36 2f 6e 73  70 72 2f 70 72 74 72 61  |a-1.6/nspr/prtra|
0030  63 65 2e 68 00 2f 75 73  72 33 32 2f 69 6e 63 6c  |ce.h./usr32/incl|
0040  75 64 65 2f 6d 6f 7a 69  6c 6c 61 2d 31 2e 36 2f  |ude/mozilla-1.6/|
0050  6e 73 70 72 2f 70 72 74  79 70 65 73 2e 68 00 2f  |nspr/prtypes.h./|
0060  75 73 72 33 32 2f 69 6e  63 6c 75 64 65 2f 6d 6f  |usr32/include/mo|
0070  7a 69 6c 6c 61 2d 31 2e  36 2f 6e 73 70 72 2f 70  |zilla-1.6/nspr/p|
0080  72 76 72 73 69 6f 6e 2e  68 00 2f 75 73 72 33 32  |rvrsion.h./usr32|
0090  2f 69 6e 63 6c 75 64 65  2f 6d 6f 7a 69 6c 6c 61  |/include/mozilla|
00a0  2d 31 2e 36 2f 6e 73 70  72 2f 70 72 77 69 6e 31  |-1.6/nspr/prwin1|
00b0  36 2e 68 00 2f 75 73 72  33 32 2f 69 6e 63 6c 75  |6.h./usr32/inclu|
00c0  64 65 2f 6d 6f 7a 69 6c  6c 61 2d 31 2e 36 2f 6e  |de/mozilla-1.6/n|
00d0  73 73 00 2f 75 73 72 33  32 2f 69 6e 63 6c 75 64  |ss./usr32/includ|
00e0  65 2f 6d 6f 7a 69 6c 6c  61 2d 31 2e 36 2f 6e 73  |e/mozilla-1.6/ns|
00f0  73 2f 61 6c 67 68 6d 61  63 2e 68 00 2f 75 73 72  |s/alghmac.h./usr|
0100  33 32 2f 69 6e 63 6c 75  64 65 2f 6d 6f 7a 69 6c  |32/include/mozil|
0110  6c 61 2d 31 2e 36 2f 6e  73 73 2f 61 73 6e 31 2e  |la-1.6/nss/asn1.|
0120  68 00 2f 75 73 72 33 32  2f 69 6e 63 6c 75 64 65  |h./usr32/include|
0130  2f 6d 6f 7a 69 6c 6c 61  2d 31 2e 36 2f 6e 73 73  |/mozilla-1.6/nss|
0140  2f 61 73 6e 31 6d 2e 68  00 2f 75 73 72 33 32 2f  |/asn1m.h./usr32/|
0150  69 6e 63 6c 75 64 65 2f  6d 6f 7a 69 6c 6c 61 2d  |include/mozilla-|
0160  31 2e 36 2f 6e 73 73 2f  61 73 6e 31 74 2e 68 00  |1.6/nss/asn1t.h.|
0170  2f 75 73 72 33 32 2f 69  6e 63 6c 75 64 65 2f 6d  |/usr32/include/m|
0180  6f 7a 69 6c 6c 61 2d 31  2e 36 2f 6e 73 73 2f 62  |ozilla-1.6/nss/b|
0190  61 73 65 2e 68 00 2f 75  73 72 33 32 2f 69 6e 63  |ase.h./usr32/inc|
01a0  6c 75 64 65 2f 6d 6f 7a  69 6c 6c 61 2d 31 2e 36  |lude/mozilla-1.6|
01b0  2f 6e 73 73 2f 62 61 73  65 36 34 2e 68 00 2f 75  |/nss/base64.h./u|
01c0  73 72 33 32 2f 69 6e 63  6c 75 64 65 2f 6d 6f 7a  |sr32/include/moz|
01d0  69 6c 6c 61 2d 31 2e 36  2f 6e 73 73 2f 62 61 73  |illa-1.6/nss/bas|
01e0  65 74 2e 68 00 2f 75 73  72 33 32 2f 69 6e 63 6c  |et.h./usr32/incl|
01f0  75 64 65 2f 6d 6f 7a 69  6c 6c 61 2d 31 2e 36 2f  |ude/mozilla-1.6/|

which seems to be a null separated ls output.

---

So I guess I should close the bug, although I suspect there was some
sort of buglet triggered in an configuration script on 23rd June
in one of the tex packages.

ael




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-25 Thread Norbert Preining
Output of mktexlsr after removing these files, please


Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org}
JAIST, JapanTeX Live  Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094


On 2012/06/25, at 17:44, ael law_ence@ntlworld.com wrote:

 On Mon, Jun 25, 2012 at 07:26:19AM +0900, Norbert Preining wrote:
 Hi,
 
 On So, 24 Jun 2012, ael wrote:
 It is rather odd: seems to be full of ghostscript entries from an old 
 local ghostscript installation. ls-R-TEXLIVE looks much more
 
 Ok, did you have a hard disk crash recently?
 
 No. I am pretty sure that the discs are OK. But will do an fsck check.
 
 - remove these four files:
 mktexlsr: /var/lib/texmf/ls-R-TEXLIVEMAIN: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R-TEXLIVEDIST: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R-TEXMFMAIN: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R: no magic string, skipping...
 
 - rerun mktexlsr
 
 I only just noticed that mktexlsr said
  Updating /usr/local/share/texmf/ls-R...
 
 I may have some historical texmf.cnf somewhere on that machine. I will
 check  report back.
 
 ael
 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-25 Thread ael
On Mon, Jun 25, 2012 at 07:26:19AM +0900, Norbert Preining wrote:
 Hi,
 
 On So, 24 Jun 2012, ael wrote:
  It is rather odd: seems to be full of ghostscript entries from an old 
  local ghostscript installation. ls-R-TEXLIVE looks much more
 
 Ok, did you have a hard disk crash recently?

No. I am pretty sure that the discs are OK. But will do an fsck check.

 - remove these four files:
  mktexlsr: /var/lib/texmf/ls-R-TEXLIVEMAIN: no magic string, skipping...
  mktexlsr: /var/lib/texmf/ls-R-TEXLIVEDIST: no magic string, skipping...
  mktexlsr: /var/lib/texmf/ls-R-TEXMFMAIN: no magic string, skipping...
  mktexlsr: /var/lib/texmf/ls-R: no magic string, skipping...
 
 - rerun mktexlsr

I only just noticed that mktexlsr said
  Updating /usr/local/share/texmf/ls-R...
 
I may have some historical texmf.cnf somewhere on that machine. I will
check  report back.

ael




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-24 Thread Norbert Preining
Hi,

On Sa, 23 Jun 2012, ael wrote:
 $ kpsewhich --var-value=TEXMFMAIN
 warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.

Ouch ... that is strange. Can yo please:
- send me the current state of that file
- run (as root)
mktexlsr
  and send me the output
- retry ...

It seems that either you have HD problems, or someting else
is severly broken. 

Best wishes

Norbert

Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live  Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

LOCHRANZA (n.)
The long unaccomplished wail in the middle of a Scottish folk song
where the pipes nip around the corner for a couple of drinks.
--- Douglas Adams, The Meaning of Liff



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-24 Thread ael
On Sun, Jun 24, 2012 at 05:20:24PM +0900, Norbert Preining wrote:
 Hi,
 
 On Sa, 23 Jun 2012, ael wrote:
  $ kpsewhich --var-value=TEXMFMAIN
  warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
 
 Ouch ... that is strange. Can yo please:
It is rather odd: seems to be full of ghostscript entries from an old 
local ghostscript installation. ls-R-TEXLIVE looks much more
reasonable...


 - send me the current state of that file

Anyway, /var/lib/texmf/ls-R is attached.

I suspect that I just need to clean up that old ghostscript and probably 
delete the existing ls-R. I had tried texhash and so on before reporting
the bug so maybe it seems likely that that local ghostscript is somehow 
messing that up as well.

 - run (as root)

   mktexlsr
   and send me the output
Here is the mktexlsr (texhash) run:-
-
f# mktexlsr
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf-dist/ls-R: No usable entries in 
ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
mktexlsr: Updating /usr/local/share/texmf/ls-R... 
mktexlsr: /var/lib/texmf/ls-R-TEXLIVEMAIN: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R-TEXLIVEDIST: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R-TEXMFMAIN: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R: no magic string, skipping...
mktexlsr: Done.


/var/lib/texmf/ls-R is still the same after the run above.


 - retry ...
 
 It seems that either you have HD problems, or someting else
 is severly broken. 

I will look at that local ghostscript installation: it was needed a long
time ago to support a Brother printer which the Debian packages did
not cover back then. CUPS has changed that. I had forgotten about it.
Not sure that this is really the answer, but at least it gives me
something to try.

ael

src/gdevalph.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevatx.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbbox.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbbox.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbit.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbj10.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbjc.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbjcl.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbjcl.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbmp.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbmp.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbmpa.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevbmpc.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevccr.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcdj.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcfax.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcgm.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcgml.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcgml.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcgmx.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcif.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevclj.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcljc.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcmap.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcmap.h/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcp50.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevcslw.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdevdbit.c/usr32/local/src/ghostscript/ghostscript-7.05/src/gdev

Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-24 Thread Norbert Preining
Hi,

On So, 24 Jun 2012, ael wrote:
 It is rather odd: seems to be full of ghostscript entries from an old 
 local ghostscript installation. ls-R-TEXLIVE looks much more

Ok, did you have a hard disk crash recently? The only reasonable
explanation is that your filesytem is messed up. I would suggest
running fsck manually after booting from some external media.

TO fix your problem you should do:
- remove these four files:
 mktexlsr: /var/lib/texmf/ls-R-TEXLIVEMAIN: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R-TEXLIVEDIST: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R-TEXMFMAIN: no magic string, skipping...
 mktexlsr: /var/lib/texmf/ls-R: no magic string, skipping...

- rerun mktexlsr


 I will look at that local ghostscript installation: it was needed a long
 time ago to support a Brother printer which the Debian packages did

Maybe you somehow made gs write to the wrong place, but still, my theory
is a fs inconsistency.

Best wishes

Norbert

Norbert Preiningpreining@{jaist.ac.jp, logic.at, debian.org}
JAIST, Japan TeX Live  Debian Developer
DSA: 0x09C5B094   fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094

JAWCRAIG (n. medical)
A massive facial spasm which is brought on by being told a really
astounding piece of news. A mysterious attack of jawcraig affected
40,000 sheep in Whales in 1952.
--- Douglas Adams, The Meaning of Liff



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#678711: texlive-binaries: fmtutil-sys fails

2012-06-23 Thread ael
Package: texlive-binaries
Version: 2012.20120530-2+b1
Severity: important

Trying to configure texlive-binaries fails:-

-
# dpkg --configure texlive-binaries
Setting up texlive-binaries (2012.20120530-2+b1) ...
mktexlsr: /var/lib/texmf/ls-R-TEXLIVEMAIN: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R-TEXLIVEDIST: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R-TEXMFMAIN: no magic string, skipping...
mktexlsr: /var/lib/texmf/ls-R: no magic string, skipping...
mktexlsr: Done.
Building format(s) --refresh.
This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.ABmstOUu
Please include this file if you report a bug.

dpkg: error processing texlive-binaries (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-binaries
---

This does not seem to be the same as #665644 in that


$ kpsewhich --var-value=TEXMFMAIN
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf-dist/ls-R: No usable entries in 
ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
/usr/share/texlive/texmf
---

and 

$ ls -l /var/lib/texmf/
total 1756
drwxr-xr-x 2 root root   4096 May 21 12:45 dvipdfmx
drwxr-xr-x 3 root root   4096 May 21 12:45 dvips
drwxr-xr-x 3 root root   4096 May  4  2008 fonts
-rw-r--r-- 1 root root   1706 Jun 23 14:19 ls-R
-rw-r--r-- 1 root root 595090 May 21 09:52 ls-R-TEXLIVE
-rw-r--r-- 1 root root 955844 Jun 23 14:19 ls-R-TEXLIVEDIST
-rw-r--r-- 1 root root   3540 Jun 23 14:18 ls-R-TEXLIVEMAIN
-rw-r--r-- 1 root root 130547 May  4  2008 ls-R-TEXMFDIST-TETEX
-rw-r--r-- 1 root root  50918 Jun 23 14:19 ls-R-TEXMFMAIN
drwxr-xr-x 3 root root   4096 Aug 16  2006 tex
-rw-r--r-- 1 root root   3832 Jun 23 14:18 updmap.cfg-DEBIAN
-rw-r--r-- 1 root root   2660 Jun 23 14:18 updmap.cfg-TEXLIVEDIST
drwxr-xr-x 8 root root   4096 Jun 23 22:29 web2c
drwxr-xr-x 2 root root   4096 May 21 12:45 xdvi


The contents of /tmp/fmtutil.ABmstOUu:

-
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf-dist/ls-R: No usable entries in 
ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf-dist/ls-R: No usable entries in 
ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /var/lib/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf/ls-R: No usable entries in ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
warning: kpathsea: /usr/share/texlive/texmf-dist/ls-R: No usable entries in 
ls-R.
warning: kpathsea: See the manual for how to generate ls-R.
tcfmgr: config file `tcfmgr.map' (usually in $TEXMFMAIN/texconfig) not found 
(ls-R missing?).
--

tcfmgr.map is here in $TEXMFMAIN/texconfig:

---
$ ls -l /usr/share/texlive/texmf/texconfig/tcfmgr.map 
-rw-r--r-- 1 root root 401 Jul 26  2008 
/usr/share/texlive/texmf/texconfig/tcfmgr.map

---



-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.4.0_c2+
Locale: