[SRU][O][N][PATCH v2 1/3] UBUNTU: [Packaging] linux-tools: Add missing python perf symlink
Juerg Haefliger
juerg.haefliger at canonical.com
Thu Jan 23 16:06:33 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2089411
The python perf library needs a symlink from the unflavored to the
flavored package directory, just like any of the other tools binaries.
However, it's somewhat special in that the link target name cannot be
determined easily and reliably (python-version- and host-architecture-
specific). To work around that, link the subdirectory that contains it.
Signed-off-by: Juerg Haefliger <juerg.haefliger at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 6857a12a87e3..54c9228e5145 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -368,6 +368,11 @@ ifeq ($(do_tools_perf),true)
ifeq ($(do_tools_perf_jvmti),true)
$(LN) ../../$(src_pkg_name)-tools-$(abi_release)/libperf-jvmti.so $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
endif
+ifeq ($(do_tools_perf_python),true)
+ # Link the subdirectory that contains the .so rather than the file itself. Its name is
+ # pseudo-random and can't be determined easily and reliably.
+ $(LN) ../../$(src_pkg_name)-tools-$(abi_release)/lib $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
+endif
endif
ifeq ($(do_tools_bpftool),true)
$(LN) ../../$(src_pkg_name)-tools-$(abi_release)/bpftool $(toolspkgdir)/usr/lib/linux-tools/$(abi_release)-$*
--
2.43.0
More information about the kernel-team
mailing list