diff options
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp/0001-pcp-htop-fix-header-build-race-condition.patch | 33 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp_6.3.7.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/pcp/pcp/0001-pcp-htop-fix-header-build-race-condition.patch b/meta-oe/recipes-support/pcp/pcp/0001-pcp-htop-fix-header-build-race-condition.patch new file mode 100644 index 0000000000..48880fbb4d --- /dev/null +++ b/meta-oe/recipes-support/pcp/pcp/0001-pcp-htop-fix-header-build-race-condition.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From d04ea418c5fcfec2f6fbb2dd9f982ddf12c5be87 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yoann Congal <yoann.congal@smile.fr> | ||
3 | Date: Tue, 3 Jun 2025 10:02:58 +0200 | ||
4 | Subject: [PATCH] pcp-htop: fix header build race condition | ||
5 | |||
6 | .c and .h files are soft-linked before being compiled. Under heavy load | ||
7 | or a build with a high CPU count, the compilation can start before | ||
8 | header files are softlinked, resulting in a build error: | ||
9 | | pcp-htop.c:13:10: fatal error: CommandLine.h: No such file or directory | ||
10 | | 13 | #include "CommandLine.h" | ||
11 | | | ^~~~~~~~~~~~~~~ | ||
12 | |||
13 | Fix this by adding the make dependency between object files and the | ||
14 | headers. | ||
15 | |||
16 | Upstream-Status: Submitted [https://github.com/performancecopilot/pcp/pull/2217] | ||
17 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
18 | --- | ||
19 | src/pcp/htop/GNUmakefile | 1 + | ||
20 | 1 file changed, 1 insertion(+) | ||
21 | |||
22 | diff --git a/src/pcp/htop/GNUmakefile b/src/pcp/htop/GNUmakefile | ||
23 | index 3e29638d6..898f0b766 100644 | ||
24 | --- a/src/pcp/htop/GNUmakefile | ||
25 | +++ b/src/pcp/htop/GNUmakefile | ||
26 | @@ -224,6 +224,7 @@ default: build-me | ||
27 | include $(BUILDRULES) | ||
28 | |||
29 | ifeq "$(HAVE_NCURSESW)" "true" | ||
30 | +$(OBJECTS): $(HFILES) | ||
31 | build-me: $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) $(CMDTARGET) $(DISTLINKS) $(MAN_PAGES) | ||
32 | |||
33 | install: default | ||
diff --git a/meta-oe/recipes-support/pcp/pcp_6.3.7.bb b/meta-oe/recipes-support/pcp/pcp_6.3.7.bb index c390b9eec2..65efac06be 100644 --- a/meta-oe/recipes-support/pcp/pcp_6.3.7.bb +++ b/meta-oe/recipes-support/pcp/pcp_6.3.7.bb | |||
@@ -14,6 +14,7 @@ SRC_URI += "file://0001-Remove-unsuitble-part-for-cross-compile.patch \ | |||
14 | file://pass-options-to-AR.patch \ | 14 | file://pass-options-to-AR.patch \ |
15 | file://fix_parallel_make.patch \ | 15 | file://fix_parallel_make.patch \ |
16 | file://0001-bind2-Use-pmcpp-from-native-builds.patch \ | 16 | file://0001-bind2-Use-pmcpp-from-native-builds.patch \ |
17 | file://0001-pcp-htop-fix-header-build-race-condition.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | export PCP_DIR = "${RECIPE_SYSROOT_NATIVE}" | 20 | export PCP_DIR = "${RECIPE_SYSROOT_NATIVE}" |