Skip to contentSkip to conversation

systemtap: upgrade 4.9 -> 5.0

PATCH In review Victor Kamensky 3 participants 10 messages Dec 5, 2023 – Dec 18, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 systemtap: upgrade 4.9 -> 5.0

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any branch, release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the master branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to release-5.0 tag level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch
 delete mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +23 -0
new file mode 100644
index 0000000000..afdc10a3fe
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
++* What's new in version 5.0, 2023-11-04
+ 
+ - Performance improvements in uprobe registration and module startup.
+ 
+-- 
+2.31.1
+
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -37
deleted file mode 100644
index 3dcb369ec3..0000000000
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
- 
- - ISystemtap: the new interactive systemtap jupyter kernel. This provides
-   a simple GUI for writing/running Systemtap scripts in an easy, incremental
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
- 
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
- 
--- 
-2.40.1
-
meta/recipes-kernel/systemtap/systemtap_git.inc +3 -3
index de3750ff04..bc2a9ff434 100644
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master;protocol=https \
            file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
            file://0001-Install-python-modules-to-correct-library-dir.patch \
            file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux'
Signature · 1 line
2.31.1
#1 lore raw

PATCH 2/3 systemtap: do not install uprobes and uprobes sources

Addresses the following do_package_qa warning:

WARNING: systemtap-5.0-r0 do_package_qa: QA Issue: File /usr/share/systemtap/runtime/linux/uprobes/Makefile in package systemtap contains reference to TMPDIR File /usr/share/systemtap/runtime/linux/uprobes/git_version.h in package systemtap contains reference to TMPDIR
File /usr/share/systemtap/runtime/linux/uprobes2/git_version.h in package systemtap contains reference to TMPDIR [buildpaths]

---
 ...ve-runtime-linux-uprobes-and-runtime.patch | 40 +++++++++++++++++++
 .../systemtap/systemtap_git.inc               |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch
