mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 00:04:10 +00:00
dialog: inherit brokensep and use pkg-config to detect ncurses
1. inherit autotools-brokensep, or else configuration will fail since B!=S 2. use pkg-config to detect ncurses, since ncurses-config no longer works Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
parent
cc15a4fd24
commit
52b21a1951
@ -8,12 +8,14 @@ DEPENDS = "ncurses"
|
|||||||
LICENSE = "LGPL-2.1"
|
LICENSE = "LGPL-2.1"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
|
||||||
|
|
||||||
SRC_URI = "ftp://invisible-island.net/dialog/dialog-${PV}.tgz"
|
SRC_URI = "ftp://invisible-island.net/dialog/dialog-${PV}.tgz \
|
||||||
|
file://use-pkg-config-for-ncurses-detection.patch \
|
||||||
|
"
|
||||||
|
|
||||||
# hardcoded here for use in dialog-static recipe
|
# hardcoded here for use in dialog-static recipe
|
||||||
S = "${WORKDIR}/dialog-${PV}"
|
S = "${WORKDIR}/dialog-${PV}"
|
||||||
|
|
||||||
inherit autotools
|
inherit autotools-brokensep pkgconfig
|
||||||
|
|
||||||
EXTRA_OECONF = "--with-ncurses \
|
EXTRA_OECONF = "--with-ncurses \
|
||||||
--disable-rpath-hack"
|
--disable-rpath-hack"
|
||||||
|
|||||||
@ -0,0 +1,40 @@
|
|||||||
|
Subject: [PATCH] use pkg-config for ncurses detection.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [configuration]
|
||||||
|
|
||||||
|
This is a workaround to make dialog be able to build after ncurses-config
|
||||||
|
does not work, since the configure file is called directly in dialog bb
|
||||||
|
file, and autoconf can not work, make a workaround in configure file.
|
||||||
|
|
||||||
|
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
configure | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure b/configure
|
||||||
|
index 24e28c1..c78735d 100755
|
||||||
|
--- a/configure
|
||||||
|
+++ b/configure
|
||||||
|
@@ -9976,8 +9976,8 @@ fi
|
||||||
|
|
||||||
|
if test "$NCURSES_CONFIG" != none ; then
|
||||||
|
|
||||||
|
-CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
|
||||||
|
-LIBS="`$NCURSES_CONFIG --libs` $LIBS"
|
||||||
|
+CPPFLAGS="$CPPFLAGS `pkg-config --short-errors --print-errors --cflags "ncurses" 2>&1`"
|
||||||
|
+LIBS="`pkg-config --short-errors --print-errors --libs "ncurses" 2>&1` $LIBS"
|
||||||
|
|
||||||
|
# even with config script, some packages use no-override for curses.h
|
||||||
|
|
||||||
|
@@ -10096,7 +10096,7 @@ cat >>confdefs.h <<EOF
|
||||||
|
#define $cf_nculib_ROOT 1
|
||||||
|
EOF
|
||||||
|
|
||||||
|
-cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
|
||||||
|
+cf_cv_ncurses_version=`pkg-config --short-errors --print-errors --modversion "ncurses"`
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
--
|
||||||
|
1.7.10.4
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user