source: scripts/untested/autotools/patches/automake-1.5-test-fixes.patch@ d1afb9e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d1afb9e was d1afb9e, checked in by Jim Gifford <clfs@…>, 19 years ago

r587@server (orig r585): ryan | 2005-08-05 21:51:35 -0700
Add a sane autotools build to the mix.
Blatantly stolen from gentoo...



  • Property mode set to 100644
File size: 2.2 KB
  • automake-1.5/tests/insthook.test

    Fix the tests so they don't fail :)
    http://bugs.gentoo.org/show_bug.cgi?id=79505
    
    insthook:
    update the head/tail syntax since coreutils has deprecated the old style
    
    dirname,ccnoco:
    rip patches from fedora
    
    old new  
    17 test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook
     17test x$lnum != x && tail -n +$lnum Makefile.in | head -n 3 | grep install-exec-hook
  • tests/dirname.test

    diff -u automake-1.5/tests/dirname.test automake-1.6.3/tests/dirname.test
    old new  
    55. $srcdir/defs || exit 1
    66
    77cat > configure.in << 'END'
    8 AC_PLAIN_SCRIPT
     8AC_INIT
    99echo "1 /a/path/to/a/file      = _AM_DIRNAME([/a/path/to/a/file])"
    1010echo "2 another/path/to/a/file = _AM_DIRNAME([another/path/to/a/file])"
    1111echo "3 file                   = _AM_DIRNAME([file])"
     
    1515echo "7 /file                  = _AM_DIRNAME([/file])"
    1616END
    1717
    18 # Fail gracefully if no autoconf.
    19 $needs_autoconf
    20 
    2118$ACLOCAL || exit 1
    22 $AUTOCONF || exit 1
    23 
    24 # fail gracefully if autoconf didn't support AC_PLAIN_SCRIPT, because it won't
    25 # support our regexps anyhow
    26 test -s configure || exit 77
     19# fail gracefully if autoconf didn't support support our regexps anyhow
     20$AUTOCONF || exit 77
    2721
    28 $SHELL ./configure >got || exit 1
     22# Use --quiet otherwise unwelcome messages like "loading site script"
     23# would cause a failure.
     24./configure --quiet >got || exit 1
    2925
    3026cat >wanted <<EOF
    31271 /a/path/to/a/file      = /a/path/to/a
     
    4036diff wanted got || exit 1
    4137
    4238exit 0
    43 
  • tests/ccnoco.test

    diff -u automake-1.5/tests/ccnoco.test automake-1.6.3/tests/ccnoco.test
    old new  
    3939}
    4040END
    4141
    42 $needs_autoconf
    4342gcc -v || exit 77
    4443
    4544cat > Mycomp << 'END'
     
    5150    ;;
    5251esac
    5352
    54 exec gcc ${1+"$@"}
     53exec gcc "$@"
    5554END
    5655
    5756chmod +x Mycomp
     
    5958set -e
    6059
    6160
     61# Ignore user CFLAGS.
     62CFLAGS=
     63export CFLAGS
     64
    6265for conf in configure.1 configure.3; do
    6366   cp $conf configure.in
    6467
Note: See TracBrowser for help on using the repository browser.