7 Star 0 Fork 7

src-openEuler/powertop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-powertop-2.15-fix-configure-to-support-ncurses-w-tinfo.patch 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Funda Wang 提交于 2025-01-07 01:24 . fix build with latest gettext
From c339df50d858041255bb759fe8a6a54ce369409b Mon Sep 17 00:00:00 2001
From: Zentaro Kavanagh <zentaro@chromium.org>
Date: Thu, 14 Jun 2018 13:13:37 -0700
Subject: [PATCH] Fix configure to support ncurses w/ tinfo
- The existing code checked for both ncursesw and ncurses and if
both were not found, NCURSES_LIBS was not set correctly.
- Removed redundant concatenation to $LIBS since the makefile.am
already maps NCURSES_LIBS into LIBS.
- Patch sent upstream to powertop mailing list [1]
[1] - https://lists.01.org/pipermail/powertop/2018-June/002021.html
---
configure.ac | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index a69cf619..c698818b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,10 +116,13 @@ AC_CHECK_FUNCS([ \
AC_SEARCH_LIBS([clock_gettime], [rt])
-PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [
- AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
- AC_MSG_ERROR([ncurses is required but was not found])
- ], [])
+PKG_CHECK_MODULES([ncursesw], [ncursesw],
+ [NCURSES_CFLAGS="$ncursesw_CFLAGS"; NCURSES_LIBS="$ncursesw_LIBS"], [
+ PKG_CHECK_MODULES([NCURSES], [ncurses], [], [
+ AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
+ AC_MSG_ERROR([ncurses is required but was not found])
+ ])
+ ])
])
has_libpci=0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/powertop.git
git@gitee.com:src-openeuler/powertop.git
src-openeuler
powertop
powertop
master

搜索帮助