summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch118
1 files changed, 110 insertions, 8 deletions
diff --git a/meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch b/meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch
index 9cb649a594..9680e29944 100644
--- a/meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch
+++ b/meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch
@@ -1,13 +1,115 @@
1Upstream-Status: Pending 1From 92add24ccfc7e643349a1c091957595ce25a9915 Mon Sep 17 00:00:00 2001
2From: Yoann Congal <yoann.congal@smile.fr>
3Date: Tue, 27 May 2025 08:45:36 +0200
4Subject: [PATCH] QA: cleanup localconfig.h build dependencies
2 5
6From: Yoann Congal <yoann.congal@smile.fr>
7
8Some QA binaries include localconfig.h but there is no explicit dependencies
9between the binary build and the localconfig.h generation.
10On heavily loaded systems, this can result in the binary being built
11before localconf.h and a compilation error, e.g:
12| username.c:8:10: fatal error: localconfig.h: No such file or directory
13| 8 | #include "localconfig.h"
14| | ^~~~~~~~~~~~~~~
15| compilation terminated.
16
17This can be reproduced by adding "sleep 30" at the start of the
18localconfig.h generation rule.
19
20Fix this by adding the missing Makefile rule dependency between the
21binary (or its pre-link .o) and localconfig.h.
22
23Also remove an un-needed scale.o->localconfig.h dependency.
24
25Upstream-Status: Submitted [https://github.com/performancecopilot/pcp/pull/2213]
26Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
27---
28 qa/src/GNUlocaldefs | 22 +++++++++++-----------
29 1 file changed, 11 insertions(+), 11 deletions(-)
30
31diff --git a/qa/src/GNUlocaldefs b/qa/src/GNUlocaldefs
32index f83826068..e47fbfd72 100644
3--- a/qa/src/GNUlocaldefs 33--- a/qa/src/GNUlocaldefs
4+++ b/qa/src/GNUlocaldefs 34+++ b/qa/src/GNUlocaldefs
5@@ -728,7 +728,7 @@ scale.o: localconfig.h 35@@ -299,7 +299,7 @@ diowr: diowr.c
36 rm -f $@
37 $(CCF) $(CDEFS) -o $@ diowr.c
38
39-endian: endian.c
40+endian: endian.c localconfig.h
41 rm -f $@
42 $(CCF) $(CDEFS) -o $@ endian.c
43
44@@ -331,15 +331,15 @@ exercise: exercise.c
45 rm -f $@
46 $(CCF) $(CDEFS) -o $@ exercise.c $(LDLIBS)
47
48-chkacc1: chkacc1.c
49+chkacc1: chkacc1.c localconfig.h
50 rm -f $@
51 $(CCF) $(CDEFS) -o $@ chkacc1.c $(LDLIBS)
52
53-chkacc2: chkacc2.c
54+chkacc2: chkacc2.c localconfig.h
55 rm -f $@
56 $(CCF) $(CDEFS) -o $@ chkacc2.c $(LDLIBS)
57
58-chkacc3: chkacc3.c
59+chkacc3: chkacc3.c localconfig.h
60 rm -f $@
61 $(CCF) $(CDEFS) -o $@ chkacc3.c $(LDLIBS)
62
63@@ -489,7 +489,7 @@ pmdashutdown: pmdashutdown.c
64 rm -f $@
65 $(CCF) $(CDEFS) -o $@ $@.c $(LDLIBS) -lpcp_pmda
66
67-dumb_pmda: dumb_pmda.c
68+dumb_pmda: dumb_pmda.c localconfig.h
69 $(CCF) $(LCDEFS) $(LCOPTS) -o $@ $@.c $(LDLIBS) -lpcp_pmda
70
71 pmdacache: pmdacache.c
72@@ -633,7 +633,7 @@ else
73 $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS)
74 endif
75
76-multithread2: multithread2.c
77+multithread2: multithread2.c localconfig.h
78 rm -f $@
79 $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS)
80
81@@ -786,7 +786,6 @@ $(NVIDIAQALIB): nvidia-ml.o
82 endif
83
84 arch_maxfd.o: localconfig.h
85-scale.o: localconfig.h
86
6 779246.o: libpcp.h 87 779246.o: libpcp.h
7 aggrstore.o: libpcp.h 88 aggrstore.o: libpcp.h
8 badmmv.o: libpcp.h 89@@ -847,14 +846,14 @@ multithread14.o: libpcp.h
9-chkacc1.o: libpcp.h 90 nameall.o: libpcp.h
10+chkacc1.o: libpcp.h localconfig.h 91 parsehostattrs.o: libpcp.h
11 chkacc2.o: libpcp.h 92 parsehostspec.o: libpcp.h
12 chkacc3.o: libpcp.h 93-pdubufbounds.o: libpcp.h
13 chkacc4.o: libpcp.h 94-pducheck.o: libpcp.h
95+pdubufbounds.o: libpcp.h localconfig.h
96+pducheck.o: libpcp.h localconfig.h
97 pducrash.o: libpcp.h
98-pdu-server.o: libpcp.h
99+pdu-server.o: libpcp.h localconfig.h
100 pmcdgone.o: libpcp.h
101 pmlcmacro.o: libpcp.h
102 pmnsinarchives.o: libpcp.h
103-pmnsunload.o: libpcp.h
104+pmnsunload.o: libpcp.h localconfig.h
105 proc_test.o: libpcp.h
106 qa_libpcp_compat.o: libpcp.h
107 qa_timezone.o: libpcp.h
108@@ -874,6 +873,7 @@ torture_pmns.o: libpcp.h
109 tztest.o: libpcp.h
110 unpack.o: libpcp.h
111 unpickargs.o: libpcp.h
112+username.o: localconfig.h
113 xarch.o: libpcp.h
114 xlog.o: libpcp.h
115 xmktime.o: libpcp.h