Bug#709986: texlive-base: Use of uninitialized value
On 29.05.13 Norbert Preining (prein...@logic.at) wrote: Hi, The patch is quite simple: diff --git a/texlive-base/debian/tl-paper b/texlive-base/debian/tl-paper index e8f3ec9..7fc5223 100644 --- a/texlive-base/debian/tl-paper +++ b/texlive-base/debian/tl-paper @@ -74,6 +74,14 @@ sub main { usage(); exit 1; } +# set TEXMFVAR and TEXMFSYSVAR to something completely absurd +# so that we always find either the system provided config file +# as distributed in /usr/share/texlive/texmf-dist, or, if the +# admin decided to override that, a copy in TEXMFSYSCONFIG +# but *not* the one we have created at some point in history +# in TEXMF(SYS)VAR +$ENV{TEXMFVAR} = /does/hopefully/not/exists/on/any/system; +$ENV{TEXMFSYSVAR} = /does/hopefully/not/exists/on/any/system; if ($prg =~ m/^all$/i) { if ($newpaper !~ /^(a4|letter)$/) { # we cannot deal with that for now, only a4|letter supported for I'm pretty sure you'll get another bug for this code. As the path above does not corespond to the FHS is should work anyway. ;-) H. -- sigmentation fault signature.asc Description: Digital signature
Bug#709986: texlive-base: Use of uninitialized value
On 29.05.13 Norbert Preining (prein...@logic.at) wrote: Hi, I looks like I have deleted your email ... can you send me the broken file once more, in case you have it around ... sorry. http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=25;filename=a.zip;att=1;bug=709986 Thanks, Hilmar -- sigmentation fault -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
Hilmar Preusse hill...@web.de writes: On 29.05.13 Norbert Preining (prein...@logic.at) wrote: Hi, The patch is quite simple: diff --git a/texlive-base/debian/tl-paper b/texlive-base/debian/tl-paper index e8f3ec9..7fc5223 100644 --- a/texlive-base/debian/tl-paper +++ b/texlive-base/debian/tl-paper @@ -74,6 +74,14 @@ sub main { usage(); exit 1; } +# set TEXMFVAR and TEXMFSYSVAR to something completely absurd +# so that we always find either the system provided config file +# as distributed in /usr/share/texlive/texmf-dist, or, if the +# admin decided to override that, a copy in TEXMFSYSCONFIG +# but *not* the one we have created at some point in history +# in TEXMF(SYS)VAR +$ENV{TEXMFVAR} = /does/hopefully/not/exists/on/any/system; +$ENV{TEXMFSYSVAR} = /does/hopefully/not/exists/on/any/system; if ($prg =~ m/^all$/i) { if ($newpaper !~ /^(a4|letter)$/) { # we cannot deal with that for now, only a4|letter supported for I'm pretty sure you'll get another bug for this code. As the path above does not corespond to the FHS is should work anyway. ;-) Maybe it would be more elegant to do something like this +$ENV{TEXMFVAR} = $TEXMFMAIN; +$ENV{TEXMFSYSVAR} = $TEXMFMAIN; (or whatever the current name for our tree is, and probably needs to be expanded by kpsewhich, not the shell). Regards, Frank -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
On Mi, 29 Mai 2013, Frank Küster wrote: +$ENV{TEXMFVAR} = $TEXMFMAIN; +$ENV{TEXMFSYSVAR} = $TEXMFMAIN; Good idea, done that. Thanks for suggestion. Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
On Di, 28 Mai 2013, Hilmar Preusse wrote: /var/lib/texmf/dvips/config/config-paper.ps This file is completely messed up ... strange. You did *not* edit it by hand, right? Can you please remove it, call mktexlsr /var/lib/temxf/, and then run through the dpkg-reconfigure script again? Thanks Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
tags 709986 + unreproducible stop On 28.05.13 Norbert Preining (prein...@logic.at) wrote: On Di, 28 Mai 2013, Hilmar Preusse wrote: Hi, /var/lib/texmf/dvips/config/config-paper.ps This file is completely messed up ... strange. You did *not* edit it by hand, right? No, I did not. Can you please remove it, call mktexlsr /var/lib/temxf/, and then run through the dpkg-reconfigure script again? Before the steps the file had a time stamp: hille@sid:~ $ ls -l /var/lib/texmf/dvips/config/config-paper.ps -rw-r--r-- 1 root root 12750 May 27 21:07 /var/lib/texmf/dvips/config/config-paper.ps dpkg.log: 2013-05-27 21:07:13 status triggers-pending tex-common:all 4.03 2013-05-27 21:07:13 status triggers-awaited texlive-base:all 2013.20130523-1 2013-05-27 21:07:13 startup packages configure 2013-05-27 21:07:13 trigproc tex-common:all 4.03 none 2013-05-27 21:07:13 status half-configured tex-common:all 4.03 2013-05-27 21:07:13 status installed texlive-base:all 2013.20130523-1 2013-05-27 21:07:22 status installed tex-common:all 4.03 So, anything in the TL packages must have broken that file. After the steps everything is OK. I tag the bug as unreproducible for now. H. -- sigmentation fault signature.asc Description: Digital signature
Bug#709986: texlive-base: Use of uninitialized value
Hi HIlmar, On Di, 28 Mai 2013, Norbert Preining wrote: kpsewhich --progname=dvips --format='dvips config' config-paper.ps and then also the *files* that are mentioned there. This file is completely messed up ... strange. I looks like I have deleted your email ... can you send me the broken file once more, in case you have it around ... sorry. Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
tag 709986 + pending thanks Hi Hilmar, On Mo, 27 Mai 2013, Hilmar Preuße wrote: Use of uninitialized value in range (or flop) at /usr/share/texlive/tlpkg/TeXLive/TLPaper.pm line 498. Ok, somehow your copy of config-paper.ps got messed up, that can happen. I have no changed tl-paper (the script) in a way that when *setting* a paper size, it *first* unsets TEXFMVAR and TEXMFSYSVAR. By this the normal code with kpsewhich in TLPaper.pm will find the copy originally distributed in TeX Live (/u/s/texlive/texmf-dist), *or*, if the sysadm changed something, a copy in TEXMFSYSCONFIG, but *NOT* (!) the one we have created with tl-paper in TEXMFSYSVAR. THis way, we are sure that the format is correct while reading in the current papers and creating a new correct one in TEXMFSYSVAR. THe sysadmin still has the option to add his own copy of config-paper.ps in /etc/texmf/dvips/config/ and adjust the paper sizes or whatever, but he has to care for the syntactic correctness. Something that we anyway require ;-) The patch is quite simple: diff --git a/texlive-base/debian/tl-paper b/texlive-base/debian/tl-paper index e8f3ec9..7fc5223 100644 --- a/texlive-base/debian/tl-paper +++ b/texlive-base/debian/tl-paper @@ -74,6 +74,14 @@ sub main { usage(); exit 1; } +# set TEXMFVAR and TEXMFSYSVAR to something completely absurd +# so that we always find either the system provided config file +# as distributed in /usr/share/texlive/texmf-dist, or, if the +# admin decided to override that, a copy in TEXMFSYSCONFIG +# but *not* the one we have created at some point in history +# in TEXMF(SYS)VAR +$ENV{TEXMFVAR} = /does/hopefully/not/exists/on/any/system; +$ENV{TEXMFSYSVAR} = /does/hopefully/not/exists/on/any/system; if ($prg =~ m/^all$/i) { if ($newpaper !~ /^(a4|letter)$/) { # we cannot deal with that for now, only a4|letter supported for I did some experiments with deliberately scramlbing the config-paper.ps file, and it worked. Hope you agree that this is a solution to the problem. Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
Package: texlive-base Version: 2013.20130523-1 Severity: normal Dear Maintainer, Today I upgraded to TL 2013 from TL 2012. During setup of texlive-base I get a lot of error messages regarding a perl module: sid:~# dpkg-reconfigure texlive-base mktexlsr: Updating /var/lib/texmf/ls-R-TEXLIVEMAIN... mktexlsr: Updating /var/lib/texmf/ls-R-TEXMFMAIN... mktexlsr: Updating /var/lib/texmf/ls-R... mktexlsr: Done. Use of uninitialized value in range (or flop) at /usr/share/texlive/tlpkg/TeXLive/TLPaper.pm line 498. Use of uninitialized value in numeric le (=) at /usr/share/texlive/tlpkg/TeXLive/TLPaper.pm line 502. Use of uninitialized value in numeric le (=) at /usr/share/texlive/tlpkg/TeXLive/TLPaper.pm line 502. snip H. -- Package-specific info: IMPORTANT INFORMATION: We will only consider bug reports concerning the packaging of TeX Live as relevant. If you have problems with combination of packages in a LaTeX document, please consult your local TeX User Group, the comp.text.tex user group, the author of the original .sty file, or any other help resource. *** The Debian TeX Team is *no* LaTeX Help Desk *** If you report an error when running one of the TeX-related binaries (latex, pdftex, metafont,...), or if the bug is related to bad or wrong output, please include a MINIMAL example input file that produces the error in your report. Please run your example with (pdf)latex -recorder ... (or any other program that supports -recorder) and send us the generated file with the extension .fls, it lists all the files loaded during the run and can easily explain problems induced by outdated files in your home directory. Don't forget to also include minimal examples of other files that are needed, e.g. bibtex databases. Often it also helps to include the logfile. Please, never send included pictures! If your example file isn't short or produces more than one page of output (except when multiple pages are needed to show the problem), you can probably minimize it further. Instructions on how to do that can be found at http://www.minimalbeispiel.de/mini-en.html (english) or http://www.minimalbeispiel.de/mini.html (german) ## minimal input file ## other files ## List of ls-R files -rw-r--r-- 1 root root 2770 May 27 12:24 /var/lib/texmf/ls-R -rw-rw-r-- 1 root staff 80 Jun 29 2012 /usr/local/share/texmf/ls-R lrwxrwxrwx 1 root root 29 May 12 12:11 /usr/share/texmf/ls-R - /var/lib/texmf/ls-R-TEXMFMAIN lrwxrwxrwx 1 root root 31 May 23 06:33 /usr/share/texlive/texmf-dist/ls-R - /var/lib/texmf/ls-R-TEXLIVEDIST lrwxrwxrwx 1 root root 31 May 23 06:33 /usr/share/texlive/texmf-dist/ls-R - /var/lib/texmf/ls-R-TEXLIVEDIST lrwxrwxrwx 1 root root 31 Oct 3 2012 /usr/share/texlive/texmf/ls-R - /var/lib/texmf/ls-R-TEXLIVEMAIN ## Config files lrwxrwxrwx 1 root root 40 May 23 06:33 /usr/share/texmf/web2c/texmf.cnf - ../../texlive/texmf-dist/web2c/texmf.cnf -rw-r--r-- 1 root root 6485 May 27 12:24 /var/lib/texmf/web2c/fmtutil.cnf lrwxrwxrwx 1 root root 32 May 23 06:33 /usr/share/texmf/web2c/updmap.cfg - /var/lib/texmf/updmap.cfg-DEBIAN -rw-r--r-- 1 root root 4520 May 27 12:24 /var/lib/texmf/tex/generic/config/language.dat ## Files in /etc/texmf/web2c/ total 8 -rw-r--r-- 1 root root 283 Nov 10 2008 mktex.cnf -rw-r--r-- 1 root root 1656 May 27 12:22 texmf.cnf ## md5sums of texmf.d ca40c66f144b4bafc3e59a2dd32ecb9c /etc/texmf/texmf.d/00debian.cnf d588a08518f705d06ac262acd78f2bc4 /etc/texmf/texmf.d/20xmltex.cnf 055e06548bac99958d8ab2dd1248f2b4 /etc/texmf/texmf.d/80tex4ht.cnf 1df66bc319cec731e202eaf39f5d85e1 /etc/texmf/texmf.d/96JadeTeX.cnf -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 3.8-1-686-pae (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages texlive-base depends on: ii debconf [debconf-2.0] 1.5.50 ii dpkg 1.16.10 ii libpaper-utils 1.1.24+nmu2 ii luatex 0.76.0-2 ii tex-common 4.03 ii texlive-binaries 2013.20130523.30626-1 ii ucf3.0025+nmu3 ii xdg-utils 1.1.0~rc1+git20111210-7 Versions of packages texlive-base recommends: ii lmodern 2.004.4-3 Versions of packages texlive-base suggests: ii ghostscript [postscript-viewer] 9.05~dfsg-6.3 ii gv [postscript-viewer] 1:3.7.3-1 ii perl-tk 1:804.030-1 ii xpdf [pdf-viewer]3.03-10 Versions of packages tex-common depends on: ii debconf [debconf-2.0] 1.5.50 ii dpkg 1.16.10 ii ucf3.0025+nmu3 Versions of packages tex-common
Bug#709986: texlive-base: Use of uninitialized value
On Mo, 27 Mai 2013, Hilmar Preuße wrote: Today I upgraded to TL 2013 from TL 2012. During setup of texlive-base I get a lot of error messages regarding a perl module: Hmmm, it seems that you do not have a papersize defined? What does paperconf say? If eg it says a4 then please edit /var/lib/dpkg/info/texlive-base.postinst and add set -x to the top. THen run the dpkg-reconfigure again and send the output. Thanks Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#709986: texlive-base: Use of uninitialized value
On 27.05.13 Norbert Preining (prein...@logic.at) wrote: On Mo, 27 Mai 2013, Hilmar Preuße wrote: Hi, Today I upgraded to TL 2013 from TL 2012. During setup of texlive-base I get a lot of error messages regarding a perl module: Hmmm, it seems that you do not have a papersize defined? What does paperconf say? a4 If eg it says a4 then please edit /var/lib/dpkg/info/texlive-base.postinst and add set -x to the top. THen run the dpkg-reconfigure again and send the output. Attached. Thanks, Hilmar -- sigmentation fault 709986.log.xz Description: Binary data signature.asc Description: Digital signature
Bug#709986: texlive-base: Use of uninitialized value
On Mo, 27 Mai 2013, Hilmar Preusse wrote: a4 Good. Attached. Thanks, so my first conjecture was wrong, let us try another one. Send me the outputs of kpsewhich --progname=dvips --format='dvips config' config.ps kpsewhich --progname=dvips --format='dvips config' config-paper.ps and then also the *files* that are mentioned there. I see that *if* the config-paper.ps is corrupted, then the code in TLPaper.pm might produce rubbish... Norbert PREINING, Norbert http://www.preining.info JAIST, Japan TeX Live Debian Developer DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org