From 1435d76cda2919225cb4bd722401a26519cd5f84 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 30 Sep 2026 12:37:57 +0100 Subject: [PATCH] postgresql: work around occasional build failures due to a dependency race There are two routes to building jsonapi.o, and one of them adds CPPFLAGS that then break the build. Ensure the correct route is always taken by explicitly building it first. This has been reported upstream and more details are in the linked mail. Signed-off-by: Ross Burton Signed-off-by: Khem Raj --- meta-oe/recipes-dbs/postgresql/postgresql.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-oe/recipes-dbs/postgresql/postgresql.inc b/meta-oe/recipes-dbs/postgresql/postgresql.inc index 5f255be33d..76e90df765 100644 --- a/meta-oe/recipes-dbs/postgresql/postgresql.inc +++ b/meta-oe/recipes-dbs/postgresql/postgresql.inc @@ -181,6 +181,13 @@ do_configure() { fi } +# There's a makefile dependency race that causes occasional build +# failures, so build this object first to avoid the race. +# https://www.postgresql.org/message-id/CAAnfSTv_Vj9oH2vUs56KwDdbmfrOhuTb1o%2B6TXzBW_uUjOJpkg%40mail.gmail.com +do_compile:prepend() { + make -C src/common jsonapi.o +} + do_compile:append() { oe_runmake -C contrib all