meta/recipes-kernel/systemtap/systemtap/0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch new file +40 -0
new file mode 100644
index 0000000000..2d46a3962d
@@ -0,0 +1,40 @@
+From 5a01e28bd806326b2143e3e6bb28d4780c5d879d Mon Sep 17 00:00:00 2001
+From: Victor Kamensky <[email protected]>
+Date: Sun, 3 Dec 2023 18:40:05 -0800
+Subject: [PATCH] Makefile.am: remove runtime/linux/uprobes and
+ runtime/linux/uprobes2 install
+
+"PR30434 continuation:  Removed old uprobes, uprobes2 implementation,
+uprobes-inc.h & any mentions of CONFIG_UTRACE." commit removed uprobes,
+and uprobes2 sources and directories, but Makefile.am still tries to
+install them. In fact after failing to 'cd' into runtime/linux/uprobes
+directory it copies top level *.[ch] files into
+${prefix}/share/systemtap/runtime/linux/uprobes directory.
+
+The issue was caught by OpenEmbedded project do_package_qa checks.
+
+Signed-off-by: Victor Kamensky <[email protected]>
+
+Upstream-Status: Submitted [https://sourceware.org/pipermail/systemtap/2023q4/027880.html] 
+---
+ Makefile.am | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 5737c6b20..2ba896088 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -277,10 +277,6 @@ endif
+ 		do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/softfloat/$$f; done)
+ 	(cd $(srcdir)/runtime/linux; for f in *.[ch]; \
+ 		do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/$$f; done)
+-	(cd $(srcdir)/runtime/linux/uprobes; for f in Makefile *.[ch]; \
+-		do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/uprobes/$$f; done)
+-	(cd $(srcdir)/runtime/linux/uprobes2; for f in *.[ch]; \
+-		do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/runtime/linux/uprobes2/$$f; done)
+ 	(cd $(srcdir)/tapset; find . \( -name '*.stp' -o -name '*.stpm' -o -name README \) -print \
+ 		| while read f; do $(INSTALL_DATA) -D $$f $(DESTDIR)$(pkgdatadir)/tapset/$$f; done)
+ 	(cd $(srcdir)/testsuite/systemtap.examples; find . -type f -print \
+-- 
+2.31.1
+
meta/recipes-kernel/systemtap/systemtap_git.inc +1 -0
index bc2a9ff434..9fe85676fc 100644
@@ -7,6 +7,7 @@ SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master;protocol=https \
            file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
            file://0001-Install-python-modules-to-correct-library-dir.patch \
            file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
+           file://0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch \
            file://0001-prerelease-datestamp-fixes.patch \
            "
 
Signature · 1 line
2.31.1
#2 lore raw

PATCH 3/3 systemtap-uprobes: removed as obsolete

In reply to Victor Kamensky

systemtap-uprobes package was not used for a long time - since kernel itself provided uprobes support. Now source code of old uprobes kernel module was removed from systemtap git repo by "PR30434 continuation:
Removed old uprobes, uprobes2 implementation, uprobes-inc.h & any
mentions of CONFIG_UTRACE." it is good time for us to gid rid of it
too.

---
 meta/conf/distro/include/distro_alias.inc     |  1 -
 meta/conf/distro/include/maintainers.inc      |  1 -
 .../systemtap/systemtap-uprobes_git.bb        | 42 -------------------
 3 files changed, 44 deletions(-)
 delete mode 100644 meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb
meta/conf/distro/include/distro_alias.inc +0 -1
index e43c0acd80..e6131c815a 100644
@@ -317,7 +317,6 @@ DISTRO_PN_ALIAS:pn-sysprof = "Fedora=sysprof Debian=sysprof"
 DISTRO_PN_ALIAS:pn-systemd-compat-units = "Fedora=systemd Ubuntu=systemd"
 DISTRO_PN_ALIAS:pn-systemd-systemctl = "OE-Core"
 DISTRO_PN_ALIAS:pn-systemd-systemdctl = "Fedora=systemd Ubuntu=systemd"
-DISTRO_PN_ALIAS:pn-systemtap-uprobes = "Ubuntu=systemtap Debian=systemtap"
 DISTRO_PN_ALIAS:pn-sysvinit-inittab = "OE-Core"
 DISTRO_PN_ALIAS:pn-tar-replacement = "Fedora=tar Ubuntu=tar"
 DISTRO_PN_ALIAS:pn-tcf-agent = "Windriver upstream=http://www.eclipse.org/dsdp/tm/"
meta/conf/distro/include/maintainers.inc +0 -1
index 2c59db56ac..445f797bcb 100644
@@ -794,7 +794,6 @@ RECIPE_MAINTAINER:pn-systemd-serialgetty = "Chen Qi <[email protected]>"
 RECIPE_MAINTAINER:pn-systemd-systemctl-native = "Chen Qi <[email protected]>"
 RECIPE_MAINTAINER:pn-systemtap = "Victor Kamensky <[email protected]>"
 RECIPE_MAINTAINER:pn-systemtap-native = "Victor Kamensky <[email protected]>"
-RECIPE_MAINTAINER:pn-systemtap-uprobes = "Victor Kamensky <[email protected]>"
 RECIPE_MAINTAINER:pn-sysvinit = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-sysvinit-inittab = "Ross Burton <[email protected]>"
 RECIPE_MAINTAINER:pn-taglib = "Anuj Mittal <[email protected]>"
meta/recipes-kernel/systemtap/systemtap-uprobes_git.bb deleted +0 -42

42 lines not on this page · raw message

Signature · 1 line
2.31.1
#3 lore raw

Patchtest results for [PATCH 1/3] systemtap: upgrade 4.9 -> 5.0

In reply to Victor Kamensky

Thank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:

---
Testing patch /home/patchtest/share/mboxes/1-3-systemtap-upgrade-4.9---5.0.patch

FAIL: test Signed-off-by presence: A patch file has been added without a Signed-off-by tag: '0001-prerelease-datestamp-fixes.patch' (test_patch.TestPatch.test_signed_off_by_presence)

PASS: pretest src uri left files (test_metadata.TestMetadata.pretest_src_uri_left_files)
PASS: test CVE tag format (test_patch.TestPatch.test_cve_tag_format)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test Upstream-Status presence (test_patch.TestPatch.test_upstream_status_presence_format)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test lic files chksum modified not mentioned (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
PASS: test max line length (test_metadata.TestMetadata.test_max_line_length)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
PASS: test src uri left files (test_metadata.TestMetadata.test_src_uri_left_files)

SKIP: pretest pylint: No python related patches, skipping test (test_python_pylint.PyLint.pretest_pylint)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test pylint: No python related patches, skipping test (test_python_pylint.PyLint.test_pylint)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)

---

Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!

#4 lore raw
In reply to Victor Kamensky

This seems to be causing:
../git/util.cxx:51:10: fatal error: elfutils/debuginfod.h: No such file or directory
51 | #include <elfutils/debuginfod.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[2]: *** [Makefile:1389: stap-util.o] Error 1

on some systems.

Looks like with
https://sourceware.org/git/?p=systemtap.git;a=commit;h=2e67b053e3796ee7cf29a39f9698729b52078406
it now enables debuginfod ("AC_MSG_RESULT([yes])" _after_ the PKG_CHECK_MODULES now seems wrong).

log.do_configure:
checking whether to use debuginfod... checking for debuginfod... no yes
checking for debuginfod_find_metadata in -ldebuginfod... no

build $ grep DEBUGINFO config.h
#define HAVE_LIBDEBUGINFOD 1

config.log (see the strange result yes):
configure:12213: checking whether to use debuginfod
configure:12228: checking for debuginfod
configure:12235: $PKG_CONFIG --exists --print-errors "libdebuginfod >=
0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12238: $? = 1
configure:12252: $PKG_CONFIG --exists --print-errors "libdebuginfod >=
0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12255: $? = 1
configure:12269: result: no
No package 'libdebuginfod' found
configure:12304: result: yes
configure:12315: checking for debuginfod_find_metadata in -ldebuginfod
configure:12344: ccache aarch64-webos-linux-gcc -mcpu=cortex-a72
-march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong
-O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-Werror=return-type
--sysroot=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot
-o conftest -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
-Wl,-z,relro,-z,now conftest.c -ldebuginfod >&5
/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/../../libexec/aarch64-webos-linux/gcc/aarch64-webos-linux/13.2.0/ld:
cannot find -ldebuginfod: No such file or directory
collect2: error: ld returned 1 exit status

With debuginfod in DISTRO_FEATURES (which is included by default) and *debuginfod PACKAGECONFIG enabled in elfutils (also by default based on DISTRO_FEAUTRES) this builds OK.

Regards,

Quoted 138 lines · Victor Kamensky

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any branch, release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the master branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to release-5.0 tag
level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch
 delete mode 100644

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

diff --git a/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file mode 100644
index 0000000000..afdc10a3fe
--- /dev/null
+++
b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +23 -0
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
++* What's new in version 5.0, 2023-11-04
+
+ - Performance improvements in uprobe registration and module startup.
+
+--
+2.31.1
+

diff --git a/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch b/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted file mode 100644
index 3dcb369ec3..0000000000

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -21
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
-
- - ISystemtap: the new interactive systemtap jupyter kernel. This provides
-   a simple GUI for writing/running Systemtap scripts in an easy,

incremental

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -16
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
-
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
-
---
-2.40.1
-
meta/recipes-kernel/systemtap/systemtap_git.inc +3 -3
index de3750ff04..bc2a9ff434 100644
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://
 sourceware.org/git/systemtap.git;branch=master;protocol=https \
 
 file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
 
 file://0001-Install-python-modules-to-correct-library-dir.patch \
 
 file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
 COMPATIBLE_HOST =

'(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux' --
2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#191795):
https://lists.openembedded.org/g/openembedded-core/message/191795
Mute This Topic: https://lists.openembedded.org/mt/102987514/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Hi Martin,

Sorry about that. I am looking at it now.

Do I understand it correctly to reproduce the issue: I need to remove debuginfod (as it is currently on
by default) from DISTO_FEATURES and remove debuginfod from elfutils PACKAGECONFIG defaults?

Thanks,
Victor

Quoted 170 lines · Martin Jansa

This seems to be causing:
../git/util.cxx:51:10: fatal error: elfutils/debuginfod.h: No such file or directory
51 | #include <elfutils/debuginfod.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[2]: *** [Makefile:1389: stap-util.o] Error 1

on some systems.

Looks like with https://sourceware.org/git/?p=systemtap.git;a=commit;h=2e67b053e3796ee7cf29a39f9698729b52078406 it now enables debuginfod ("AC_MSG_RESULT([yes])" _after_ the PKG_CHECK_MODULES now seems wrong).

log.do_configure:
checking whether to use debuginfod... checking for debuginfod... no yes
checking for debuginfod_find_metadata in -ldebuginfod... no

build $ grep DEBUGINFO config.h
#define HAVE_LIBDEBUGINFOD 1

config.log (see the strange result yes):
configure:12213: checking whether to use debuginfod
configure:12228: checking for debuginfod
configure:12235: $PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12238: $? = 1
configure:12252: $PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12255: $? = 1
configure:12269: result: no
No package 'libdebuginfod' found
configure:12304: result: yes
configure:12315: checking for debuginfod_find_metadata in -ldebuginfod
configure:12344: ccache aarch64-webos-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native= -Wl,-z,relro,-z,now conftest.c -ldebuginfod >&5
/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/../../libexec/aarch64-webos-linux/gcc/aarch64-webos-linux/13.2.0/ld: cannot find -ldebuginfod: No such file or directory
collect2: error: ld returned 1 exit status

With debuginfod in DISTRO_FEATURES (which is included by default) and *debuginfod PACKAGECONFIG enabled in elfutils (also by default based on DISTRO_FEAUTRES) this builds OK.

Regards,

Quoted 121 lines · Victor Kamensky

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any branch, release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the master branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to release-5.0 tag level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch
 delete mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +23 -0
new file mode 100644
index 0000000000..afdc10a3fe
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
++* What's new in version 5.0, 2023-11-04
+
+ - Performance improvements in uprobe registration and module startup.
+
+--
+2.31.1
+
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -37
deleted file mode 100644
index 3dcb369ec3..0000000000
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
-
- - ISystemtap: the new interactive systemtap jupyter kernel. This provides
-   a simple GUI for writing/running Systemtap scripts in an easy, incremental
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
-
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
-
---
-2.40.1
-
meta/recipes-kernel/systemtap/systemtap_git.inc +3 -4
index de3750ff04..bc2a9ff434 100644
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master;protocol=https \
            file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
            file://0001-Install-python-modules-to-correct-library-dir.patch \
            file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux'
--

2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191795): https://lists.openembedded.org/g/openembedded-core/message/191795
Mute This Topic: https://lists.openembedded.org/mt/102987514/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

