[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make 3.81 MinGW port and testsuite working with MSYS
From: |
Alessandro Vesely |
Subject: |
Re: make 3.81 MinGW port and testsuite working with MSYS |
Date: |
Sat, 26 Feb 2005 12:57:53 +0100 |
"J. Grant" wrote:
> Ok, attached is the uncompressed 31,174 bytes file, with md5sum:
> 8d7bf7d043711b4e16e7947c748b65d1 make-3.81beta2.MinGW.support.patch
> [...]
> + # do not change the make_path on W32 (MinGW/MSYS), because the following
> shell code does not
> work
> + if ($port_type =~ !/W32/)
> + {
> + $make_path = `sh -c 'echo "all:;address@hidden \\\$(MAKE)" |
> $make_path -f-'`;
It worked for me (win98 + MinGW/MSYS) after adding a test for ferror(stdin).
That doesn't really fix the bug, however it doesn't worsen make's code either,
and is enough for running that shell snippet.
--- main.original.c Wed Feb 16 06:03:42 2005
+++ main.c Mon Feb 21 16:38:28 2005
@@ -1438,7 +1438,7 @@
outfile = open_tmpfile (&stdin_nm, template);
if (outfile == 0)
pfatal_with_name (_("fopen (temporary file)"));
- while (!feof (stdin))
+ while (!feof (stdin) && !ferror(stdin))
{
char buf[2048];
unsigned int n = fread (buf, 1, sizeof (buf), stdin);
If I additionally change test_driver so as be forgiving when differences
only consist slashes (coding something like $slurp =~ s/\\/\//gm;) I get
a total of 24 Tests in 15 Categories Failed. Some of those failures still
depend on setup issues and shouldn't be considered errors. E.g. consider
features/escape that uses a lowercase `path' as a variable name...
- Re: make 3.81 MinGW port and testsuite working with MSYS, (continued)
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/25
- Re: make 3.81 MinGW port and testsuite working with MSYS, Eli Zaretskii, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS, Eli Zaretskii, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/26
- Re: make 3.81 MinGW port and testsuite working with MSYS, Eli Zaretskii, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/27
- Re: make 3.81 MinGW port and testsuite working with MSYS, J. Grant, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS, Alessandro Vesely, 2005/02/28
- Re: make 3.81 MinGW port and testsuite working with MSYS,
Alessandro Vesely <=
- Re: make 3.81 MinGW port and testsuite working with MSYS, Paul D. Smith, 2005/02/26