bug-texinfo
[Top][All Lists]
Advanced

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

texinfo exits prematurely on first cycle with status 1


From: Vladimir Trifonov
Subject: texinfo exits prematurely on first cycle with status 1
Date: Tue, 26 Jul 2016 01:13:41 +0000

Hi,

To reproduce please untar and run the script ‘run’ in the resulting folder. As 
can be seen the status of texi2dvi is 1 although pdflatex completed without 
errors. The produced ‘log’ file shows the problem to be in the function 
run_tex_suite from the texi2dvi script:

1) on the first cycle,  xref_files_new = “”  because there is no log file yet 
produced by pdflatex

2) after run_core_conversion, Rd2.log contains ‘Rerun to get Rd2.log’ which 
causes xref_files_changed to return 0 without updating xref_files_new

3) when run_index is executed xref_files_new = “”

4) this causes  'test –n “$xref_files_new”’ in filter_files to exit with status 
1 (because of set –e at the beginning of the script)

5) this is caught by the 'trap “cleanup” 0' and the program exits with status 1 
without any further processing (e.g. another cycle of run_core_conversion as 
requested by Rd2.log)

This is ran with texlive-2016 on Ubuntu 14.04. I have my own version of texinfo 
and texlive installed

Possible solution is to substitute "test –n “$xref_files_new”’ at the beginning 
filter_files with an "equivalent ‘if’ statement which does not ‘leak’ the 
status of ’test –n’ into the script. This solution worked in my case.


Thanks,
Vladimir



address@hidden:~$ texi2dvi --version
texi2dvi (GNU Texinfo 6.1) 6991

Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

address@hidden:~$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/";
SUPPORT_URL="http://help.ubuntu.com/";
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/“



Attachment: texinfo_bug.tar.gz
Description: texinfo_bug.tar.gz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]