>From 00b0341603620881f19a83e63eb02fe8589a9ec7 Mon Sep 17 00:00:00 2001 Message-Id: From: Stefano Lattarini Date: Tue, 13 Mar 2012 10:51:08 +0100 Subject: [PATCH] gnulib-tool: fix imprecise comments w.r.t. an automake bug It's not just Automake versions < 1.9b that creates an empty pkgdatadir at installation time if pkgdata_DATA is specified to empty; modern automake versions do this as well, at least until automake 1.11.4 (not yet released at the moment of writing, but soon to appear). That behaviour was generally considered a feature rather than a bug, at least until this discussion: See also automake bugs #10997 and #11030. * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments. Add reference to relevant automake bug numbers. (func_emit_tests_Makefile_am): Likewise. Signed-off-by: Stefano Lattarini --- ChangeLog | 18 ++++++++++++++++++ gnulib-tool | 12 ++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0076e06..d3f3ec7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,21 @@ +2012-03-21 Stefano Lattarini + + gnulib-tool: fix imprecise comments w.r.t. an automake bug + + It's not just Automake versions < 1.9b that creates an empty + pkgdatadir at installation time if pkgdata_DATA is specified + to empty; modern automake versions do this as well, at least + until automake 1.11.4 (not yet released at the moment of writing, + but soon to appear). That behaviour was generally considered a + feature rather than a bug, at least until this discussion: + + + See also automake bugs #10997 and #11030. + + * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments. Add + reference to relevant automake bug numbers. + (func_emit_tests_Makefile_am): Likewise. + 2012-03-20 Reuben Thomas announce-gen: use Digest::SHA when possible diff --git a/gnulib-tool b/gnulib-tool index eef9ab6..fae325c 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -3348,8 +3348,10 @@ func_emit_lib_Makefile_am () echo "noinst_HEADERS =" echo "noinst_LIBRARIES =" echo "noinst_LTLIBRARIES =" - # Automake versions < 1.9b create an empty pkgdatadir at installation time - # if you specify pkgdata_DATA to empty. This is a workaround. + # Automake versions < 1.11.3 create an empty pkgdatadir at + # installation time if you specify pkgdata_DATA to empty. + # See automake bugs #10997 and #11030. + # So we need this workaround. if grep '^pkgdata_DATA *+=' "$tmp"/allsnippets > /dev/null; then echo "pkgdata_DATA =" fi @@ -3669,8 +3671,10 @@ func_emit_tests_Makefile_am () echo "check_LIBRARIES = libtests.a" fi fi - # Automake versions < 1.9b create an empty pkgdatadir at installation time - # if you specify pkgdata_DATA to empty. This is a workaround. + # Automake versions < 1.11.3 create an empty pkgdatadir at + # installation time if you specify pkgdata_DATA to empty. + # See automake bugs #10997 and #11030. + # So we need this workaround. if grep '^pkgdata_DATA *+=' "$tmp"/main_snippets "$tmp"/longrunning_snippets > /dev/null; then echo "pkgdata_DATA =" fi -- 1.7.9