]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
dist: truly always distribute files in AC_REQUIRE_AUX_FILE
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 6 Oct 2011 11:20:57 +0000 (13:20 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 8 Oct 2011 19:15:25 +0000 (21:15 +0200)
This change fixes automake bug#9651.

* automake.in (handle_dist): Files whose distribution is required
by configure.ac are now correctly distributed even if the build-aux
directory coincides with the top-level directory.
* tests/Makefile.am (XFAIL_TESTS): Remove `dist-auxfile.test'.
* NEWS: Update.

ChangeLog
NEWS
automake.in
tests/Makefile.am
tests/Makefile.in

index 563f91fa3ad10739f1a5e8f25bba1261c1f96873..52442377915c757bdecdf6ddc6a7f44e3a576a6d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-10-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       dist: truly always distribute files in AC_REQUIRE_AUX_FILE
+       This change fixes automake bug#9651.
+       * automake.in (handle_dist): Files whose distribution is required
+       by configure.ac are now correctly distributed even if the build-aux
+       directory coincides with the top-level directory.
+       * tests/Makefile.am (XFAIL_TESTS): Remove `dist-auxfile.test'.
+       * NEWS: Update.
+
 2011-10-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        dist: simplify automake code accordingly to the previous changes
diff --git a/NEWS b/NEWS
index 765876d266f103afa151b8e0a38269321dfca8e3..392170599f5310e0e35cb00f848a175d4c399287 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -182,6 +182,10 @@ Bugs fixed in 1.11a:
 
 * Long standing bugs:
 
+  - Files listed with the AC_REQUIRE_AUX_FILE macro in configure.ac are
+    now automatically distributed also if the directory of the auxiliary
+    files coincides with the top-level directory.
+
   - "make distcheck" now correctly complains also when "make uninstall"
     leaves one and only one file installed in $(prefix).
 
index e3d2b9133a247fb2dc2f3a90c0c4e8777cdbed4a..9159fc6c2fb98ad8deea63aa51d84b365138c634 100644 (file)
@@ -3830,12 +3830,19 @@ sub handle_dist ()
   # directory, we would have discovered it already, so we don't
   # check that.  But if the file is in a subdir without a Makefile,
   # we want to distribute it here if we are doing `.'.  Ugly!
+  # Also, in some corner cases, it's possible that the following code
+  # will cause the same file to appear in the $(DIST_COMMON) variables
+  # of two distinct Makefiles; but this is not a problem, since the
+  # `distdir' target in `lib/am/distdir.am' can deal with the same
+  # file being distributed multiple times.
+  # See also automake bug#9651.
   if ($relative_dir eq '.')
     {
       foreach my $file (split (' ' , $configure_dist_common))
        {
+         my $dir = dirname ($file);
          push_dist_common ($file)
-           unless is_make_dir (dirname ($file));
+           if ($dir eq '.' || ! is_make_dir ($dir));
        }
     }
 
index 6918aed7680504d85b0a94455e4671a7ce5b981d..dd07247ff29fc3979440ac70a64a2ee3e692dd2f 100644 (file)
@@ -27,7 +27,6 @@ XFAIL_TESTS = \
 all.test \
 auxdir2.test \
 cond17.test \
-dist-auxfile.test \
 gcj6.test \
 override-conditional-2.test \
 parallel-am.test \
index 3436d4e41cf2b4cfc8f66711718edbc3dd47fd81..ecd4bcc7e4a375f5ac4528fdaf0d51253a71781a 100644 (file)
@@ -294,11 +294,10 @@ EXTRA_DIST = ChangeLog-old gen-parallel-tests instspc-tests.sh \
        trivial-test-driver testsuite-summary-checks.sh \
        extract-testsuite-summary tap-setup.sh tap-summary-aux.sh \
        distcheck-hook-m4.am
-XFAIL_TESTS = all.test auxdir2.test cond17.test dist-auxfile.test \
-       gcj6.test override-conditional-2.test parallel-am.test \
-       java-nobase.test pr8365-remake-timing.test \
-       yacc-dist-nobuild-subdir.test vala-vpath.test txinfo5.test \
-       $(instspc_xfail_tests)
+XFAIL_TESTS = all.test auxdir2.test cond17.test gcj6.test \
+       override-conditional-2.test parallel-am.test java-nobase.test \
+       pr8365-remake-timing.test yacc-dist-nobuild-subdir.test \
+       vala-vpath.test txinfo5.test $(instspc_xfail_tests)
 parallel_tests = check-concurrency-bug9245-p.test \
        check-exported-srcdir-p.test check-fd-redirect-p.test \
        check-tests-in-builddir-p.test check-p.test check11-p.test \