1 From 8305b41bb262b6e249f2551639fa88392e152287 Mon Sep 17 00:00:00 2001
2 From: Stephan Bergmann <sbergman@redhat.com>
3 Date: Tue, 7 Sep 2021 08:47:32 +0200
4 Subject: [PATCH] extern/cloop: Missing dependencies of compilations on output
7 When building Firebird 3.0.7 as part of LibreOffice, we noticed occasional build
8 failures like <https://ci.libreoffice.org/job/gerrit_linux_clang_dbgutil/96392/>
10 > error: unable to open output file '/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/UnpackedTarball/firebird/temp/Debug/cloop/release/tests/test1/CTest.o': 'No such file or directory'
12 > Makefile:72: recipe for target '/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/UnpackedTarball/firebird/temp/Debug/cloop/release/tests/test1/CTest.o' failed
14 and while target "all" depends on target "mkdirs" (which would create all those
15 directories) in extern/cloop/Makefile, there is no order among the dependencies
16 of "all", so no guarantee that the directories are already created when the
17 compilation recipes are executed.
19 extern/cloop/Makefile | 4 ++--
20 1 file changed, 2 insertions(+), 2 deletions(-)
22 diff --git a/extern/cloop/Makefile b/extern/cloop/Makefile
23 index 3fca0c7356..c5a2b52628 100644
24 --- a/extern/cloop/Makefile
25 +++ b/extern/cloop/Makefile
26 @@ -54,10 +54,10 @@ vpath %.c $(SRC_DIRS)
27 vpath %.cpp $(SRC_DIRS)
32 $(CC) -c $$(C_FLAGS) $$< -o $$@
36 $(CXX) -c $$(CXX_FLAGS) $$< -o $$@