Bug#832570: Info received (Bug#832570: tex-common fails to install with fmtutil error)

2016-10-19 Thread Wookey
On 2016-10-20 03:21 +, Debian Bug Tracking System wrote:

Bit more info trying to get it installed (so I can do the work I'm supposed to 
be doing!)

sudo fmtutil --sys --no-error-if-no-engine=luajittex --all
results in:

fmtutil [INFO]: /var/lib/texmf/web2c/pdftex/mptopdf.fmt installed.
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex 
luatex.ini http://wookware.org/


signature.asc
Description: Digital signature


Bug#832570: tex-common fails to install with fmtutil error

2016-10-19 Thread Wookey
Date: Sat, 6 Aug 2016 22:41:55 +0900

[sorry I missed this message at the time (off on expedition, and it
doesn't seem like the BTS delivered me a mail)]

> I have again looked into this topic and couldn't find a
> reasonable explanation for now.

Well, I just went back to a clean build chroot and hit this issue
again, so an update...

> I have uploaded a new set of packages today, where several
> internal files concerning pdftexconfig.tex as weell have been
> reworked.

> Can you please do the following:
> * remove /var/lib/texmf/tex/generic/config/pdftexconfig.tex
> * install the new packages
> and then tell me what happens?

It still breaks.

I curently have installed:
(unstable-amd64)wookey@kh:~/packages$ dpkg -l | grep texlive
ii  texlive-base   2016.20160819-2  all 
 TeX Live: Essential programs and files
ii  texlive-binaries   2016.20160513.41080-6amd64   
 Binaries for TeX Live
ii  texlive-latex-base 2016.20160819-2  all 
 TeX Live: LaTeX fundamental packages
ii  texlive-latex-base-doc 2016.20160819-2  all 
 TeX Live: Documentation files for texlive-latex-base
ii  texlive-luatex 2016.20160819-2  all 
 TeX Live: LuaTeX packages

--
(unstable-amd64)wookey@kh:~/packages$ sudo apt-get install tex-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
tex-common is already the newest version (6.05).
tex-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 275 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up tex-common (6.05) ...
debconf: unable to initialize frontend: Dialogdebconf: (No usable dialog-like 
program is installed, so the dialog based frontend cannot be used. at 
/usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
 This may take some time...
fmtutil failed. Output has been stored in
/tmp/fmtutil.vKSJnfzq
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):


---/tmp/fmtutil.vKSJnfzq--
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   /usr/share/texmf/web2c/fmtutil.cnf
fmtutil:   /usr/share/texlive/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   /etc/texmf/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /var/lib/texmf/web2c
fmtutil [INFO]: --- remaking luatex with luatex
fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini' ...
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)  (INITEX)
 restricted system commands enabled.
(/usr/share/texlive/texmf-dist/tex/plain/config/luatex.ini
(/usr/share/texlive/texmf-dist/tex/generic/config/luatexiniconfig.tex)
(/usr/share/texlive/texmf-dist/tex/generic/config/luatex-unicode-letters.tex
loading Unicode properties)
(/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
(/usr/share/texlive/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex
! Undefined control sequence.
l.6 \pdfoutput
   = 1
? 
! Emergency stop.
l.6 \pdfoutput
   = 1
!  ==> Fatal error occurred, bad output DVI file produced!
No pages of output.
Transcript written on luatex.log.
fmtutil [INFO]: --- remaking pdftex with pdftex
fmtutil: running `pdftex -ini   -jobname=pdftex -progname=pdftex 
-translate-file=cp227.tcx *pdfetex.ini' ...
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (INITEX)
 restricted \write18 enabled.
 (/usr/share/texlive/texmf-dist/web2c/cp227.tcx)
entering extended mode
(/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
(/usr/share/texlive/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex)
(/usr/share/texlive/texmf-dist/tex/plain/etex/etex.src
(/usr/share/texlive/texmf-dist/tex/plain/base/plain.tex
Preloading the plain format: codes, registers, parameters, fonts, more fonts,
macros, math definitions, output routines, hyphenation
(/usr/share/texlive/texmf-dist/tex/generic/hyphen/hyphen.tex
[skipping from \patterns to end-of-file...]))
(/usr/share/texlive/texmf-dist/tex/plain/etex/etexdefs.lib
Skipping module "grouptypes"; Loading module "interactionmodes";
Skipping module "nodetypes"; Skipping module "iftypes";)
(/var/lib/texmf/tex/generic/config/language.def
(/usr/share/texlive/texmf-dist/tex/generic/hyphen/hyphen.tex))
Augmenting the Plain TeX definitions: \tracingall;
Adding new e-TeX definitions: \eTeX, \loggingall, \tracingnone,
register allocation; extended 

Bug#832570: tex-common fails to install with fmtutil error

2016-08-06 Thread Norbert Preining
Hi Wookey,

I have again looked into this topic and couldn't find a 
reasonable explanation for now.

I have uploaded a new set of packages today, where several 
internal files concerning pdftexconfig.tex as weell have been 
reworked.

Can you please do the following:
* remove /var/lib/texmf/tex/generic/config/pdftexconfig.tex
* install the new packages
and then tell me what happens?

Thanks.

Norbert

--
PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13



Bug#832570: tex-common fails to install with fmtutil error

2016-07-27 Thread Wookey
On 2016-07-27 13:57 +0900, Norbert Preining wrote:
> Hi Wookey,
> 
> thanks for your report. THere seems something fishy, and
> I can even immagine that there is a problem in the paper
> handling, but somehow all this looks strange.
> 
> Firt of all, can you please send me the version number of
> your packages texlive-base, too.

tex-related packages
ii  libptexenc1:amd64  2016.20160513.41080-4
ii  libsynctex1:amd64  2016.20160513.41080-4
ii  libtexlua52:amd64  2016.20160513.41080-4
ii  libtexluajit2:amd642016.20160513.41080-4
ii  tex-common 6.05 
ii  texlive-base   2016.20160623-1  
ii  texlive-binaries   2016.20160513.41080-4
ii  texlive-luatex 2016.20160623-1


 
> > l.3 \pdfoutput
> > =1
> 
> This is strange, indeed.
> 
> Your pdftexconfig.tex
> 
> > % Set pdfTeX parameters for pdf mode (replacing pdftex.cfg file).
> > % Thomas Esser, 2004. public domain.
> > \pdfoutput=1
> > \pdfcompresslevel=9
> > \pdfdecimaldigits=3
> > % pdftex paper settings are in pdftexconfig-paper.tex
> > \input pdftexconfig-paper.tex
> > \pdfhorigin=1 true in
> > \pdfvorigin=1 true in
> > \pdfpkresolution=600
> > % 
> > % As of TeX Live 2010, we output PDF 1.5 by default, so we can enable
> > % more compression.  To change this for the installation, comment out or
> > % delete these lines and remake the formats.  To change it for a
> > % particular LaTeX document, \RequirePackage{pdf14} early.
> > % 
> > \pdfminorversion=5
> > \pdfobjcompresslevel=2
> > \pdfpageheight   = 297 true mm\pdfpagewidth= 210 true mm
> > \endinput
> 
> This looks also different to mine, but I have intermediate
> not released versions installed.
> 
> 
> > I was able to work around this issue by editing
> > /usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
> > to comment out the 
> > \input pdftexconfig.tex
> > line
> 
> No, please *remove* the file 
>   /var/lib/texmf/tex/generic/config/pdftexconfig.tex

I had already removed this and tried apt-get -f install. Only when
that failed did I try the above commenting-out. 

This was done in a persistent chroot, so I cannot revert the state
exactly and try the experiment again, unfortunately (i.e the new
tex-common is now installed, but I guess it was the postinst failing,
so further tests should stil lbe relevant).

>  and then try as rootsudo q
>   mktexlsr /var/lib/texmf
>   fmtutil-sys --byfmt luatex
> if that helps.
>
> If no, please send me the output.

OK. with /usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
restored and /var/lib/texmf/tex/generic/config/pdftexconfig.tex removed, 
the above commands give:
$ sudo mktexlsr /var/lib/texmf
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.
$ sudo fmtutil-sys --byfmt luatex
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   /usr/share/texmf/web2c/fmtutil.cnf
fmtutil:   /usr/share/texlive/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   /etc/texmf/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /var/lib/texmf/web2c
fmtutil [INFO]: --- remaking luatex with luatex
fmtutil: running `luatex -ini   -jobname=luatex -progname=luatex luatex.ini' ...
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)  (INITEX)
 restricted system commands enabled.
(/usr/share/texlive/texmf-dist/tex/plain/config/luatex.ini
(/usr/share/texlive/texmf-dist/tex/generic/config/luatexiniconfig.tex)
(/usr/share/texlive/texmf-dist/tex/generic/config/luatex-unicode-letters.tex
loading Unicode properties)
(/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
! I can't find file `pdftexconfig.tex'.
l.4 \input pdftexconfig.tex
 
(Press Enter to retry, or Control-D to exit)
Please type another input file name: 
! Emergency stop.
l.4 \input pdftexconfig.tex
 
!  ==> Fatal error occurred, bad output DVI file produced!
No pages of output.
Transcript written on luatex.log.
fmtutil [ERROR]: running `luatex -ini   -jobname=luatex -progname=luatex 
luatex.ini http://wookware.org/


signature.asc
Description: Digital signature


Bug#832570: tex-common fails to install with fmtutil error

2016-07-26 Thread Norbert Preining
Hi Wookey,

thanks for your report. THere seems something fishy, and
I can even immagine that there is a problem in the paper
handling, but somehow all this looks strange.

Firt of all, can you please send me the version number of
your packages texlive-base, too.

> l.3 \pdfoutput
> =1

This is strange, indeed.

Your pdftexconfig.tex

> % Set pdfTeX parameters for pdf mode (replacing pdftex.cfg file).
> % Thomas Esser, 2004. public domain.
> \pdfoutput=1
> \pdfcompresslevel=9
> \pdfdecimaldigits=3
> % pdftex paper settings are in pdftexconfig-paper.tex
> \input pdftexconfig-paper.tex
> \pdfhorigin=1 true in
> \pdfvorigin=1 true in
> \pdfpkresolution=600
> % 
> % As of TeX Live 2010, we output PDF 1.5 by default, so we can enable
> % more compression.  To change this for the installation, comment out or
> % delete these lines and remake the formats.  To change it for a
> % particular LaTeX document, \RequirePackage{pdf14} early.
> % 
> \pdfminorversion=5
> \pdfobjcompresslevel=2
> \pdfpageheight   = 297 true mm\pdfpagewidth= 210 true mm
> \endinput

This looks also different to mine, but I have intermediate
not released versions installed.


> I was able to work around this issue by editing
> /usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
> to comment out the 
> \input pdftexconfig.tex
> line

No, please *remove* the file 
/var/lib/texmf/tex/generic/config/pdftexconfig.tex
 and then try as root
mktexlsr /var/lib/texmf
fmtutil-sys --byfmt luatex
if that helps.

If no, please send me the output.

If yes, then please call
tl-paper set all a4|letter
(acording to your taste), and run
fmtutil-sys --byfmt luatex
again. Does this change anything.

All the best


Norbert

--
PREINING Norbert + TeX Live & Debian Developer + http://www.preining.info
GPG: 0x860CDC13fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13



Bug#832570: tex-common fails to install with fmtutil error

2016-07-26 Thread Wookey
Package: tex-common
Version: 6.05
Severity: normal

Dear Maintainer,

I installed hevea in an unstable chroot. That brought in tex-comon
amongst other things. The install failed, producing a fmtutil temp log
file:

Building format(s) --all.
This may take some time... 
fmtutil failed. Output has been stored in
/tmp/fmtutil.f8jZR1xO
Please include this file if you report a bug.
dpkg: error processing package tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1

The failing command seems to be:

fmtutil: running luatex -ini   -jobname=luatex -progname=luatex
luatex.ini' ...
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian)  (INITEX)
 restricted system commands enabled.
(/usr/share/texlive/texmf-dist/tex/plain/config/luatex.ini
(/usr/share/texlive/texmf-dist/tex/generic/config/luatexiniconfig.tex)
(/usr/share/texlive/texmf-dist/tex/generic/config/luatex-unicode-letters.tex
loading Unicode properties)
(/usr/share/texlive/texmf-dist/tex/plain/config/pdfetex.ini
(/var/lib/texmf/tex/generic/config/pdftexconfig.tex
! Undefined control sequence.
l.3 \pdfoutput
=1
? 
! Emergency stop.


/var/lib/texmf/tex/generic/config/pdftexconfig.tex is attached.
Oddly, it does not seem to be owned by any package, according to dpkg -S

Attached are the apt output log, the fmtutil log and the
pdftexconfig.tex file. removing the
/var/lib/texmf/tex/generic/config/pdftexconfig.tex  file did not help.

-- System Information:
Debian Release: 8.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tex-common depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  dpkg   1.17.27
ii  ucf3.0030

tex-common recommends no packages.

Versions of packages tex-common suggests:
ii  debhelper  9.20150101+deb8u2
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 651 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up tex-common (6.05) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based 
frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 
76.)
debconf: falling back to frontend: Readline
Running mktexlsr. This may take some time... done.
Running updmap-sys. This may take some time... done.
Running mktexlsr /var/lib/texmf ... done.
Building format(s) --all.
This may take some time... 
fmtutil failed. Output has been stored in
/tmp/fmtutil.SetmxtF9
Please include this file if you report a bug.

dpkg: error processing package tex-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of hevea:
 hevea depends on tex-common (>= 6); however:
  Package tex-common is not configured yet.

dpkg: error processing package hevea (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 tex-common
 hevea
E: Sub-process /usr/bin/dpkg returned an error code (1)
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil:   /usr/share/texmf/web2c/fmtutil.cnf
fmtutil:   /usr/share/texlive/texmf-dist/web2c/fmtutil.cnf
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil:   /etc/texmf/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under /var/lib/texmf/web2c
fmtutil [INFO]: --- remaking tex with tex
fmtutil: running `tex -ini   -jobname=tex -progname=tex tex.ini' ...
This is TeX, Version 3.14159265 (TeX Live 2016/Debian) (INITEX)
(/usr/share/texlive/texmf-dist/tex/plain/config/tex.ini
(/usr/share/texlive/texmf-dist/tex/plain/base/plain.tex
Preloading the plain format: codes, registers, parameters, fonts, more fonts,
macros, math definitions, output routines, hyphenation
(/usr/share/texlive/texmf-dist/tex/generic/hyphen/hyphen.tex)) )
Beginning to dump on file tex.fmt
 (preloaded format=tex 2016.7.27)
2027 strings of total length 29296
4990 memory locations dumped; current usage is 110&4877
926 multiletter control sequences
\font\nullfont=nullfont
\font\tenrm=cmr10
\font\preloaded=cmr9
\font\preloaded=cmr8
\font\sevenrm=cmr7
\font\preloaded=cmr6
\font\fiverm=cmr5
\font\teni=cmmi10
\font\preloaded=cmmi9
\font\preloaded=cmmi8
\font\seveni=cmmi7
\font\preloaded=cmmi6
\font\fivei=cmmi5
\font\tensy=cmsy10
\font\preloaded=cmsy9
\font\preloaded=cmsy8
\font\sevensy=cmsy7
\font\preloaded=cmsy6
\font\fivesy=cmsy5
\font\tenex=cmex10
\font\preloaded=cmss10
\font\preloaded=cmssq8
\font\preloaded=cmssi10
\font\preloaded=cmssqi8
\font\tenbf=cmbx10
\font\preloaded=cmbx9