bug-automake
[Top][All Lists]
Advanced

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

Re: CVS automake testsuite failures


From: Alexandre Duret-Lutz
Subject: Re: CVS automake testsuite failures
Date: Thu, 21 Mar 2002 11:56:16 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu)

>>> "Nicolas" == Nicolas Joly <address@hidden> writes:

[...]

 Nicolas> This seems to be a `make' problem. With your recent changes to use
 Nicolas> `$MAKE', it fails with Tru64 make but pass with GNU make :

Yep.  Your make create empty directories in the build tree:

 Nicolas> configure: creating ./config.status
 Nicolas> config.status: creating Makefile
 Nicolas> No suffix list.
 Nicolas> mkdir foo
 Nicolas> mkdir foo/bar
 Nicolas> mkdir baz

Those mkdirs are not in the Makefile.

The resulting tree

[...]
 Nicolas> [...] testSubDir/foo
 Nicolas> [...] testSubDir/foo/bar
 Nicolas> [...] testSubDir/foo/bar/baz
 Nicolas> [...] testSubDir/baz
 Nicolas> [...] testSubDir/baz/foo
[...]
 Nicolas> [...] testSubDir/build/foo
 Nicolas> [...] testSubDir/build/foo/bar
 Nicolas> [...] testSubDir/build/baz
[...]

confuses the `distdir' rule.  The test tries to distribute the
foo/bar/ and baz/ directories, but the empty directory created
in $(builddir) is prefered over the one in $(srcdir).

Do you know what trigger these mkdirs?

It seems I can reproduce this under SunOS 5.8.  There is a
couple of magic 'mkdir' invocations too, but if I run make check
a second time, it passes.

 | % make check-TESTS TESTS=extra6.test
 | [...]
 | % cd testSubDir
 | % rm -Rf foo baz
 | % pwd
 | /tmp/a/automake-1.6a/tests/testSubDir/build
 | % make check
 | { test ! -d extra6-1.0  || { find extra6-1.0 -type d ! -perm -200 -exec 
chmod u+w {} ';'  && rm -fr extra6-1.0; }; }
 | mkdir extra6-1.0
 | /bin/bash ../mkinstalldirs extra6-1.0/foo extra6-1.0/foo2
>| mkdir -p -- extra6-1.0/foo extra6-1.0/foo2
>| mkdir -p -- extra6-1.0/../foo
 | find extra6-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/bash 
/tmp/a/automake-1.6a/tests/testSubDir/install-sh -c -m a+r {} {} \; \
 | || chmod -R a+r extra6-1.0
 | test -f extra6-1.0/foo/bar/baz
 | *** Error code 1
 | make: Fatal error: Command failed for target `check'
 | % ls -d foo baz
 | baz/  foo/
 | % make check
 | { test ! -d extra6-1.0  || { find extra6-1.0 -type d ! -perm -200 -exec 
chmod u+w {} ';'  && rm -fr extra6-1.0; }; }
 | mkdir extra6-1.0
 | /bin/bash ../mkinstalldirs extra6-1.0/foo extra6-1.0/foo2
>| mkdir -p -- extra6-1.0/foo extra6-1.0/foo2
 | find extra6-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/bash 
/tmp/a/automake-1.6a/tests/testSubDir/install-sh -c -m a+r {} {} \; \
 | || chmod -R a+r extra6-1.0
 | test -f extra6-1.0/foo/bar/baz
 | test -f extra6-1.0/baz/foo
 | test -f extra6-1.0/foo2/bar2/baz2
 | test -f extra6-1.0/baz2/foo2
-- 
Alexandre Duret-Lutz




reply via email to

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