coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coreutils-8.26: a one-line patch


From: Pádraig Brady
Subject: Re: coreutils-8.26: a one-line patch
Date: Sun, 22 Jan 2017 02:30:26 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 22/01/17 01:28, Nelson H. F. Beebe wrote:
> I had done builds of coreutils-8.26 in early December, but did not get
> around to looking at build logs until today.  I now have 166 builds on
> 138 systems in our lab, of which 81 passed all tests, and 37 passed
> enough test to be acceptable, so the new version is now installed on
> most of the machines in my test lab.
> 
> However, I found a show-stopper source code error here:
> 
>       % sed -n -e 169p src/copy.c
>       #if HAVE_FALLOCATE
> 
> That is wrong.  It needs to be
> 
>       #if defined(HAVE_FALLOCATE)
> 
> The reason is that on Red Hat 5 and CentOS 5 systems, lib/config.h
> gets the setting
> 
>       /* #undef HAVE_FALLOCATE */
> 
> so HAVE_FALLOCATE is undefined, and expands to an empty string,
> producing the erroneous preprocessor statement "#if", with no
> expression.


That's a standard idiom though used in other places.
I.E. it should compile file. We even disable -Wundef to allow
this common idiom.  Is the compile failing here?
What about other cases like '#if HAVE_FPSETPREC' in numfmt.c?

> In two build attempts on Mint 18.1, the tests hung just after the
> output line
> 
>       PASS: test-sched


> A "ps auxww" command showed that the next test is "test-select", and
> that was sitting quietly, consuming no CPU time, but blocking
> continuation of the build.

Noted, thanks.

> 
> On a third build on Mint 18.1, the test-select test completed normally
> (and quickly), and all tests passed (as they did one the first try on
> Mint 17 and 18.0).
> 
> It looks like test-select may have some subtle timing and/or O/S
> dependence, but it gave no problems on any other platform, so perhaps
> it isn't worth worrying about.

Thanks a lot for all the testing!

Pádraig




reply via email to

[Prev in Thread] Current Thread [Next in Thread]