[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Broken makefile given Autoconf version mismatch
From: |
Paul Eggert |
Subject: |
Re: Broken makefile given Autoconf version mismatch |
Date: |
Fri, 14 Apr 2006 11:33:11 -0700 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Stepan Kasal <address@hidden> writes:
> --- lib/Automake/FileUtils.pm 2006-04-14 09:25:00.000000000 +0200
> +++ lib/Automake/FileUtils.pm 2006-04-14 09:45:44.000000000 +0200
> @@ -73,6 +73,9 @@
> $optional = 1
> if $file_name =~ s/\?$//;
>
> + return "-"
> + if $file_name eq "-";
> +
> return File::Spec->canonpath ($file_name)
> if -e $file_name;
I favor this change: it is simple, it restores old functionality,
and it supports useful behavior.
By the way, this general topic has been discussed recently by the Open
Group. The question was whether standard commands like "od -" are
required to read a file named "-", or whether they are allowed to read
stdin instead. The consensus was that POSIX does not specify the
behavior here, and that an implementation of "od -" is allowed to
either read a file named "-", or to read standard input. While this
conclusion doesn't directly affect Automake (which isn't standardized
yet :) it does suggest that "-" should either refer to standard input,
or to a file named "-". Personally I think the former is more
consistent, as it is the GNU style (used in coreutils).
For more about the Open Group discussion, please see
<http://www.opengroup.org/austin/mailarchives/ag/msg09343.html> and
<http://www.opengroup.org/austin/mailarchives/ag/msg09421.html> (AI-092).
Re: Broken makefile given Autoconf version mismatch, Alexandre Duret-Lutz, 2006/04/13
- Re: Broken makefile given Autoconf version mismatch, Noah Misch, 2006/04/13
- Re: Broken makefile given Autoconf version mismatch, Ralf Wildenhues, 2006/04/13
- Re: Broken makefile given Autoconf version mismatch, Alexandre Duret-Lutz, 2006/04/13
- Re: Broken makefile given Autoconf version mismatch, Stepan Kasal, 2006/04/14
- Re: Broken makefile given Autoconf version mismatch,
Paul Eggert <=
- Re: Broken makefile given Autoconf version mismatch, Alexandre Duret-Lutz, 2006/04/16
- Re: Broken makefile given Autoconf version mismatch, Stepan Kasal, 2006/04/16
- Re: Broken makefile given Autoconf version mismatch, Noah Misch, 2006/04/16
- Re: Broken makefile given Autoconf version mismatch, Bob Proulx, 2006/04/18
- Re: Broken makefile given Autoconf version mismatch, Noah Misch, 2006/04/18
Re: Broken makefile given Autoconf version mismatch, Alexandre Duret-Lutz, 2006/04/20
Re: Broken makefile given Autoconf version mismatch, Stepan Kasal, 2006/04/20
Re: Broken makefile given Autoconf version mismatch, Alexandre Duret-Lutz, 2006/04/20
Re: Broken makefile given Autoconf version mismatch, Stepan Kasal, 2006/04/20
Re: Broken makefile given Autoconf version mismatch, Ralf Wildenhues, 2006/04/20