diff options
Diffstat (limited to 'meta-oe/recipes-support/pcp')
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp-native_6.3.7.bb (renamed from meta-oe/recipes-support/pcp/pcp-native_6.0.5.bb) | 3 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp.inc | 8 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch | 30 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch | 11 | ||||
-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/fix_parallel_make.patch | 116 | ||||
-rw-r--r-- | meta-oe/recipes-support/pcp/pcp_6.3.7.bb (renamed from meta-oe/recipes-support/pcp/pcp_6.0.5.bb) | 47 |
7 files changed, 216 insertions, 32 deletions
diff --git a/meta-oe/recipes-support/pcp/pcp-native_6.0.5.bb b/meta-oe/recipes-support/pcp/pcp-native_6.3.7.bb index 2f37b099b4..806ef668e2 100644 --- a/meta-oe/recipes-support/pcp/pcp-native_6.0.5.bb +++ b/meta-oe/recipes-support/pcp/pcp-native_6.3.7.bb | |||
@@ -44,5 +44,6 @@ do_install () { | |||
44 | PCP_LIBADM_DIR=${D}/${libdir} \ | 44 | PCP_LIBADM_DIR=${D}/${libdir} \ |
45 | PCP_LIB_DIR=${D}/${libdir} \ | 45 | PCP_LIB_DIR=${D}/${libdir} \ |
46 | PCP_MAN_DIR=${D}/${mandir} \ | 46 | PCP_MAN_DIR=${D}/${mandir} \ |
47 | PCP_DOC_DIR=${D}/${docdir} | 47 | PCP_DOC_DIR=${D}/${docdir} \ |
48 | PCP_SYSTEMDUNIT_DIR=${D}${systemd_system_unitdir} | ||
48 | } | 49 | } |
diff --git a/meta-oe/recipes-support/pcp/pcp.inc b/meta-oe/recipes-support/pcp/pcp.inc index 4cafa7234b..c54c054cf8 100644 --- a/meta-oe/recipes-support/pcp/pcp.inc +++ b/meta-oe/recipes-support/pcp/pcp.inc | |||
@@ -7,12 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=37ab75b580d5aad4ada04260efa3702f \ | |||
7 | " | 7 | " |
8 | COMPATIBLE_HOST:libc-musl = "null" | 8 | COMPATIBLE_HOST:libc-musl = "null" |
9 | 9 | ||
10 | SRC_URI = "https://performancecopilot.jfrog.io/artifactory/pcp-source-release/${BP}.src.tar.gz \ | 10 | SRC_URI = "git://github.com/performancecopilot/pcp;branch=stable;protocol=https \ |
11 | file://0001-configure-Limit-the-header-search-to-sysroot.patch \ | 11 | file://0001-configure-Limit-the-header-search-to-sysroot.patch \ |
12 | file://0001-htop-Change-dependency-order-of-header-and-sourcefil.patch \ | 12 | file://0001-htop-Change-dependency-order-of-header-and-sourcefil.patch \ |
13 | file://config.linux \ | 13 | file://config.linux \ |
14 | " | 14 | " |
15 | SRC_URI[sha256sum] = "dacf92ba195f1f2ea8f40bf0c455d2cd2456273a1e30dcc3ee5b5bfd099a99ee" | 15 | |
16 | SRCREV = "d8d97b79ee47d9dfb076a3242564ed3cae04eba9" | ||
17 | |||
16 | 18 | ||
17 | inherit setuptools3-base pkgconfig autotools-brokensep | 19 | inherit setuptools3-base pkgconfig autotools-brokensep |
18 | 20 | ||
@@ -36,5 +38,3 @@ EXTRA_OECONF:append = "\ | |||
36 | PACKAGECONFIG[qt5] = "--with-qt=yes --with-qt3d=yes,--with-qt=no --with-qt3d=no,qtbase qt3d" | 38 | PACKAGECONFIG[qt5] = "--with-qt=yes --with-qt3d=yes,--with-qt=no --with-qt3d=no,qtbase qt3d" |
37 | 39 | ||
38 | PACKAGECONFIG ?= "" | 40 | PACKAGECONFIG ?= "" |
39 | |||
40 | PARALLEL_MAKE = "" | ||
diff --git a/meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch b/meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch new file mode 100644 index 0000000000..32b9252542 --- /dev/null +++ b/meta-oe/recipes-support/pcp/pcp/0001-bind2-Use-pmcpp-from-native-builds.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 4c79ea13b8456155e1acd6a53a2586b6c2c32e05 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 3 May 2025 14:27:30 -0700 | ||
4 | Subject: [PATCH] bind2: Use pmcpp from native builds | ||
5 | |||
6 | This is needed for cross compiling. Fixes | ||
7 | | ./mk.rewrite | ||
8 | | ./mk.rewrite: line 41: ../../pmcpp/pmcpp.static: No such file or directory | ||
9 | | Error: pmcpp failed | ||
10 | | make[3]: *** [GNUmakefile:54: rewrite.conf] Error 1 | ||
11 | |||
12 | Upstream-Status: Inappropriate [Cross-compiling specific] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/pmdas/bind2/mk.rewrite | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/pmdas/bind2/mk.rewrite b/src/pmdas/bind2/mk.rewrite | ||
19 | index 36e8dc1e61..142a75a824 100755 | ||
20 | --- a/src/pmdas/bind2/mk.rewrite | ||
21 | +++ b/src/pmdas/bind2/mk.rewrite | ||
22 | @@ -38,7 +38,7 @@ inlist == 1 { print }' \ | ||
23 | -e 's/[ ][ ]*\([0-9][0-9]*\)/ { pmid -> BIND2.0.\1 }/' \ | ||
24 | ) >$tmp.tmp | ||
25 | |||
26 | -if PCP_CONF=../../include/pcp.conf ../../pmcpp/pmcpp.static -P <$tmp.tmp >>rewrite.conf | ||
27 | +if PCP_CONF=../../include/pcp.conf pmcpp -P <$tmp.tmp >>rewrite.conf | ||
28 | then | ||
29 | : | ||
30 | else | ||
diff --git a/meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch b/meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch index 009dfe2d04..2915d48f04 100644 --- a/meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch +++ b/meta-oe/recipes-support/pcp/pcp/0001-htop-Change-dependency-order-of-header-and-sourcefil.patch | |||
@@ -16,14 +16,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
16 | src/pcp/htop/GNUmakefile | 4 ++-- | 16 | src/pcp/htop/GNUmakefile | 4 ++-- |
17 | 1 file changed, 2 insertions(+), 2 deletions(-) | 17 | 1 file changed, 2 insertions(+), 2 deletions(-) |
18 | 18 | ||
19 | diff --git a/src/pcp/htop/GNUmakefile b/src/pcp/htop/GNUmakefile | ||
20 | index 6b7c0c5..5153c63 100644 | ||
21 | --- a/src/pcp/htop/GNUmakefile | 19 | --- a/src/pcp/htop/GNUmakefile |
22 | +++ b/src/pcp/htop/GNUmakefile | 20 | +++ b/src/pcp/htop/GNUmakefile |
23 | @@ -186,8 +186,8 @@ CFGMETERS = $(patsubst %,pcp/meters/%,$(METERS)) | 21 | @@ -210,8 +210,8 @@ CFGCOLUMNS = $(patsubst %,pcp/columns/%, |
24 | CFGCOLUMNS = $(patsubst %,pcp/columns/%,$(COLUMNS)) | 22 | CFGSCREENS = $(patsubst %,pcp/screens/%,$(SCREENS)) |
25 | 23 | ||
26 | CFGXFILES = $(CFGMETERS) $(CFGCOLUMNS) | 24 | CFGXFILES = $(CFGMETERS) $(CFGCOLUMNS) $(CFGSCREENS) |
27 | -TOPXFILES = $(TOPCFILES) $(TOPHFILES) $(DOCFILES) | 25 | -TOPXFILES = $(TOPCFILES) $(TOPHFILES) $(DOCFILES) |
28 | -SUBXFILES = $(SUBCFILES) $(SUBHFILES) | 26 | -SUBXFILES = $(SUBCFILES) $(SUBHFILES) |
29 | +TOPXFILES = $(TOPHFILES) $(TOPCFILES) $(DOCFILES) | 27 | +TOPXFILES = $(TOPHFILES) $(TOPCFILES) $(DOCFILES) |
@@ -31,6 +29,3 @@ index 6b7c0c5..5153c63 100644 | |||
31 | CFILES = $(TOPCFILES) $(SUBCFILES) | 29 | CFILES = $(TOPCFILES) $(SUBCFILES) |
32 | HFILES = $(TOPHFILES) $(SUBHFILES) | 30 | HFILES = $(TOPHFILES) $(SUBHFILES) |
33 | LDIRT = $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) \ | 31 | LDIRT = $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) \ |
34 | -- | ||
35 | 2.41.0 | ||
36 | |||
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..2c3cf696ed --- /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: Backport [https://github.com/performancecopilot/pcp/commit/0ca303467ce382127cd9676e288bf7690a93f084] | ||
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/fix_parallel_make.patch b/meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch index 9cb649a594..7bc045949b 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,113 @@ | |||
1 | Upstream-Status: Pending | 1 | From 92add24ccfc7e643349a1c091957595ce25a9915 Mon Sep 17 00:00:00 2001 |
2 | From: Yoann Congal <yoann.congal@smile.fr> | ||
3 | Date: Tue, 27 May 2025 08:45:36 +0200 | ||
4 | Subject: [PATCH] QA: cleanup localconfig.h build dependencies | ||
2 | 5 | ||
6 | Some QA binaries include localconfig.h but there is no explicit dependencies | ||
7 | between the binary build and the localconfig.h generation. | ||
8 | On heavily loaded systems, this can result in the binary being built | ||
9 | before localconf.h and a compilation error, e.g: | ||
10 | | username.c:8:10: fatal error: localconfig.h: No such file or directory | ||
11 | | 8 | #include "localconfig.h" | ||
12 | | | ^~~~~~~~~~~~~~~ | ||
13 | | compilation terminated. | ||
14 | |||
15 | This can be reproduced by adding "sleep 30" at the start of the | ||
16 | localconfig.h generation rule. | ||
17 | |||
18 | Fix this by adding the missing Makefile rule dependency between the | ||
19 | binary (or its pre-link .o) and localconfig.h. | ||
20 | |||
21 | Also remove an un-needed scale.o->localconfig.h dependency. | ||
22 | |||
23 | Upstream-Status: Backport [https://github.com/performancecopilot/pcp/commit/8de7bbb06703f224b72fe0994acde3189b742fd2] | ||
24 | Signed-off-by: Yoann Congal <yoann.congal@smile.fr> | ||
25 | --- | ||
26 | qa/src/GNUlocaldefs | 22 +++++++++++----------- | ||
27 | 1 file changed, 11 insertions(+), 11 deletions(-) | ||
28 | |||
29 | diff --git a/qa/src/GNUlocaldefs b/qa/src/GNUlocaldefs | ||
30 | index f83826068..e47fbfd72 100644 | ||
3 | --- a/qa/src/GNUlocaldefs | 31 | --- a/qa/src/GNUlocaldefs |
4 | +++ b/qa/src/GNUlocaldefs | 32 | +++ b/qa/src/GNUlocaldefs |
5 | @@ -728,7 +728,7 @@ scale.o: localconfig.h | 33 | @@ -299,7 +299,7 @@ diowr: diowr.c |
34 | rm -f $@ | ||
35 | $(CCF) $(CDEFS) -o $@ diowr.c | ||
36 | |||
37 | -endian: endian.c | ||
38 | +endian: endian.c localconfig.h | ||
39 | rm -f $@ | ||
40 | $(CCF) $(CDEFS) -o $@ endian.c | ||
41 | |||
42 | @@ -331,15 +331,15 @@ exercise: exercise.c | ||
43 | rm -f $@ | ||
44 | $(CCF) $(CDEFS) -o $@ exercise.c $(LDLIBS) | ||
45 | |||
46 | -chkacc1: chkacc1.c | ||
47 | +chkacc1: chkacc1.c localconfig.h | ||
48 | rm -f $@ | ||
49 | $(CCF) $(CDEFS) -o $@ chkacc1.c $(LDLIBS) | ||
50 | |||
51 | -chkacc2: chkacc2.c | ||
52 | +chkacc2: chkacc2.c localconfig.h | ||
53 | rm -f $@ | ||
54 | $(CCF) $(CDEFS) -o $@ chkacc2.c $(LDLIBS) | ||
55 | |||
56 | -chkacc3: chkacc3.c | ||
57 | +chkacc3: chkacc3.c localconfig.h | ||
58 | rm -f $@ | ||
59 | $(CCF) $(CDEFS) -o $@ chkacc3.c $(LDLIBS) | ||
60 | |||
61 | @@ -489,7 +489,7 @@ pmdashutdown: pmdashutdown.c | ||
62 | rm -f $@ | ||
63 | $(CCF) $(CDEFS) -o $@ $@.c $(LDLIBS) -lpcp_pmda | ||
64 | |||
65 | -dumb_pmda: dumb_pmda.c | ||
66 | +dumb_pmda: dumb_pmda.c localconfig.h | ||
67 | $(CCF) $(LCDEFS) $(LCOPTS) -o $@ $@.c $(LDLIBS) -lpcp_pmda | ||
68 | |||
69 | pmdacache: pmdacache.c | ||
70 | @@ -633,7 +633,7 @@ else | ||
71 | $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS) | ||
72 | endif | ||
73 | |||
74 | -multithread2: multithread2.c | ||
75 | +multithread2: multithread2.c localconfig.h | ||
76 | rm -f $@ | ||
77 | $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS) | ||
78 | |||
79 | @@ -786,7 +786,6 @@ $(NVIDIAQALIB): nvidia-ml.o | ||
80 | endif | ||
81 | |||
82 | arch_maxfd.o: localconfig.h | ||
83 | -scale.o: localconfig.h | ||
84 | |||
6 | 779246.o: libpcp.h | 85 | 779246.o: libpcp.h |
7 | aggrstore.o: libpcp.h | 86 | aggrstore.o: libpcp.h |
8 | badmmv.o: libpcp.h | 87 | @@ -847,14 +846,14 @@ multithread14.o: libpcp.h |
9 | -chkacc1.o: libpcp.h | 88 | nameall.o: libpcp.h |
10 | +chkacc1.o: libpcp.h localconfig.h | 89 | parsehostattrs.o: libpcp.h |
11 | chkacc2.o: libpcp.h | 90 | parsehostspec.o: libpcp.h |
12 | chkacc3.o: libpcp.h | 91 | -pdubufbounds.o: libpcp.h |
13 | chkacc4.o: libpcp.h | 92 | -pducheck.o: libpcp.h |
93 | +pdubufbounds.o: libpcp.h localconfig.h | ||
94 | +pducheck.o: libpcp.h localconfig.h | ||
95 | pducrash.o: libpcp.h | ||
96 | -pdu-server.o: libpcp.h | ||
97 | +pdu-server.o: libpcp.h localconfig.h | ||
98 | pmcdgone.o: libpcp.h | ||
99 | pmlcmacro.o: libpcp.h | ||
100 | pmnsinarchives.o: libpcp.h | ||
101 | -pmnsunload.o: libpcp.h | ||
102 | +pmnsunload.o: libpcp.h localconfig.h | ||
103 | proc_test.o: libpcp.h | ||
104 | qa_libpcp_compat.o: libpcp.h | ||
105 | qa_timezone.o: libpcp.h | ||
106 | @@ -874,6 +873,7 @@ torture_pmns.o: libpcp.h | ||
107 | tztest.o: libpcp.h | ||
108 | unpack.o: libpcp.h | ||
109 | unpickargs.o: libpcp.h | ||
110 | +username.o: localconfig.h | ||
111 | xarch.o: libpcp.h | ||
112 | xlog.o: libpcp.h | ||
113 | xmktime.o: libpcp.h | ||
diff --git a/meta-oe/recipes-support/pcp/pcp_6.0.5.bb b/meta-oe/recipes-support/pcp/pcp_6.3.7.bb index 6a93b2ec90..65efac06be 100644 --- a/meta-oe/recipes-support/pcp/pcp_6.0.5.bb +++ b/meta-oe/recipes-support/pcp/pcp_6.3.7.bb | |||
@@ -13,12 +13,17 @@ DEPENDS += "perl-native bison-native flex-native python3-native python3-setuptoo | |||
13 | SRC_URI += "file://0001-Remove-unsuitble-part-for-cross-compile.patch \ | 13 | 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 \ | ||
17 | file://0001-pcp-htop-fix-header-build-race-condition.patch \ | ||
16 | " | 18 | " |
17 | 19 | ||
18 | export PCP_DIR="${RECIPE_SYSROOT_NATIVE}" | 20 | export PCP_DIR = "${RECIPE_SYSROOT_NATIVE}" |
19 | #export PCP_RUN_DIR="${RECIPE_SYSROOT_NATIVE}" | 21 | #export PCP_RUN_DIR = "${RECIPE_SYSROOT_NATIVE}" |
20 | EXTRA_OEMAKE = "CC="${CC}" LD="${LD}"" | 22 | EXTRA_OEMAKE = '\ |
21 | inherit useradd systemd features_check python3targetconfig | 23 | CC="${CC}" LD="${LD}" CROSS_COMPILING="yes" \ |
24 | PCP_SYSTEMDUNIT_DIR=${systemd_system_unitdir} \ | ||
25 | ' | ||
26 | inherit useradd systemd features_check python3targetconfig gtk-icon-cache | ||
22 | 27 | ||
23 | # Needs libx11 | 28 | # Needs libx11 |
24 | REQUIRED_DISTRO_FEATURES = "x11" | 29 | REQUIRED_DISTRO_FEATURES = "x11" |
@@ -48,11 +53,12 @@ USERADD_PARAM:${PN}-testsuite = "--system --home ${localstatedir}/lib/pcp/testsu | |||
48 | --user-group pcpqa" | 53 | --user-group pcpqa" |
49 | 54 | ||
50 | RDEPENDS:${PN} += "perl" | 55 | RDEPENDS:${PN} += "perl" |
56 | RDEPENDS:${PN}-xsos += "${PN} bash" | ||
51 | RDEPENDS:${PN}-testsuite += "${PN} bash perl" | 57 | RDEPENDS:${PN}-testsuite += "${PN} bash perl" |
52 | RDEPENDS:python3-${PN} += "${PN} python3" | 58 | RDEPENDS:python3-${PN} += "${PN} python3" |
53 | 59 | ||
54 | do_configure:prepend () { | 60 | do_configure:prepend () { |
55 | cp ${WORKDIR}/config.linux ${B} | 61 | cp ${UNPACKDIR}/config.linux ${B} |
56 | rm -rf ${S}/include/pcp/configsz.h | 62 | rm -rf ${S}/include/pcp/configsz.h |
57 | rm -rf ${S}/include/pcp/platformsz.h | 63 | rm -rf ${S}/include/pcp/platformsz.h |
58 | export SED=${TMPDIR}/hosttools/sed | 64 | export SED=${TMPDIR}/hosttools/sed |
@@ -69,6 +75,7 @@ do_compile:prepend() { | |||
69 | ${S}/src/include/builddefs | 75 | ${S}/src/include/builddefs |
70 | sed -i -e "s,TOPDIR)/python3-pcp.list,TOPDIR)/python3-pcp.list --install-lib=${PYTHON_SITEPACKAGES_DIR},g" ${S}/src/python/GNUmakefile | 76 | sed -i -e "s,TOPDIR)/python3-pcp.list,TOPDIR)/python3-pcp.list --install-lib=${PYTHON_SITEPACKAGES_DIR},g" ${S}/src/python/GNUmakefile |
71 | export PYTHON=python3 | 77 | export PYTHON=python3 |
78 | export PATH=${PATH}:${RECIPE_SYSROOT_NATIVE}${libexecdir}/pcp/bin | ||
72 | #export PYTHON3=${STAGING_BINDIR_NATIVE}/python3-native/python3 | 79 | #export PYTHON3=${STAGING_BINDIR_NATIVE}/python3-native/python3 |
73 | } | 80 | } |
74 | 81 | ||
@@ -85,17 +92,18 @@ do_install () { | |||
85 | rm -rf ${D}${localstatedir}/lib/pcp/pmcd | 92 | rm -rf ${D}${localstatedir}/lib/pcp/pmcd |
86 | rm -rf ${D}${localstatedir}/lib/pcp/tmp | 93 | rm -rf ${D}${localstatedir}/lib/pcp/tmp |
87 | rm -rf ${D}${localstatedir}/run | 94 | rm -rf ${D}${localstatedir}/run |
88 | mv ${D}${docdir}/C* ${D}${docdir}/pcp-doc/ | ||
89 | mv ${D}${docdir}/I* ${D}${docdir}/pcp-doc/ | ||
90 | mv ${D}${docdir}/R* ${D}${docdir}/pcp-doc/ | ||
91 | mv ${D}${docdir}/V* ${D}${docdir}/pcp-doc/ | ||
92 | sed -i "s#PCP_AWK_PROG=.*#PCP_AWK_PROG=awk#" ${D}/${sysconfdir}/pcp.conf | 95 | sed -i "s#PCP_AWK_PROG=.*#PCP_AWK_PROG=awk#" ${D}/${sysconfdir}/pcp.conf |
93 | sed -i "s#PCP_SORT_PROG=.*#PCP_SORT_PROG=sort#" ${D}/${sysconfdir}/pcp.conf | 96 | sed -i "s#PCP_SORT_PROG=.*#PCP_SORT_PROG=sort#" ${D}/${sysconfdir}/pcp.conf |
94 | sed -i "s#PCP_ECHO_PROG=.*#PCP_ECHO_PROG=echo#" ${D}/${sysconfdir}/pcp.conf | 97 | sed -i "s#PCP_ECHO_PROG=.*#PCP_ECHO_PROG=echo#" ${D}/${sysconfdir}/pcp.conf |
95 | sed -i "s#PCP_WHICH_PROG=.*#PCP_WHICH_PROG=which#" ${D}/${sysconfdir}/pcp.conf | 98 | sed -i "s#PCP_WHICH_PROG=.*#PCP_WHICH_PROG=which#" ${D}/${sysconfdir}/pcp.conf |
99 | sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}/${sysconfdir}/pcp.conf | ||
100 | sed -i -e 's#${RECIPE_SYSROOT}##g' \ | ||
101 | -e 's#${RECIPE_SYSROOT_NATIVE}##g' \ | ||
102 | -e 's#${TMPDIR}##g' ${D}${includedir}/pcp/builddefs | ||
96 | } | 103 | } |
97 | 104 | ||
98 | PACKAGES += " ${PN}-export-zabbix-agent ${PN}-testsuite \ | 105 | PACKAGE_BEFORE_PN = "${PN}-xsos" |
106 | PACKAGES =+ " ${PN}-export-zabbix-agent ${PN}-testsuite \ | ||
99 | libpcp-gui2 libpcp-gui2-dev \ | 107 | libpcp-gui2 libpcp-gui2-dev \ |
100 | libpcp-import1 libpcp-archive1 \ | 108 | libpcp-import1 libpcp-archive1 \ |
101 | libpcp-mmv1 libpcp-mmv1-dev \ | 109 | libpcp-mmv1 libpcp-mmv1-dev \ |
@@ -105,7 +113,7 @@ PACKAGES += " ${PN}-export-zabbix-agent ${PN}-testsuite \ | |||
105 | libpcp3 libpcp3-dev python3-${PN}\ | 113 | libpcp3 libpcp3-dev python3-${PN}\ |
106 | " | 114 | " |
107 | FILES:libpcp-gui2 = "${libdir}/libpcp_gui.so.2 \ | 115 | FILES:libpcp-gui2 = "${libdir}/libpcp_gui.so.2 \ |
108 | " | 116 | " |
109 | FILES:libpcp-archive1 = "${libdir}/libpcp_archive.so.1 \ | 117 | FILES:libpcp-archive1 = "${libdir}/libpcp_archive.so.1 \ |
110 | " | 118 | " |
111 | FILES:libpcp-gui2-dev = " \ | 119 | FILES:libpcp-gui2-dev = " \ |
@@ -114,6 +122,8 @@ FILES:libpcp-gui2-dev = " \ | |||
114 | ${includedir}/pmafm.h \ | 122 | ${includedir}/pmafm.h \ |
115 | ${includedir}/pmtime.h \ | 123 | ${includedir}/pmtime.h \ |
116 | " | 124 | " |
125 | INSANE_SKIP:libpcp-gui2-dev = "staticdev" | ||
126 | |||
117 | FILES:libpcp-mmv1 = " \ | 127 | FILES:libpcp-mmv1 = " \ |
118 | ${libdir}/libpcp_mmv.so.1 \ | 128 | ${libdir}/libpcp_mmv.so.1 \ |
119 | " | 129 | " |
@@ -126,6 +136,8 @@ FILES:libpcp-mmv1-dev = " \ | |||
126 | ${datadir}/man/man3/mmv_* \ | 136 | ${datadir}/man/man3/mmv_* \ |
127 | ${datadir}/man/man5/mmv.5.gz \ | 137 | ${datadir}/man/man5/mmv.5.gz \ |
128 | " | 138 | " |
139 | INSANE_SKIP:libpcp-mmv1-dev = "staticdev" | ||
140 | |||
129 | FILES:libpcp-import1 = " \ | 141 | FILES:libpcp-import1 = " \ |
130 | ${libdir}/libpcp_import.so.1 \ | 142 | ${libdir}/libpcp_import.so.1 \ |
131 | " | 143 | " |
@@ -141,6 +153,8 @@ FILES:libpcp-pmda3-dev = " \ | |||
141 | ${datadir}/man/man3/PMDA.3.gz \ | 153 | ${datadir}/man/man3/PMDA.3.gz \ |
142 | ${datadir}/man/man3/pmda* \ | 154 | ${datadir}/man/man3/pmda* \ |
143 | " | 155 | " |
156 | INSANE_SKIP:libpcp-pmda3-dev = "staticdev" | ||
157 | |||
144 | FILES:libpcp-trace2 = " \ | 158 | FILES:libpcp-trace2 = " \ |
145 | ${libdir}/libpcp_trace.so.2 \ | 159 | ${libdir}/libpcp_trace.so.2 \ |
146 | " | 160 | " |
@@ -151,6 +165,8 @@ FILES:libpcp-trace2-dev = " \ | |||
151 | ${libdir}/libpcp_trace.so \ | 165 | ${libdir}/libpcp_trace.so \ |
152 | ${datadir}/man/man3/pmtrace* \ | 166 | ${datadir}/man/man3/pmtrace* \ |
153 | " | 167 | " |
168 | INSANE_SKIP:libpcp-trace2-dev = "staticdev" | ||
169 | |||
154 | FILES:libpcp-web1 = " \ | 170 | FILES:libpcp-web1 = " \ |
155 | ${libdir}/libpcp_web.so.1 \ | 171 | ${libdir}/libpcp_web.so.1 \ |
156 | " | 172 | " |
@@ -162,10 +178,15 @@ FILES:libpcp-web1-dev = " \ | |||
162 | ${datadir}/man/man3/pmhttp* \ | 178 | ${datadir}/man/man3/pmhttp* \ |
163 | ${datadir}/man/man3/pmjson* \ | 179 | ${datadir}/man/man3/pmjson* \ |
164 | " | 180 | " |
181 | INSANE_SKIP:libpcp-web1-dev = "staticdev" | ||
182 | |||
165 | FILES:libpcp3 = " \ | 183 | FILES:libpcp3 = " \ |
166 | ${libdir}/libpcp.so.3 \ | 184 | ${libdir}/libpcp.so.3 \ |
167 | " | 185 | " |
168 | 186 | ||
187 | FILES:${PN}-xsos = " \ | ||
188 | ${libexecdir}/pcp/bin/pcp-xsos \ | ||
189 | " | ||
169 | FILES:${PN} = " \ | 190 | FILES:${PN} = " \ |
170 | ${sysconfdir}/pcp \ | 191 | ${sysconfdir}/pcp \ |
171 | ${sysconfdir}/cron.d \ | 192 | ${sysconfdir}/cron.d \ |
@@ -175,6 +196,7 @@ FILES:${PN} = " \ | |||
175 | ${datadir}/bash-completion \ | 196 | ${datadir}/bash-completion \ |
176 | ${datadir}/pcp-gui \ | 197 | ${datadir}/pcp-gui \ |
177 | ${datadir}/zsh \ | 198 | ${datadir}/zsh \ |
199 | ${datadir}/icons \ | ||
178 | ${systemd_system_unitdir}/ \ | 200 | ${systemd_system_unitdir}/ \ |
179 | ${libdir}/pcp/ \ | 201 | ${libdir}/pcp/ \ |
180 | ${libdir}/sysusers.d/pcp.conf \ | 202 | ${libdir}/sysusers.d/pcp.conf \ |
@@ -188,6 +210,7 @@ FILES:${PN} = " \ | |||
188 | ${localstatedir}/lib/pcp/pmdas/ \ | 210 | ${localstatedir}/lib/pcp/pmdas/ \ |
189 | ${localstatedir}/lib/pcp/pmns \ | 211 | ${localstatedir}/lib/pcp/pmns \ |
190 | ${libdir}/libpcp_fault.so.3 \ | 212 | ${libdir}/libpcp_fault.so.3 \ |
213 | ${nonarch_libdir}/tmpfiles.d/pcp-reboot-init.conf \ | ||
191 | " | 214 | " |
192 | 215 | ||
193 | FILES:${PN}-export-zabbix-agent += " \ | 216 | FILES:${PN}-export-zabbix-agent += " \ |
@@ -196,6 +219,8 @@ FILES:${PN}-export-zabbix-agent += " \ | |||
196 | ${mandir}/man3/zbxpcp.3.gz \ | 219 | ${mandir}/man3/zbxpcp.3.gz \ |
197 | ${libdir}/zabbix \ | 220 | ${libdir}/zabbix \ |
198 | " | 221 | " |
222 | INSANE_SKIP:${PN}-export-zabbix-agent = "dev-so" | ||
223 | |||
199 | FILES:${PN}-testsuite = "${localstatedir}/lib/pcp/testsuite/ ${libdir}/sysusers.d/pcp-testsuite.conf" | 224 | FILES:${PN}-testsuite = "${localstatedir}/lib/pcp/testsuite/ ${libdir}/sysusers.d/pcp-testsuite.conf" |
200 | FILES:python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}" | 225 | FILES:python3-${PN} = "${PYTHON_SITEPACKAGES_DIR}" |
201 | FILES:${PN}-dev += " \ | 226 | FILES:${PN}-dev += " \ |