UBUNTU: [Packaging] linux-tools: Add missing python perf symlink

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@canonical.com>
Acked-by: Kevin Becker <kevin.becker@canonical.com>
Acked-by: Agathe Porte <agathe.porte@canonical.com>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
This commit is contained in:
Juerg Haefliger
2025-01-23 17:06:33 +01:00
committed by Mehmet Basaran
parent 7d98a78e70
commit 6d1e050a5f
+5
View File
@@ -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)-$*