Hi Victor,

no problem, at least it forced me to enable debuginfod in our builds as well (where it wasn't intentionally disabled). Just didn't get enabled when it was added to default DISTRO_FEATUREs as we define our own and it wasn't using BACKFILL mechanism to enable it in such setups.

Removing debuginfod from DISTRO_FEATURES should be enough to reproduce the issue (as it will disable both *debuginfod PACKAGECONFIG options from elfutils as well).

I haven't tried, but removing the PACKAGECONFIG just from elfutils will probably reproduce it as well (with possibly fewer recipes needing to rebuilt). There are 2 PACKAGECONFIGs for this, not sure which one is needed, but you can just disable both.

Cheers,

Quoted 240 lines · Victor Kamensky

Hi Martin,

Sorry about that. I am looking at it now.

Do I understand it correctly to reproduce the issue: I need to remove debuginfod (as it is currently on
by default) from DISTO_FEATURES and remove debuginfod from elfutils PACKAGECONFIG defaults?

Thanks,
Victor

Quoted 3 lines · Martin Jansa

This seems to be causing:
../git/util.cxx:51:10: fatal error: elfutils/debuginfod.h: No such file

or directory

Quoted 8 lines

51 | #include <elfutils/debuginfod.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[2]: *** [Makefile:1389: stap-util.o] Error 1

on some systems.

Looks like with

https://sourceware.org/git/?p=systemtap.git;a=commit;h=2e67b053e3796ee7cf29a39f9698729b52078406
it now enables debuginfod ("AC_MSG_RESULT([yes])" _after_ the PKG_CHECK_MODULES now seems wrong).

Quoted 6 lines

log.do_configure:
checking whether to use debuginfod... checking for debuginfod... no yes
checking for debuginfod_find_metadata in -ldebuginfod... no

Quoted 7 lines

build $ grep DEBUGINFO config.h
#define HAVE_LIBDEBUGINFOD 1

config.log (see the strange result yes):
configure:12213: checking whether to use debuginfod configure:12228: checking for debuginfod
configure:12235: $PKG_CONFIG --exists --print-errors "libdebuginfod >=

0.179"

Quoted 6 lines

Package libdebuginfod was not found in the pkg-config search path. Perhaps you should add the directory containing `libdebuginfod.pc' to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12238: $? = 1
configure:12252: $PKG_CONFIG --exists --print-errors "libdebuginfod >=

0.179"

Quoted 10 lines

Package libdebuginfod was not found in the pkg-config search path. Perhaps you should add the directory containing `libdebuginfod.pc' to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12255: $? = 1
configure:12269: result: no
No package 'libdebuginfod' found
configure:12304: result: yes
configure:12315: checking for debuginfod_find_metadata in -ldebuginfod configure:12344: ccache aarch64-webos-linux-gcc -mcpu=cortex-a72

(quoted diff) +0 -21
-march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong
-O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-Werror=return-type
--sysroot=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot
-o conftest  -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
-Wl,-z,relro,-z,now  conftest.c -ldebuginfod   >&5
Quoted 1 line

/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/../../libexec/aarch64-webos-linux/gcc/aarch64-webos-linux/13.2.0/ld:
cannot find -ldebuginfod: No such file or directory

Quoted 3 lines

collect2: error: ld returned 1 exit status

With debuginfod in DISTRO_FEATURES (which is included by default) and

*debuginfod PACKAGECONFIG enabled in elfutils (also by default based on DISTRO_FEAUTRES) this builds OK.

Quoted 5 lines

Regards,

On Tue, Dec 5, 2023 at 7:33 AM Victor Kamensky <

Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any

branch,

Quoted 1 line
Quoted 1 line

release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the

master

Quoted 2 lines
Quoted 2 lines

branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to

release-5.0 tag

Quoted 9 lines
Quoted 9 lines

level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644

meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 1 line
Quoted 1 line
 delete mode 100644

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 2 lines
Quoted 2 lines

diff --git

a/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000000..afdc10a3fe
--- /dev/null
+++

b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 17 lines
Quoted 17 lines
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +16 -0
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
Quoted 8 lines
Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +7 -0
++* What's new in version 5.0, 2023-11-04
+
+ - Performance improvements in uprobe registration and module startup.
+
+--
+2.31.1
+

diff --git

a/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch b/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 3 lines
Quoted 3 lines

deleted file mode 100644
index 3dcb369ec3..0000000000
---

a/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 14 lines
Quoted 14 lines

+++ /dev/null

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -12
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
Quoted 8 lines

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -8
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
-
- - ISystemtap: the new interactive systemtap jupyter kernel. This

provides

Quoted 1 line

Review line 21

Quoted 1 line
(quoted diff) +0 -1
-   a simple GUI for writing/running Systemtap scripts in an easy,

incremental

Quoted 9 lines
Quoted 9 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -9
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
-
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
Quoted 8 lines

Review

Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -7
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
-
---
-2.40.1
-
(quoted diff) +0 -0

b/meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 6 lines

meta/recipes-kernel/systemtap/systemtap_git.inc line 2

Quoted 6 lines

index de3750ff04..bc2a9ff434 100644

meta/recipes-kernel/systemtap/systemtap_git.inc +0 -0
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 6 lines

meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 6 lines
meta/recipes-kernel/systemtap/systemtap_git.inc +2 -2
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://

sourceware.org/git/systemtap.git;branch=master;protocol=https \

Quoted 1 line
Quoted 1 line

file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \

Quoted 1 line
Quoted 1 line

file://0001-Install-python-modules-to-correct-library-dir.patch \

Quoted 1 line
Quoted 1 line

file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \

Quoted 5 lines

meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 5 lines
meta/recipes-kernel/systemtap/systemtap_git.inc +1 -1
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
 COMPATIBLE_HOST =

'(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux'

Quoted 7 lines
Quoted 7 lines

--
2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#191795):

https://lists.openembedded.org/g/openembedded-core/message/191795

Quoted 3 lines
Quoted 3 lines

Mute This Topic: https://lists.openembedded.org/mt/102987514/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [

[email protected]]

Quoted 2 lines
Quoted 2 lines

-=-=-=-=-=-=-=-=-=-=-=-

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw

PACKAGECONFIG:remove:pn-elfutils = "debuginfod" PACKAGECONFIG:remove:pn-elfutils = "libdebuginfod" PACKAGECONFIG:remove:pn-binutils = "debuginfod"

in local.conf is the easiest way to reproduce it.

The one for binutils isn't strictly needed (but target binutils will fail as well when debuginfod is disabled in elfutils and enabled in binutils).

Quoted 265 lines · Martin Jansa via lists.openembedded.org

Hi Victor,

no problem, at least it forced me to enable debuginfod in our builds as well (where it wasn't intentionally disabled). Just didn't get enabled when it was added to default DISTRO_FEATUREs as we define our own and it wasn't using BACKFILL mechanism to enable it in such setups.

Removing debuginfod from DISTRO_FEATURES should be enough to reproduce the issue (as it will disable both *debuginfod PACKAGECONFIG options from elfutils as well).

I haven't tried, but removing the PACKAGECONFIG just from elfutils will probably reproduce it as well (with possibly fewer recipes needing to rebuilt). There are 2 PACKAGECONFIGs for this, not sure which one is needed, but you can just disable both.

Cheers,

Quoted 218 lines · Victor Kamensky

Hi Martin,

Sorry about that. I am looking at it now.

Do I understand it correctly to reproduce the issue: I need to remove debuginfod (as it is currently on
by default) from DISTO_FEATURES and remove debuginfod from elfutils PACKAGECONFIG defaults?

Thanks,
Victor

Quoted 3 lines · Martin Jansa

This seems to be causing:
../git/util.cxx:51:10: fatal error: elfutils/debuginfod.h: No such file

or directory

Quoted 8 lines

51 | #include <elfutils/debuginfod.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[2]: *** [Makefile:1389: stap-util.o] Error 1

on some systems.

Looks like with

https://sourceware.org/git/?p=systemtap.git;a=commit;h=2e67b053e3796ee7cf29a39f9698729b52078406
it now enables debuginfod ("AC_MSG_RESULT([yes])" _after_ the PKG_CHECK_MODULES now seems wrong).

Quoted 6 lines

log.do_configure:
checking whether to use debuginfod... checking for debuginfod... no yes
checking for debuginfod_find_metadata in -ldebuginfod... no

Quoted 7 lines

build $ grep DEBUGINFO config.h
#define HAVE_LIBDEBUGINFOD 1

config.log (see the strange result yes):
configure:12213: checking whether to use debuginfod configure:12228: checking for debuginfod
configure:12235: $PKG_CONFIG --exists --print-errors "libdebuginfod >=

0.179"

Quoted 6 lines

Package libdebuginfod was not found in the pkg-config search path. Perhaps you should add the directory containing `libdebuginfod.pc' to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12238: $? = 1
configure:12252: $PKG_CONFIG --exists --print-errors "libdebuginfod >=

0.179"

Quoted 10 lines

Package libdebuginfod was not found in the pkg-config search path. Perhaps you should add the directory containing `libdebuginfod.pc' to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12255: $? = 1
configure:12269: result: no
No package 'libdebuginfod' found
configure:12304: result: yes
configure:12315: checking for debuginfod_find_metadata in -ldebuginfod configure:12344: ccache aarch64-webos-linux-gcc -mcpu=cortex-a72

(quoted diff) +0 -21
-march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong
-O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-Werror=return-type
--sysroot=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot
-o conftest  -O2 -pipe -g -feliminate-unused-debug-types
-fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot=
-fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native=
-Wl,-z,relro,-z,now  conftest.c -ldebuginfod   >&5
Quoted 1 line

/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/../../libexec/aarch64-webos-linux/gcc/aarch64-webos-linux/13.2.0/ld:
cannot find -ldebuginfod: No such file or directory

Quoted 3 lines

collect2: error: ld returned 1 exit status

With debuginfod in DISTRO_FEATURES (which is included by default) and

*debuginfod PACKAGECONFIG enabled in elfutils (also by default based on DISTRO_FEAUTRES) this builds OK.

Quoted 5 lines

Regards,

On Tue, Dec 5, 2023 at 7:33 AM Victor Kamensky <

Quoted 2 lines · [email protected]> wrote:
Quoted 2 lines

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any

branch,

Quoted 1 line
Quoted 1 line

release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the

master

Quoted 2 lines
Quoted 2 lines

branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to

release-5.0 tag

Quoted 9 lines
Quoted 9 lines

level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644

meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 1 line
Quoted 1 line
 delete mode 100644

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 2 lines
Quoted 2 lines

diff --git

a/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 4 lines
Quoted 4 lines

new file mode 100644
index 0000000000..afdc10a3fe
--- /dev/null
+++

b/meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch

Quoted 17 lines
Quoted 17 lines
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +16 -0
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
Quoted 8 lines
Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +7 -0
++* What's new in version 5.0, 2023-11-04
+
+ - Performance improvements in uprobe registration and module startup.
+
+--
+2.31.1
+

diff --git

a/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch b/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 3 lines
Quoted 3 lines

deleted file mode 100644
index 3dcb369ec3..0000000000
---

a/meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 14 lines
Quoted 14 lines

+++ /dev/null

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -12
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
Quoted 8 lines

meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch

Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -8
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
-
- - ISystemtap: the new interactive systemtap jupyter kernel. This

provides

Quoted 1 line

Review line 21

Quoted 1 line
(quoted diff) +0 -1
-   a simple GUI for writing/running Systemtap scripts in an easy,

incremental

Quoted 9 lines
Quoted 9 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -9
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
-
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
Quoted 8 lines

Review

Quoted 8 lines
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -7
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
-
---
-2.40.1
-
(quoted diff) +0 -0

b/meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 6 lines

meta/recipes-kernel/systemtap/systemtap_git.inc line 2

Quoted 6 lines

index de3750ff04..bc2a9ff434 100644

meta/recipes-kernel/systemtap/systemtap_git.inc +0 -0
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

Quoted 6 lines

meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 6 lines
meta/recipes-kernel/systemtap/systemtap_git.inc +2 -2
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://

sourceware.org/git/systemtap.git;branch=master;protocol=https \

Quoted 1 line
Quoted 1 line

file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \

Quoted 1 line
Quoted 1 line

file://0001-Install-python-modules-to-correct-library-dir.patch \

Quoted 1 line
Quoted 1 line
Quoted 14 lines

file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \

Quoted 5 lines

meta/recipes-kernel/systemtap/systemtap_git.inc

Quoted 5 lines
meta/recipes-kernel/systemtap/systemtap_git.inc +1 -1
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
 COMPATIBLE_HOST =

'(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux'

Quoted 6 lines
Quoted 6 lines

--
2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#192332):
https://lists.openembedded.org/g/openembedded-core/message/192332
Mute This Topic: https://lists.openembedded.org/mt/102987514/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#9 lore raw
Quoted 8 lines · Martin Jansa

PACKAGECONFIG:remove:pn-elfutils = "debuginfod" PACKAGECONFIG:remove:pn-elfutils = "libdebuginfod" PACKAGECONFIG:remove:pn-binutils = "debuginfod"

in local.conf is the easiest way to reproduce it.

The one for binutils isn't strictly needed (but target binutils will fail as well when debuginfod is disabled in elfutils and enabled in binutils).

Thanks, Martin. I was able to reproduce it with removing debuginfod from DISTRO_FEATURES_DEFAULT

Submitted patches to systemtap mailing list:
https://sourceware.org/pipermail/systemtap/2023q4/027914.html
https://sourceware.org/pipermail/systemtap/2023q4/027915.html

And to oe-core:
https://lists.openembedded.org/g/openembedded-core/message/192600?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2CVictor+Kamensky%2C20%2C2%2C0%2C103238308
https://lists.openembedded.org/g/openembedded-core/message/192601?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2CVictor+Kamensky%2C20%2C2%2C0%2C103238309

Appreciate reporting the issue!

Thanks,
Victor

Quoted 201 lines · Martin Jansa via lists.openembedded.org
Quoted 200 lines

Hi Victor,

no problem, at least it forced me to enable debuginfod in our builds as well (where it wasn't intentionally disabled). Just didn't get enabled when it was added to default DISTRO_FEATUREs as we define our own and it wasn't using BACKFILL mechanism to enable it in such setups.

Removing debuginfod from DISTRO_FEATURES should be enough to reproduce the issue (as it will disable both *debuginfod PACKAGECONFIG options from elfutils as well).

I haven't tried, but removing the PACKAGECONFIG just from elfutils will probably reproduce it as well (with possibly fewer recipes needing to rebuilt). There are 2 PACKAGECONFIGs for this, not sure which one is needed, but you can just disable both.

Cheers,

Quoted 171 lines · Victor Kamensky

Hi Martin,

Sorry about that. I am looking at it now.

Do I understand it correctly to reproduce the issue: I need to remove debuginfod (as it is currently on
by default) from DISTO_FEATURES and remove debuginfod from elfutils PACKAGECONFIG defaults?

Thanks,
Victor

Quoted 157 lines · Martin Jansa

This seems to be causing:
../git/util.cxx:51:10: fatal error: elfutils/debuginfod.h: No such file or directory
51 | #include <elfutils/debuginfod.h>

      |          ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.
make[2]: *** [Makefile:1389: stap-util.o] Error 1

on some systems.

Looks like with https://sourceware.org/git/?p=systemtap.git;a=commit;h=2e67b053e3796ee7cf29a39f9698729b52078406 it now enables debuginfod ("AC_MSG_RESULT([yes])" _after_ the PKG_CHECK_MODULES now seems wrong).

log.do_configure:
checking whether to use debuginfod... checking for debuginfod... no yes
checking for debuginfod_find_metadata in -ldebuginfod... no

build $ grep DEBUGINFO config.h
#define HAVE_LIBDEBUGINFOD 1

config.log (see the strange result yes):
configure:12213: checking whether to use debuginfod
configure:12228: checking for debuginfod
configure:12235: $PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12238: $? = 1
configure:12252: $PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179"
Package libdebuginfod was not found in the pkg-config search path.
Perhaps you should add the directory containing `libdebuginfod.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libdebuginfod' found
configure:12255: $? = 1
configure:12269: result: no
No package 'libdebuginfod' found
configure:12304: result: yes
configure:12315: checking for debuginfod_find_metadata in -ldebuginfod
configure:12344: ccache aarch64-webos-linux-gcc -mcpu=cortex-a72 -march=armv8-a+crc -mbranch-protection=standard -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -Werror=return-type --sysroot=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot -o conftest -O2 -pipe -g -feliminate-unused-debug-types -fcanon-prefix-map -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native= -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fcanon-prefix-map -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/git=/usr/src/debug/systemtap/5.0 -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/build=/usr/src/debug/systemtap/5.0 -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fmacro-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot= -fdebug-prefix-map=/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native= -Wl,-z,relro,-z,now conftest.c -ldebuginfod >&5
/OE/lge/build/webos/scarthgap/BUILD/work/raspberrypi4_64-webos-linux/systemtap/5.0/recipe-sysroot-native/usr/bin/aarch64-webos-linux/../../libexec/aarch64-webos-linux/gcc/aarch64-webos-linux/13.2.0/ld: cannot find -ldebuginfod: No such file or directory
collect2: error: ld returned 1 exit status

With debuginfod in DISTRO_FEATURES (which is included by default) and *debuginfod PACKAGECONFIG enabled in elfutils (also by default based on DISTRO_FEAUTRES) this builds OK.

Regards,

Quoted 108 lines · Victor Kamensky

Similar to 4.9 release, in 5.0 release release-5.0 tag is off any branch, release-5.0a tag e72dc118e563c645d93a1a2d771e8d90e8fec1ae is on the master branch. Use this value for SRCREV and add catch up patch, 0001-prerelease-datestamp-fixes.patch, to bring source up to release-5.0 tag level. Remove 0001-prerelease-datestamp-fixes.patch in next upgrade.

---
 .../0001-prerelease-datestamp-fixes.patch     | 23 ++++++++++++
 .../systemtap/0001-release-date-fix.patch     | 37 -------------------
 .../systemtap/systemtap_git.inc               |  6 +--
 3 files changed, 26 insertions(+), 40 deletions(-)
 create mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch
 delete mode 100644 meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch
meta/recipes-kernel/systemtap/systemtap/0001-prerelease-datestamp-fixes.patch new file +23 -0
new file mode 100644
index 0000000000..afdc10a3fe
@@ -0,0 +1,23 @@
+From cfc2c1d53924face11e3fab78ded61c359778eb9 Mon Sep 17 00:00:00 2001
+From: "Frank Ch. Eigler" <[email protected]>
+Date: Sat, 4 Nov 2023 12:19:59 -0400
+Subject: [PATCH] prerelease datestamp fixes
+
+Upstream-Status: Backport
+---
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/NEWS b/NEWS
+index c7f31e8b7..f0f9056c4 100644
+--- a/NEWS
++++ b/NEWS
+@@ -1,4 +1,4 @@
+-* What's new in version 5.0, 2023-11-03
++* What's new in version 5.0, 2023-11-04
+
+ - Performance improvements in uprobe registration and module startup.
+
+--
+2.31.1
+
meta/recipes-kernel/systemtap/systemtap/0001-release-date-fix.patch deleted +0 -37
deleted file mode 100644
index 3dcb369ec3..0000000000
@@ -1,37 +0,0 @@
-From ebb424eee5599fcc131901c0d82d0bfc0d2f57ab Mon Sep 17 00:00:00 2001
-From: "Frank Ch. Eigler" <[email protected]>
-Date: Fri, 28 Apr 2023 13:51:27 -0400
-Subject: [PATCH] release date fix
-
-Upstream-Status: Backport
----
- NEWS           | 2 +-
- systemtap.spec | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/NEWS b/NEWS
-index 695bc990c..46859e304 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,4 +1,4 @@
--* What's new in version 4.9, 2023-04-27
-+* What's new in version 4.9, 2023-04-28
-
- - ISystemtap: the new interactive systemtap jupyter kernel. This provides
-   a simple GUI for writing/running Systemtap scripts in an easy, incremental
-diff --git a/systemtap.spec b/systemtap.spec
-index 59814f112..fd8023264 100644
---- a/systemtap.spec
-+++ b/systemtap.spec
-@@ -1307,7 +1307,7 @@ exit 0
-
- # PRERELEASE
- %changelog
--* Thu Apr 27 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
-+* Fri Apr 28 2023 Frank Ch. Eigler <[email protected]> - 4.9-1
- - Upstream release, see wiki page below for detailed notes.
-   https://sourceware.org/systemtap/wiki/SystemTapReleases
-
---
-2.40.1
-
meta/recipes-kernel/systemtap/systemtap_git.inc +3 -3
index de3750ff04..bc2a9ff434 100644
@@ -1,13 +1,13 @@
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-SRCREV = "418f0a45ca4473491385b5c7eef777607bbdb3b7"
-PV = "4.9"
+SRCREV = "e72dc118e563c645d93a1a2d771e8d90e8fec1ae"
+PV = "5.0"
 
 SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master;protocol=https \
            file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \
            file://0001-Install-python-modules-to-correct-library-dir.patch \
            file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \
-           file://0001-release-date-fix.patch \
+           file://0001-prerelease-datestamp-fixes.patch \
            "
 
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
meta/recipes-kernel/systemtap/systemtap_git.inc +0 -1
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux'
--

2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#192332): https://lists.openembedded.org/g/openembedded-core/message/192332
Mute This Topic: https://lists.openembedded.org/mt/102987514/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#10 lore raw
Quoted 20 lines · Victor Kamensky
Quoted 8 lines · Martin Jansa

PACKAGECONFIG:remove:pn-elfutils = "debuginfod" PACKAGECONFIG:remove:pn-elfutils = "libdebuginfod" PACKAGECONFIG:remove:pn-binutils = "debuginfod"

in local.conf is the easiest way to reproduce it.

The one for binutils isn't strictly needed (but target binutils will

fail as well when debuginfod is disabled in elfutils and enabled in binutils).

Thanks, Martin. I was able to reproduce it with removing debuginfod from DISTRO_FEATURES_DEFAULT

Submitted patches to systemtap mailing list:
https://sourceware.org/pipermail/systemtap/2023q4/027914.html
https://sourceware.org/pipermail/systemtap/2023q4/027915.html

Quoted 8 lines

And to oe-core:

https://lists.openembedded.org/g/openembedded-core/message/192600?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2CVictor+Kamensky%2C20%2C2%2C0%2C103238308

https://lists.openembedded.org/g/openembedded-core/message/192601?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2CVictor+Kamensky%2C20%2C2%2C0%2C103238309

Appreciate reporting the issue!

Thanks for the fixes! They LGTM.