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]

Signed-off-by: Victor Kamensky <victor.kamens...@gmail.com>
---
 ...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

diff --git 
a/meta/recipes-kernel/systemtap/systemtap/0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch
 
b/meta/recipes-kernel/systemtap/systemtap/0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch
new file mode 100644
index 0000000000..2d46a3962d
--- /dev/null
+++ 
b/meta/recipes-kernel/systemtap/systemtap/0001-Makefile.am-remove-runtime-linux-uprobes-and-runtime.patch
@@ -0,0 +1,40 @@
+From 5a01e28bd806326b2143e3e6bb28d4780c5d879d Mon Sep 17 00:00:00 2001
+From: Victor Kamensky <victor.kamens...@gmail.com>
+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 <victor.kamens...@gmail.com>
+
+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
+
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc 
b/meta/recipes-kernel/systemtap/systemtap_git.inc
index bc2a9ff434..9fe85676fc 100644
--- a/meta/recipes-kernel/systemtap/systemtap_git.inc
+++ b/meta/recipes-kernel/systemtap/systemtap_git.inc
@@ -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 \
            "
 
-- 
2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#191796): 
https://lists.openembedded.org/g/openembedded-core/message/191796
Mute This Topic: https://lists.openembedded.org/mt/102987515/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to