From c84c252a1f6f3f90430420529f3c5fb81e5ac655 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Thu, 2 Oct 2025 11:08:54 +0800 Subject: [PATCH] fix linkage of pwrapi_adaptor --- eagle-fix-adaptor-linkage.patch | 10 ++++++++++ eagle.spec | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 eagle-fix-adaptor-linkage.patch diff --git a/eagle-fix-adaptor-linkage.patch b/eagle-fix-adaptor-linkage.patch new file mode 100644 index 0000000..f0bea15 --- /dev/null +++ b/eagle-fix-adaptor-linkage.patch @@ -0,0 +1,10 @@ +--- eagle/src/pwrapi_adaptor/CMakeLists.txt.orig 2025-10-02 10:38:35.268824900 +0800 ++++ eagle/src/pwrapi_adaptor/CMakeLists.txt 2025-10-02 10:39:31.773700700 +0800 +@@ -14,6 +14,7 @@ + set (PG_NAME ${PROJECT_NAME}) + add_library(${PG_NAME} SHARED ${SCHED_SRC}) + set_target_properties(${PG_NAME} PROPERTIES LINKER_LANGUAGE C) ++target_link_libraries(${PG_NAME} pwrapi) + set (CMAKE_EXPORT_COMPILE_COMMANDS ON) + + if(BUILD_LLT) diff --git a/eagle.spec b/eagle.spec index 3ac89c7..8dee263 100644 --- a/eagle.spec +++ b/eagle.spec @@ -1,13 +1,13 @@ Name: eagle Version: 1.1.0 -Release: 6 +Release: 7 Summary: eagle kit License: Mulan PSL v2 URL: https://gitee.com/openeuler/eagle Source0: eagle-mpctool.tar.gz Source1: eagle-1.1.0.tar.gz +Patch0: eagle-fix-adaptor-linkage.patch BuildRequires: gcc, make, cmake, powerapi-devel, numactl-devel -Requires: powerapi, numactl-libs, tar %description EAGLE(Energy Aware intelliGent scheduler) is a service for dynamically tuning the OS based on energy efficiency. @@ -25,6 +25,7 @@ Requires: python3-numpy python3-pandas python3-psutil python3-scipy ip %prep %setup -n mpctool -b 0 -T %setup -n eagle -b 1 -T +%patch -P0 -p1 %build cd %{_builddir}/mpctool @@ -98,6 +99,9 @@ systemctl disable mpctool.service %{python3_sitelib}/* %changelog +* Thu Oct 02 2025 Funda Wang - 1.1.0-7 +- fix linkage of pwrapi_adaptor + * Mon Dec 9 2024 heppen - 1.1.0-6 - Bug fix: spelling errors of freq_service and idle_service -- Gitee