[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#313456: tetex-base: package configuration fails because of initex error



On Mon, Nov 07, 2005 at 06:21:18PM +0100, Frank Küster wrote:
> Marcin Owsiany <porridge@debian.org> wrote:
> 
> > Then I tried the first of the failed commands directly from the command line.
> > Here's the result:
> >
> > porridge@menel:/var/lib/texmf/web2c$ sudo pdftex -ini -translate-file=il2-pl -jobname=pdfmex-pl -progname=pdfmex-pl pdfmex.ini This is pdfTeX, Version 3.14159-1.10b (Web2C 7.4.5) (INITEX)
> [...]
> > Transcript written on pdfmex-pl.log.
> > porridge@menel:/var/lib/texmf/web2c$
> [...]
> > In other words, looks fine, which is pretty puzzling.
> > I tried dpkg --configure -a again, and this resulted in the same typescript as
> > initially reported. Indeed, the pdfmex-pl.{log,fmt} were not modified during
> > the dpkg run, but were during the direct invocation.
> 
> This is in fact strange.  Did you also use "sudo" for the apt-get
> invocation, or did you use an other method to gain root rights?

Yes, I remember making sure to use the same method.

> > /var/lib/texmf/web2c/fmtutil.cnf follows:
> 
> Just to be sure, the output of
> 
> kpsewhich --format='web2c files' fmtutil.cnf
> 
> called as root (the same way as apt-get was called) is in fact
> /var/lib/texmf/web2c/fmtutil.cnf? 

Yes, it's this whether I use sudo, su, su - or as non-root.

> So what can we do to further debug this?  You could do the following:
> Save the attached file as /usr/local/sbin/fmtutil and then run the
> necessary commands to trigger the bug - "dpkg --configure -a" in the
> simplest case, or "apt-get install tetex-bin", or whatever, but redirect
> the stdout and stderr to a file (or copy it there), like this:
> 
> dpkg --configure -a 2>&1 | tee debug.log
> 
> There should be plenty of output, which is also in debug.log - please
> send us this file.

This didn't work, for two reasons:
 - you hardcode the path to fmtutil in the postinst
 - you explicitly set PATH in the postinst not to include
   /usr/local/*bin

However, since it's sufficient to run dpkg --postinst, I just edited my
/usr/bin/fmtutil to include the -x in she-bang line, and got the
attached output (typescript-with-custom-fmtutil-try-2). (Ran twice,
the second time with LANG=C LC_ALL=C, because I wanted to test whether
the locale affects the error).

Awaiting further instructions.

regards,

Marcin
-- 
Marcin Owsiany <porridge@debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216

Attachment: typescript-with-custom-fmtutil-try-2.gz
Description: Binary data


Reply to: