autoconf
[Top][All Lists]
Advanced

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

Re: distcheck fails with autotest: autom4te: cannot open ../../tests/tes


From: Benoit SIGOURE
Subject: Re: distcheck fails with autotest: autom4te: cannot open ../../tests/testsuite.tmp: Permission denied
Date: Fri, 2 Nov 2007 18:31:55 +0100

On Nov 2, 2007, at 5:08 PM, Ralf Wildenhues wrote:

Hello Benoit,

* Benoit SIGOURE wrote on Fri, Nov 02, 2007 at 03:07:23AM CET:
Anyways, I must have b0rken something at some point, because now when I
`make distcheck', I get:

make[3]: Entering directory
`/Users/tsuna/svn/git/boost.m4/_build/boost-m4-test-0.1/_build/tests'
/bin/sh
/Users/tsuna/svn/git/boost.m4/_build/boost-m4-test-0.1/build-aux/ missing
--run autom4te --language=autotest -I '../../tests'
../../tests/testsuite.at -o ../../tests/testsuite.tmp
autom4te: cannot open ../../tests/testsuite.tmp: Permission denied
make[3]: *** [../../tests/testsuite] Error 1

The rule is that no distributed files can depend on undistributed ones.
So if you ship `testsuite', then ship package.m4 as well.  If you ship
package.m4, then it should not depend on config.status or Makefile
(the manual shows an example where it depends on configure.ac only.)

Indeed.  In fact the fix was trivial:

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0532b4b..fdf7dfc 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -30,7 +30,7 @@ clean-local:
 AUTOTEST = $(AUTOM4TE) --language=autotest
-$(TESTSUITE): package.m4 $(srcdir)/testsuite.at
+$(TESTSUITE): $(srcdir)/package.m4.in $(srcdir)/testsuite.at
        $(AUTOTEST) -I '$(srcdir)' address@hidden -o address@hidden
        mv address@hidden $@


so my guess is that it's related to the fact that I chose to generate
`package.m4' with config.status (it's an AC_CONFIG_FILES) instead of having
it depend on `Makefile' as shown in the Autoconf manual.

I don't see where you read that.

Hmm... It's in autoconf itself that package.m4 depends on Makefile. Probably not a good idea. I must have done too much copying/pasting.

Thanks!

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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