[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] Work around a bug in Solaris make's file-inclusion mechan
From: |
Ralf Wildenhues |
Subject: |
Re: [PATCH v2] Work around a bug in Solaris make's file-inclusion mechanism. |
Date: |
Wed, 15 Sep 2010 20:55:49 +0200 |
User-agent: |
Mutt/1.5.20 (2010-08-04) |
* Stefano Lattarini wrote on Wed, Sep 15, 2010 at 01:26:50PM CEST:
> OK for maint?
I really think you should use an extra function normalize_file_name
to do the job, for maintainability.
Please run make maintainer-check.
Typo patologic.
A couple more nits below.
I don't think we want subobj11c.test. What we want instead, and I
agree with your earlier sentiments on this, is unit testing for the
normalize_file_name function. Which suggests that it should be in
lib/Automake/FileUtils.pm I guess, and the test below
lib/Automake/tests. ;-)
If you need help, I can give more hints. In case you're fed up,
I can also do the rest, eventually.
Thanks,
Ralf
> Work around a bug in file-inclusion mechanism of Solaris make.
>
> * automake.in (handle_single_transform): In the name of the
> dependency file: collapse multiple slash characters into a single
> one.
> * tests/subobj11a.test: New test.
> * tests/subobj11b.test: Likewise.
> * tests/subobj11c.test: Likewise.
> * tests/Makefile.am (TESTS): Updated.
> * NEWS: Updated.
> + # The following substitution is required to work around a bug
> + # of Solaris make (still present in Solaris 10).
> + # If we have a Makefile containing a file inclusion like this:
> + # include .//foo.mk
> + # Solaris make fails with a message like:
> + # make: ... can't find `/foo.mk': No such file or directory
> + # make: fatal error ... read of include file `/foo.mk' failed
> + # (even if the file `foo.mk' exists).
> + # The error disappear by collapsing the repeated slash `/'
disappears
> + # characters into a single one. However, we must be careful
> + # in doing so, since Posix lets implementations treat leading
> + # // specially (see "File System Conventions" in the Autoconf
Can we compactify this comment? Like,
# $FILE_NAME
# normalize_file_name ($FILE_NAME)
# Flatten multiple adjacent slashes in $FILE_NAME and return it.
# Solaris 10 make fails over them in an include statement.
code ...
# Leading slashes may be special, as per Posix.
- Re: [PATCH] Work around a bug in Solaris make's file-inclusion mechanism., Ralf Wildenhues, 2010/09/13
- Re: [PATCH] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/13
- [PATCH v2] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/15
- Re: [PATCH v2] Work around a bug in Solaris make's file-inclusion mechanism.,
Ralf Wildenhues <=
- Re: [PATCH v2] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/15
- Re: [PATCH v2] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/22
- [PATCH v3] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/22
- Re: [PATCH v3] Work around a bug in Solaris make's file-inclusion mechanism., Ralf Wildenhues, 2010/09/26
- Re: [PATCH v3] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/26
- [PATCH v3 2/?] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/24
- Re: [PATCH v3 2/?] Work around a bug in Solaris make's file-inclusion mechanism., Ralf Wildenhues, 2010/09/26
- Re: [PATCH v3 2/?] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/26
- Re: [PATCH v3 2/?] Work around a bug in Solaris make's file-inclusion mechanism., Ralf Wildenhues, 2010/09/26
- Re: [PATCH v3 2/?] Work around a bug in Solaris make's file-inclusion mechanism., Stefano Lattarini, 2010/09/26