The original message below was held for moderator approval because I had not
(yet) subscribed to this list.

Attached is a tiny patch addressing this problem

regards
Peter Breitenlohner <[EMAIL PROTECTED]>

---------- Forwarded message ----------
Date: Tue, 24 Oct 2006 16:49:00 +0200 (CEST)
From: Peter Breitenlohner <[EMAIL PROTECTED]>
To: bug-automake@gnu.org
Subject: A problem (bug) in automake (1.10 and earlier version)

I have noticed the following problem (bug) in automake-1.10:

(1) A package (ImageMagick-6.3.0) uses configure to generate manpages with
substitutions (e.g., xxxx.1 from xxxx.1.in) but also distributes the
generated manpages (with different substitutions).

(2) The automake-generated rule to install manpages looks for the files to
install FIRST under ${srcdir} and THEN under the current directory.

===============

The effect of (1)+(2) is, that the manpages with the wrong substitutions are
installed.

===============

(1) is certainly not the right way to do things.

On the other hand I would think that (2) is equally wrong. Whenever a file
is to be installed, then the automake-generated rules should FIRST look for
that file in the current directory and THEN under ${srcdir}!

===============

Peter Breitenlohner <[EMAIL PROTECTED]>
diff -ur -N automake-1.10.orig/lib/am/mans.am automake-1.10/lib/am/mans.am
--- automake-1.10.orig/lib/am/mans.am   2006-08-19 16:09:06.000000000 +0200
+++ automake-1.10/lib/am/mans.am        2006-10-24 16:53:07.000000000 +0200
@@ -44,8 +44,8 @@
        done; \
        for i in $$list; do \
 ## Find the file.
-         if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
-         else file=$$i; fi; \
+         if test -f $$i; then file=$$i; \
+         else file=$(srcdir)/$$i; fi; \
 ## Change the extension if needed.
          ext=`echo $$i | sed -e 's/^.*\\.//'`; \
          case "$$ext" in \

Reply via email to