bug-texinfo
[Top][All Lists]
Advanced

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

texinfo-4.11 test failure


From: Jean-Charles Malahieude
Subject: texinfo-4.11 test failure
Date: Sun, 11 Nov 2007 18:41:07 +0100
User-agent: Thunderbird 2.0.0.6 (X11/20070914)

Hi all!

Sorry to come over it, but I get the same problem on my Mandriva-2008, and I must confess I am not a hacker.

./ configure --prefix=/usr/     => OK
make all                        => OK
make check                      => too bad

Even worse, when I apply Bruno's patch, it fails on 2 tests:

make  check-TESTS
make[2]: entrant dans le répertoire « /home/jcharles/rpm/BUILD/texinfo-4.11/util »
SKIP: bibtex.test
FAIL: dvipdf.test
SKIP: latex2html.test
FAIL: texi2dvi.test
====================================
2 of 2 tests failed
(2 tests were not run)
Please report to address@hidden
====================================
make[2]: *** [check-TESTS] Erreur 1
make[2]: quittant le répertoire « /home/jcharles/rpm/BUILD/texinfo-4.11/util »
make[1]: *** [check-am] Erreur 2
make[1]: quittant le répertoire « /home/jcharles/rpm/BUILD/texinfo-4.11/util »
make: *** [check-recursive] Erreur 1


Hi Karl,

The "make check" of texinfo-4.11 fails for me, because I have the
texinfo 4.9 binaries installed in my PATH.

$ make check
...
make[2]: Entering directory `/dev/shm/texinfo-4.11/util'
SKIP: bibtex.test
PASS: dvipdf.test
SKIP: latex2html.test
FAIL: texi2dvi.test
====================================
1 of 2 tests failed
(2 tests were not run)
Please report to address@hidden
====================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/dev/shm/texinfo-4.11/util'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/dev/shm/texinfo-4.11/util'
make: *** [check-recursive] Error 1

[...]

So what's happening is that

  1) Because the test is run in a subdirectory of util/ and because my PATH
     is
       .:/home/bruno/bin:/packages/gnu/bin:...
     it finds the texi2dvi binary in /packages/gnu/bin - it happens to be
     the one from texinfo-4.9.

  2) This texi2dvi script contains these lines:

    if test -n "$dest"; then
      test -f "$dest" || dest="$dest/$file"
      if cmp -s "$file" "$dest"; then :; else
        verbose "Copying $file to $dest"
        cp -p "$file" "$dest"
      fi
    fi

     I.e. it is programmed in such a way that if the user asks to create
     output.dvi, and output.dvi does not exist, the script will attempt
     to create output.dvi/input.dvi and fail. (This was fixed on 2007-07-01.)

This patch fixes it for me.


2007-10-03  Bruno Haible  <address@hidden>

        * util/defs.in (TEXI2DVI_run): Use the TEXI2DVI variable rather than
        invoking the texi2dvi that happens to be installed in $PATH.

diff -r -c3 texinfo-4.11.orig/util/defs.in texinfo-4.11/util/defs.in
*** texinfo-4.11.orig/util/defs.in      2007-07-02 00:28:54.000000000 +0200
--- texinfo-4.11/util/defs.in   2007-10-03 14:57:28.000000000 +0200
***************
*** 198,205 ****
      set x --debug --verbose ${1+"$@"}
      shift
    fi
!   which texi2dvi
!   texi2dvi ${1+"$@"} 2>stderr >stdout || exitcode=$?
    cat stderr
    cat stdout
    test $exitcode = $expected_exitcode || exit 1
--- 198,204 ----
      set x --debug --verbose ${1+"$@"}
      shift
    fi
!   "$TEXI2DVI" ${1+"$@"} 2>stderr >stdout || exitcode=$?
    cat stderr
    cat stdout
    test $exitcode = $expected_exitcode || exit 1
>
Looks good.  Thanks Bruno.








reply via email to

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