]> code.ossystems Code Review - openembedded-core.git/commitdiff
ncurses: remove config.cache
authorRoss Burton <ross.burton@intel.com>
Thu, 10 Sep 2020 20:53:54 +0000 (21:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Sep 2020 16:59:56 +0000 (17:59 +0100)
Instead of having a config.cache that overrides the system site files,
simply set the values in CACHED_CONFIGUREVARS. We can also drop the
mkstemp check as the configure.ac assumes it works, leaving just
nanosleep.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/ncurses/files/config.cache [deleted file]
meta/recipes-core/ncurses/ncurses.inc
meta/recipes-core/ncurses/ncurses_6.2.bb

diff --git a/meta/recipes-core/ncurses/files/config.cache b/meta/recipes-core/ncurses/files/config.cache
deleted file mode 100644 (file)
index 6a9217d..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#! /bin/sh
-
-cf_cv_func_nanosleep=yes
-cf_cv_func_mkstemp=yes
index 4156bf4f7d1f5cd01971b11ea9de09edd243ec22..1627fb91d37dfc07baf0d162853d15f80816f548 100644 (file)
@@ -16,7 +16,8 @@ inherit autotools binconfig-disabled multilib_header pkgconfig
 SRC_URI = "git://salsa.debian.org/debian/ncurses.git;protocol=https"
 
 EXTRA_AUTORECONF = "-I m4"
-CONFIG_SITE =+ "${WORKDIR}/config.cache"
+
+CACHED_CONFIGUREVARS = "cf_cv_func_nanosleep=yes"
 
 EXTRASITECONFIG = "CFLAGS='${CFLAGS} -I${SYSROOT_DESTDIR}${includedir}'"
 
index 723e685a9b926e7f59e7871f363583842606a646..5c02db8541a39b77e25ac501c6c46e5790c70f1e 100644 (file)
@@ -2,12 +2,11 @@ require ncurses.inc
 
 SRC_URI += "file://0001-tic-hang.patch \
            file://0002-configure-reproducible.patch \
-           file://config.cache \
            "
 # commit id corresponds to the revision in package version
 SRCREV = "a669013cd5e9d6434e5301348ea51baf306c93c4"
 S = "${WORKDIR}/git"
-EXTRA_OECONF += "--with-abi-version=5 --cache-file=${B}/config.cache"
+EXTRA_OECONF += "--with-abi-version=5"
 UPSTREAM_CHECK_GITTAGREGEX = "(?P<pver>\d+(\.\d+)+(\+\d+)*)"
 
 # This is needed when using patchlevel versions like 6.1+20181013