similarity index 100%
rename from meta-oe/recipes-support/pcp/pcp-native_6.3.8.bb
rename to meta-oe/recipes-support/pcp/pcp-native_7.2.2.bb
@@ -7,13 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=37ab75b580d5aad4ada04260efa3702f \
"
COMPATIBLE_HOST:libc-musl = "null"
-SRC_URI = "git://github.com/performancecopilot/pcp;branch=stable;protocol=https;tag=${PV} \
+SRC_URI = "git://github.com/performancecopilot/pcp;branch=main;protocol=https;tag=${PV} \
file://0001-configure-Limit-the-header-search-to-sysroot.patch \
file://0001-htop-Change-dependency-order-of-header-and-sourcefil.patch \
file://config.linux \
"
-SRCREV = "7b0943ade0bcecaf50ed4b4c2cc9084150420eff"
+SRCREV = "87fc51f5ea667b1b532a03752b1a9091b5d6b3de"
+UPSTREAM_CHECK_GITTAGREGEX = "^(?P<pver>\d+(\.\d+)+)$"
inherit setuptools3-base pkgconfig autotools-brokensep
@@ -23,12 +24,9 @@ CACHED_CONFIGUREVARS = "PACKAGE_DISTRIBUTION=arch"
EXTRA_OECONF:append = "\
--with-dstat-symlink=yes \
--with-infiniband=no \
- --with-python=no \
--with-perl=no \
--with-python3=yes \
- --with-pmdajson=no \
--with-perfevent=no \
- --with-pmdabcc=yes \
--with-rundir=${localstatedir}/run \
--with-sysconfigdir=${sysconfdir} \
--with-logdir=${localstatedir}/log \
@@ -7,28 +7,32 @@ Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
- configure.ac | 6 ------
- src/libpcp/src/GNUmakefile | 1 -
- 2 files changed, 7 deletions(-)
+ configure.ac | 8 +-------
+ src/libpcp/src/GNUmakefile | 2 --
+ 2 files changed, 1 insertion(+), 9 deletions(-)
+diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
-@@ -607,12 +607,6 @@ fi
+@@ -715,13 +715,7 @@ fi
which=$WHICH
AC_SUBST(which)
-if test -z "$AR"; then
-- AC_PATH_PROGS(AR, [gcc-ar ar], /usr/bin/ar)
+- AC_PATH_PROGS(AR, [gcc-ar ar], ar)
-fi
--if test ! -x "$AR"; then
+-ar=`$which $AR`
+-if test ! -x "$ar"; then
- AC_MSG_ERROR([cannot find a valid 'ar' command.])
-fi
- ar=$AR
++ar=$AR
AC_SUBST(ar)
+ AC_PROG_LEX([noyywrap])
+diff --git a/src/libpcp/src/GNUmakefile b/src/libpcp/src/GNUmakefile
--- a/src/libpcp/src/GNUmakefile
+++ b/src/libpcp/src/GNUmakefile
-@@ -179,8 +179,6 @@ exports: exports.in mk.exports
+@@ -184,8 +184,6 @@ exports: exports.in mk.exports
# consistent in all placess.
#
check.done: $(OBJECTS)
@@ -11,21 +11,22 @@ Upstream-Status: Inappropriate [OE Specific]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
- configure.ac | 20 ++++++++++----------
- 1 file changed, 10 insertions(+), 10 deletions(-)
+ configure.ac | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
-@@ -907,7 +907,7 @@ AC_DEFUN([PCP_CHECK_PYTHON_HEADER],
- [ PY_MAJOR="$1"
- PY_MINOR="$2"
- PY_VERSION="python$PY_MAJOR.$PY_MINOR"
-- PY_INCLUDE_DIRS="-I/usr/include/${PY_VERSION}m -I/usr/include/${PY_VERSION}"
-+ PY_INCLUDE_DIRS="-I${STAGING_INCDIR}/${PY_VERSION}m -I${STAGING_INCDIR}/${PY_VERSION}"
+@@ -982,7 +982,7 @@ AC_DEFUN([PCP_CHECK_PYTHON_HEADER],
+
+ dnl Fallback to manual paths if python3-config fails or is unavailable
+ if test -z "$PY_INCLUDE_DIRS"; then
+- PY_INCLUDE_DIRS="-I/usr/include/${PY_VERSION}m -I/usr/include/${PY_VERSION} -I/usr/local/include/${PY_VERSION} -I/opt/homebrew/include/${PY_VERSION} -I/opt/homebrew/include/${PY_VERSION}m"
++ PY_INCLUDE_DIRS="-I${STAGING_INCDIR}/${PY_VERSION}m -I${STAGING_INCDIR}/${PY_VERSION}"
+ fi
+
saved_CFLAGS="$CFLAGS"
- saved_CPPFLAGS="$CPPFLAGS"
- CFLAGS="$CFLAGS $PY_INCLUDE_DIRS"
-@@ -1603,7 +1603,7 @@ AC_SUBST(qmake)
+@@ -1594,7 +1594,7 @@ AC_SUBST(qmake)
enable_qt3d=false
AS_IF([test "x$do_qt3d" != "xno"], [
@@ -34,7 +35,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
then
enable_qt3d=$enable_qt
elif test x"$do_qt3d" = x"yes"
-@@ -3699,7 +3699,7 @@ AC_SUBST(enable_decompression)
+@@ -3819,7 +3819,7 @@ AC_SUBST(enable_decompression)
AC_SUBST(enable_lzma)
dnl check for array sessions
deleted file mode 100644
@@ -1,33 +0,0 @@
-From d04ea418c5fcfec2f6fbb2dd9f982ddf12c5be87 Mon Sep 17 00:00:00 2001
-From: Yoann Congal <yoann.congal@smile.fr>
-Date: Tue, 3 Jun 2025 10:02:58 +0200
-Subject: [PATCH] pcp-htop: fix header build race condition
-
-.c and .h files are soft-linked before being compiled. Under heavy load
-or a build with a high CPU count, the compilation can start before
-header files are softlinked, resulting in a build error:
-| pcp-htop.c:13:10: fatal error: CommandLine.h: No such file or directory
-| 13 | #include "CommandLine.h"
-| | ^~~~~~~~~~~~~~~
-
-Fix this by adding the make dependency between object files and the
-headers.
-
-Upstream-Status: Backport [https://github.com/performancecopilot/pcp/commit/0ca303467ce382127cd9676e288bf7690a93f084]
-Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
----
- src/pcp/htop/GNUmakefile | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/src/pcp/htop/GNUmakefile b/src/pcp/htop/GNUmakefile
-index 3e29638d6..898f0b766 100644
---- a/src/pcp/htop/GNUmakefile
-+++ b/src/pcp/htop/GNUmakefile
-@@ -224,6 +224,7 @@ default: build-me
- include $(BUILDRULES)
-
- ifeq "$(HAVE_NCURSESW)" "true"
-+$(OBJECTS): $(HFILES)
- build-me: $(TOPXFILES) $(SUBXFILES) $(CFGXFILES) $(CMDTARGET) $(DISTLINKS) $(MAN_PAGES)
-
- install: default
deleted file mode 100644
@@ -1,113 +0,0 @@
-From 92add24ccfc7e643349a1c091957595ce25a9915 Mon Sep 17 00:00:00 2001
-From: Yoann Congal <yoann.congal@smile.fr>
-Date: Tue, 27 May 2025 08:45:36 +0200
-Subject: [PATCH] QA: cleanup localconfig.h build dependencies
-
-Some QA binaries include localconfig.h but there is no explicit dependencies
-between the binary build and the localconfig.h generation.
-On heavily loaded systems, this can result in the binary being built
-before localconf.h and a compilation error, e.g:
-| username.c:8:10: fatal error: localconfig.h: No such file or directory
-| 8 | #include "localconfig.h"
-| | ^~~~~~~~~~~~~~~
-| compilation terminated.
-
-This can be reproduced by adding "sleep 30" at the start of the
-localconfig.h generation rule.
-
-Fix this by adding the missing Makefile rule dependency between the
-binary (or its pre-link .o) and localconfig.h.
-
-Also remove an un-needed scale.o->localconfig.h dependency.
-
-Upstream-Status: Backport [https://github.com/performancecopilot/pcp/commit/8de7bbb06703f224b72fe0994acde3189b742fd2]
-Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
----
- qa/src/GNUlocaldefs | 22 +++++++++++-----------
- 1 file changed, 11 insertions(+), 11 deletions(-)
-
-diff --git a/qa/src/GNUlocaldefs b/qa/src/GNUlocaldefs
-index f83826068..e47fbfd72 100644
---- a/qa/src/GNUlocaldefs
-+++ b/qa/src/GNUlocaldefs
-@@ -299,7 +299,7 @@ diowr: diowr.c
- rm -f $@
- $(CCF) $(CDEFS) -o $@ diowr.c
-
--endian: endian.c
-+endian: endian.c localconfig.h
- rm -f $@
- $(CCF) $(CDEFS) -o $@ endian.c
-
-@@ -331,15 +331,15 @@ exercise: exercise.c
- rm -f $@
- $(CCF) $(CDEFS) -o $@ exercise.c $(LDLIBS)
-
--chkacc1: chkacc1.c
-+chkacc1: chkacc1.c localconfig.h
- rm -f $@
- $(CCF) $(CDEFS) -o $@ chkacc1.c $(LDLIBS)
-
--chkacc2: chkacc2.c
-+chkacc2: chkacc2.c localconfig.h
- rm -f $@
- $(CCF) $(CDEFS) -o $@ chkacc2.c $(LDLIBS)
-
--chkacc3: chkacc3.c
-+chkacc3: chkacc3.c localconfig.h
- rm -f $@
- $(CCF) $(CDEFS) -o $@ chkacc3.c $(LDLIBS)
-
-@@ -489,7 +489,7 @@ pmdashutdown: pmdashutdown.c
- rm -f $@
- $(CCF) $(CDEFS) -o $@ $@.c $(LDLIBS) -lpcp_pmda
-
--dumb_pmda: dumb_pmda.c
-+dumb_pmda: dumb_pmda.c localconfig.h
- $(CCF) $(LCDEFS) $(LCOPTS) -o $@ $@.c $(LDLIBS) -lpcp_pmda
-
- pmdacache: pmdacache.c
-@@ -633,7 +633,7 @@ else
- $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS)
- endif
-
--multithread2: multithread2.c
-+multithread2: multithread2.c localconfig.h
- rm -f $@
- $(CCF) $(CDEFS) -o $@ $@.c $(LIB_FOR_PTHREADS) $(LDLIBS)
-
-@@ -786,7 +786,6 @@ $(NVIDIAQALIB): nvidia-ml.o
- endif
-
- arch_maxfd.o: localconfig.h
--scale.o: localconfig.h
-
- 779246.o: libpcp.h
- aggrstore.o: libpcp.h
-@@ -847,14 +846,14 @@ multithread14.o: libpcp.h
- nameall.o: libpcp.h
- parsehostattrs.o: libpcp.h
- parsehostspec.o: libpcp.h
--pdubufbounds.o: libpcp.h
--pducheck.o: libpcp.h
-+pdubufbounds.o: libpcp.h localconfig.h
-+pducheck.o: libpcp.h localconfig.h
- pducrash.o: libpcp.h
--pdu-server.o: libpcp.h
-+pdu-server.o: libpcp.h localconfig.h
- pmcdgone.o: libpcp.h
- pmlcmacro.o: libpcp.h
- pmnsinarchives.o: libpcp.h
--pmnsunload.o: libpcp.h
-+pmnsunload.o: libpcp.h localconfig.h
- proc_test.o: libpcp.h
- qa_libpcp_compat.o: libpcp.h
- qa_timezone.o: libpcp.h
-@@ -874,6 +873,7 @@ torture_pmns.o: libpcp.h
- tztest.o: libpcp.h
- unpack.o: libpcp.h
- unpickargs.o: libpcp.h
-+username.o: localconfig.h
- xarch.o: libpcp.h
- xlog.o: libpcp.h
- xmktime.o: libpcp.h
similarity index 94%
rename from meta-oe/recipes-support/pcp/pcp_6.3.8.bb
rename to meta-oe/recipes-support/pcp/pcp_7.2.2.bb
@@ -12,11 +12,12 @@ DEPENDS += "perl-native bison-native flex-native python3-native python3-setuptoo
SRC_URI += "file://0001-Remove-unsuitble-part-for-cross-compile.patch \
file://pass-options-to-AR.patch \
- file://fix_parallel_make.patch \
file://0001-bind2-Use-pmcpp-from-native-builds.patch \
- file://0001-pcp-htop-fix-header-build-race-condition.patch \
"
+# libpcp exports list getdomainname, which libpcp defines only when libc lacks it
+LDFLAGS:append:toolchain-clang = " -Wl,--undefined-version"
+
export PCP_DIR = "${RECIPE_SYSROOT_NATIVE}"
#export PCP_RUN_DIR = "${RECIPE_SYSROOT_NATIVE}"
EXTRA_OEMAKE = '\
@@ -105,12 +106,12 @@ do_install () {
PACKAGE_BEFORE_PN = "${PN}-xsos"
PACKAGES =+ " ${PN}-export-zabbix-agent ${PN}-testsuite \
libpcp-gui2 libpcp-gui2-dev \
- libpcp-import1 libpcp-archive1 \
+ libpcp-import1 libpcp-import2 libpcp-archive1 \
libpcp-mmv1 libpcp-mmv1-dev \
libpcp-pmda3 libpcp-pmda3-dev \
libpcp-trace2 libpcp-trace2-dev \
libpcp-web1 libpcp-web1-dev \
- libpcp3 libpcp3-dev python3-${PN}\
+ libpcp3 libpcp3-dev libpcp4 python3-${PN}\
"
FILES:libpcp-gui2 = "${libdir}/libpcp_gui.so.2 \
"
@@ -141,6 +142,10 @@ INSANE_SKIP:libpcp-mmv1-dev = "staticdev"
FILES:libpcp-import1 = " \
${libdir}/libpcp_import.so.1 \
"
+FILES:libpcp-import2 = " \
+ ${libdir}/libpcp_import.so.2 \
+ ${nonarch_libdir}/tmpfiles.d/libpcp_import.conf \
+"
FILES:libpcp-pmda3 = " \
${libdir}/libpcp_pmda.so.3 \
"
@@ -183,12 +188,16 @@ INSANE_SKIP:libpcp-web1-dev = "staticdev"
FILES:libpcp3 = " \
${libdir}/libpcp.so.3 \
"
+FILES:libpcp4 = " \
+ ${libdir}/libpcp.so.4 \
+"
FILES:${PN}-xsos = " \
${libexecdir}/pcp/bin/pcp-xsos \
"
FILES:${PN} = " \
${sysconfdir}/pcp \
+ ${sysconfdir}/atop \
${sysconfdir}/cron.d \
${sysconfdir}/init.d \
${libexecdir} \
@@ -209,7 +218,7 @@ FILES:${PN} = " \
${localstatedir}/lib/pcp/config \
${localstatedir}/lib/pcp/pmdas/ \
${localstatedir}/lib/pcp/pmns \
- ${libdir}/libpcp_fault.so.3 \
+ ${libdir}/libpcp_fault.so.4 \
${nonarch_libdir}/tmpfiles.d/pcp-reboot-init.conf \
"
Upstream changes (CHANGELOG): - libpcp.so.4 is the new default PMAPI with nanosecond timestamps; libpcp.so.3 and libpcp_import.so.1 are still built for backward compatibility, and pmapi.h selects the API with -DPMAPI_VERSION=2|4. - New pmdaopentelemetry, pmdarocestat and pmdahdb agents, and the new pmlogpush, pcp2opentelemetry and pmseries_import tools. - Python 2 support (3.6 minimum), Qt4 support, the BCC and JSON PMDAs and the rc_pcp init.d wrapper are removed. - pmlogger/pmproxy gained a remote archive push webhook; hiredis is replaced by a vendored libvalkey. Upstream no longer has a stable branch, and 6.3.8 is not on main, so use branch=main where 7.2.2 is. Add an upstream check for the plain version tags. Drop fix_parallel_make.patch and 0001-pcp-htop-fix-header-build-race-condition.patch, both are in 7.2.2. Refresh 0001-configure-Limit-the-header-search-to-sysroot.patch for the new python3-config based header lookup, and 0001-Remove-unsuitble-part-for-cross-compile.patch for the reworked AR check. Drop --with-python, --with-pmdajson and --with-pmdabcc, which configure no longer knows. Package the new libpcp.so.4 (libpcp4) and libpcp_import.so.2 (libpcp-import2) next to the compat libraries; libpcp_fault moves to soname 4. libpcp's exports lists getdomainname, which libpcp only defines when libc lacks it, and lld fails on it with --no-undefined-version; link with --undefined-version for clang. Package the new /etc/atop directory and the libpcp_import tmpfiles.d snippet. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...cp-native_6.3.8.bb => pcp-native_7.2.2.bb} | 0 meta-oe/recipes-support/pcp/pcp.inc | 8 +- ...ove-unsuitble-part-for-cross-compile.patch | 20 ++-- ...e-Limit-the-header-search-to-sysroot.patch | 25 ++-- ...htop-fix-header-build-race-condition.patch | 33 ----- .../pcp/pcp/fix_parallel_make.patch | 113 ------------------ .../pcp/{pcp_6.3.8.bb => pcp_7.2.2.bb} | 19 ++- 7 files changed, 42 insertions(+), 176 deletions(-) rename meta-oe/recipes-support/pcp/{pcp-native_6.3.8.bb => pcp-native_7.2.2.bb} (100%) delete mode 100644 meta-oe/recipes-support/pcp/pcp/0001-pcp-htop-fix-header-build-race-condition.patch delete mode 100644 meta-oe/recipes-support/pcp/pcp/fix_parallel_make.patch rename meta-oe/recipes-support/pcp/{pcp_6.3.8.bb => pcp_7.2.2.bb} (94%)