Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228205 - sys-devel/automake-{1.4_p6,1.5,1.6.3,1.7.9-r1} contain buggy texinfo.tex, causing test failures with texlive
Summary: sys-devel/automake-{1.4_p6,1.5,1.6.3,1.7.9-r1} contain buggy texinfo.tex, cau...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2008-06-18 22:15 UTC by David Leverton
Modified: 2022-07-27 08:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
automake-1.7.9-texinfo-pdf.patch (automake-1.7.9-texinfo-pdf.patch,1.15 KB, patch)
2008-06-18 22:17 UTC, David Leverton
Details | Diff
Patch between automake-1.7.9 and automake-git (automake-1.7-texinfo.patch,328.45 KB, patch)
2009-07-29 13:15 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Leverton 2008-06-18 22:15:17 UTC
shiny-one tests # ./txinfo3.test
txinfo3: running makeinfo --version
makeinfo (GNU texinfo) 4.11

Copyright (C) 2007 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.
=== Running test ./txinfo3.test
++ pwd
/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir
+ set -e
+ echo AC_OUTPUT
+ cat
+ cat
+ /usr/bin/perl /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/../../aclocal -I /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/../../m4 --acdir=/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/../m4
+ /bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/lib/missing --run autoconf
+ /usr/bin/perl /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/../../automake --libdir=/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/../lib --foreign -Werror -Wall --add-missing
Makefile.am:1: installing `./texinfo.tex'
+ grep '^INFO_DEPS.*textutils$' Makefile.in
INFO_DEPS = textutils
+ grep '^.texi:$' Makefile.in
+ grep '^textutils: textutils.texi' Makefile.in
textutils: textutils.texi
+ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
+ make distcheck
{ test ! -d txinfo3-1.0 || { find txinfo3-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr txinfo3-1.0; }; }
mkdir txinfo3-1.0
make  \
          top_distdir="." distdir="txinfo3-1.0" \
          dist-info
make[1]: Entering directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir'
/bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/missing --run makeinfo   -I . \
         -o textutils `test -f 'textutils.texi' || echo './'`textutils.texi
list='textutils'; \
        for base in $list; do \
          if test -f $base; then d=.; else d=.; fi; \
          for file in $d/$base*; do \
            relfile=`expr "$file" : "$d/\(.*\)"`; \
            test -f txinfo3-1.0/$relfile || \
              cp -p $file txinfo3-1.0/$relfile; \
          done; \
        done
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir'
find txinfo3-1.0 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
          ! -type d ! -perm -444 -exec /bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/install-sh -c -m a+r {} {} \; \
        || chmod -R a+r txinfo3-1.0
/bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/missing --run tar chof - txinfo3-1.0 | GZIP=--best gzip -c >txinfo3-1.0.tar.gz
{ test ! -d txinfo3-1.0 || { find txinfo3-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr txinfo3-1.0; }; }
{ test ! -d txinfo3-1.0 || { find txinfo3-1.0 -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr txinfo3-1.0; }; }
GZIP=--best gunzip -c txinfo3-1.0.tar.gz | /bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/missing --run tar xf -
chmod -R a-w txinfo3-1.0; chmod a+w txinfo3-1.0
mkdir txinfo3-1.0/_build
mkdir txinfo3-1.0/_inst
chmod a-w txinfo3-1.0
dc_install_base=`CDPATH="${ZSH_VERSION+.}:" && cd txinfo3-1.0/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
          && dc_destdir="${TMPDIR-/tmp}/am-dc-$$/" \
          && cd txinfo3-1.0/_build \
          && ../configure --srcdir=.. --prefix="$dc_install_base" \
             \
          && make  \
          && make  dvi \
          && make  check \
          && make  install \
          && make  installcheck \
          && make  uninstall \
          && make  distuninstallcheck_dir="$dc_install_base" \
                distuninstallcheck \
          && chmod -R a-w "$dc_install_base" \
          && ({ \
               (cd ../.. && /bin/sh ./mkinstalldirs "$dc_destdir") \
               && make  DESTDIR="$dc_destdir" install \
               && make  DESTDIR="$dc_destdir" uninstall \
               && make  DESTDIR="$dc_destdir" \
                    distuninstallcheck_dir="$dc_destdir" distuninstallcheck; \
              } || { rm -rf "$dc_destdir"; exit 1; }) \
          && rm -rf "$dc_destdir" \
          && make  dist-gzip \
          && rm -f txinfo3-1.0.tar.gz \
          && make  distcleancheck
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/txinfo3-1.0/_build'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/txinfo3-1.0/_build'
make[1]: Entering directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/txinfo3-1.0/_build'
TEXINPUTS="..:$TEXINPUTS" \
        MAKEINFO='/bin/sh /var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/txinfo3-1.0/missing --run makeinfo   -I ..' \
        texi2dvi `test -f '../textutils.texi' || echo '../'`../textutils.texi
/usr/bin/texi2dvi: Running etex --file-line-error './../textutils.texi' ...
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 file:line:error style messages enabled.
 %&-line parsing enabled.
entering extended mode
(./../textutils.texi
(/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSub
Dir/txinfo3-1.0/_build/../texinfo.tex Loading texinfo [version 2003-10-06.08]:
Basics, pdf, (/usr/share/texmf/tex/plain/misc/pdfcolor.tex) fonts,
page headings, tables, conditionals, indexing, sectioning, toc, environments,
defuns, macros, cross references, (/usr/share/texmf/tex/generic/epsf/epsf.tex
This is `epsf.tex' v2.7.3 <23 July 2005>
) localization, and turning on texinfo input format.) [1{//var/lib/texmf/fonts/
map/pdftex/updmap/pdftex.map}] )</usr/share/texmf/fonts/type1/bluesky/cm/cmr10.
pfb>
Output written on textutils.pdf (1 page, 5577 bytes).
Transcript written on textutils.log.
/usr/bin/texi2dvi: no such file or directory: textutils.dvi
make[1]: *** [textutils.dvi] Error 1
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-automake-1.7.9-r1/work/automake-1.7.9/tests/testSubDir/txinfo3-1.0/_build'
make: *** [distcheck] Error 2

Note that it creates textutils.pdf, but then looks for textutils.dvi.  The problem is that in texlive (and other recent tex distributions), etex is the pdftex executable, but configured to produce DVI output by default.  The texinfo.tex included with these automake versions contains buggy code that attempts to detect when PDF mode is enabled, but in fact forces PDF mode on when run under pdftex.
Comment 1 David Leverton 2008-06-18 22:17:16 UTC
Created attachment 157511 [details, diff]
automake-1.7.9-texinfo-pdf.patch

Fix backported from texinfo.tex supplied by dev-texlive/texlive-latex-2007.  Patch was generated against automake-1.7.9, but applies to the others too.
Comment 2 SpanKY gentoo-dev 2009-02-15 19:37:54 UTC
it'd be better if the changes were back ported from newer automake versions
Comment 3 Xake 2009-07-29 13:15:29 UTC
Created attachment 199555 [details, diff]
Patch between automake-1.7.9 and automake-git

This file is in automake-git kept in sync against a "upstream" which makes it nearly impossible to figure out what commit made this file work (at least for me) so here is a patch to make texinfo from automak-1.7.9 up to date with automake-git.
Comment 4 Xake 2009-07-29 13:27:21 UTC
Since it is so many versions broken by the same problem maybe it is a idea to just have the automake-git version of the file distributed as its own bz2 and fetched and replaced if USE="test" for packages that encounters this problem? Or there are more things broken becouse of this file?