summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch')
-rw-r--r--meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch b/meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch
new file mode 100644
index 0000000000..b5b4b3c3cf
--- /dev/null
+++ b/meta-oe/recipes-extended/dialog/files/use-pkg-config-for-ncurses-detection.patch
@@ -0,0 +1,40 @@
1Subject: [PATCH] use pkg-config for ncurses detection.
2
3Upstream-Status: Inappropriate [configuration]
4
5This is a workaround to make dialog be able to build after ncurses-config
6does not work, since the configure file is called directly in dialog bb
7file, and autoconf can not work, make a workaround in configure file.
8
9Signed-off-by: Roy Li <rongqing.li@windriver.com>
10---
11 configure | 6 +++---
12 1 file changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/configure b/configure
15index 24e28c1..c78735d 100755
16--- a/configure
17+++ b/configure
18@@ -9976,8 +9976,8 @@ fi
19
20 if test "$NCURSES_CONFIG" != none ; then
21
22-CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
23-LIBS="`$NCURSES_CONFIG --libs` $LIBS"
24+CPPFLAGS="$CPPFLAGS `pkg-config --short-errors --print-errors --cflags "ncurses" 2>&1`"
25+LIBS="`pkg-config --short-errors --print-errors --libs "ncurses" 2>&1` $LIBS"
26
27 # even with config script, some packages use no-override for curses.h
28
29@@ -10096,7 +10096,7 @@ cat >>confdefs.h <<EOF
30 #define $cf_nculib_ROOT 1
31 EOF
32
33-cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
34+cf_cv_ncurses_version=`pkg-config --short-errors --print-errors --modversion "ncurses"`
35
36 else
37
38--
391.7.10.4
40