]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix: cannot stat tests/STUB.h No such file or directory (#707)
authorAmos Jeffries <yadij@users.noreply.github.com>
Thu, 6 Aug 2020 22:49:34 +0000 (22:49 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 8 Aug 2020 22:52:07 +0000 (22:52 +0000)
commit9ba9313a0d6d32223e590aecc90cd0bf2efbbba4
treec92e04e5a6c9ae95be5b1456cecaeb16262484ad
parentb453677bc1de131d88bf865d01afdc69dcef37a2
Fix: cannot stat tests/STUB.h No such file or directory (#707)

Since 2b5ebbe (PR #670), we have been seeing "random" build failures.

The tests/Stub.am generated by source-maintenance.sh has not included
the tests/STUB.h file for explicit distribution. The source file was
built and included only when seen as a dependency of the files using it.

When stubs are copied for use by the extra binaries from tools/
directory, there is a secondary side effect from "make -j":

* When the -j concurrency is small, tests/STUB.h gets copied during the
  first cycle, and parallel builds compiling other copied files succeed.

* When the -j concurrency is large, tests/STUB.h may be deferred to a
  later copy cycle, and the first actual compile task needing it fails
  with `cannot stat 'src/tests/STUB.h': No such file or directory`.

Add tests/STUB.h to src/Makefile.am EXTRA_DIST to restore the previous
distribution behavior (when STUB_SOURCE contained it explicitly).

Update the pinger source paths that were omitted in 2b5ebbe.
src/Makefile.am
src/icmp/Makefile.am
src/tests/Stub.am