[PATCH 1/1][SRU][Unstable] UBUNTU: SAUCE: [Packaging] include derived type in libcpupower versioned surffix
You-Sheng Yang
vicamo.yang at canonical.com
Thu Oct 5 16:58:49 UTC 2023
BugLink: https://bugs.launchpad.net/bugs/2035971
libcpupower originally has versioned surffix $(abi_release), but when
two derived kernel with same ABI, their linux-tools companion packages
will conflict to each other as they all want to install libcpupower of
the same filename.
With this patch, it installs, e.g. libcpupower.so.6.5.0-1001-unstable, instead.
Signed-off-by: You-Sheng Yang <vicamo.yang at canonical.com>
---
debian/rules.d/2-binary-arch.mk | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 53fbb55c198a..72652b876592 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -711,11 +711,13 @@ endif
ifeq ($(do_tools_cpupower),true)
# Allow for multiple installed versions of cpupower and libcpupower.so:
# Override LIB_MIN in order to to generate a versioned .so named
- # libcpupower.so.$(abi_release) and link cpupower with that.
+ # libcpupower.so.$(abi_release)$(patsubst linux%,%,$(src_pkg_name)) and
+ # link cpupower with that.
make -C $(builddirpa)/tools/power/cpupower \
CROSS_COMPILE=$(CROSS_COMPILE) \
CROSS=$(CROSS_COMPILE) \
- LIB_MIN=$(abi_release) CPUFREQ_BENCH=false
+ LIB_MIN=$(abi_release)$(patsubst linux%,%,$(src_pkg_name)) \
+ CPUFREQ_BENCH=false
endif
ifeq ($(do_tools_perf),true)
cd $(builddirpa) && $(kmake) $(defconfig)
@@ -765,9 +767,10 @@ endif
ifeq ($(do_tools_cpupower),true)
install -m755 $(builddirpa)/tools/power/cpupower/cpupower \
$(toolspkgdir)/usr/lib/$(src_pkg_name)-tools-$(abi_release)
- # Install only the full versioned libcpupower.so.$(abi_release), not
+ # Install only the full versioned
+ # libcpupower.so.$(abi_release)$(patsubst linux%,%,$(src_pkg_name)), not
# the usual symlinks to it.
- install -m644 $(builddirpa)/tools/power/cpupower/libcpupower.so.$(abi_release) \
+ install -m644 $(builddirpa)/tools/power/cpupower/libcpupower.so.$(abi_release)$(patsubst linux%,%,$(src_pkg_name)) \
$(toolspkgdir)/usr/lib/
endif
ifeq ($(do_tools_perf),true)
--
2.40.1
More information about the kernel-team
mailing list