blob: ed1c1b99750106eb6ea9ae8bbf8ad23633f586ca [file] [log] [blame]
Patrick Williams56b44a92024-01-19 08:49:29 -06001From 1438c3694665961aa9c478727846343ad31fa133 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Fri, 17 Nov 2023 14:16:40 +0100
4Subject: [PATCH] configure.ac: do not add a curses include path from the host
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
6This leads to host contamination, and particularly can cause
7curses modules to fail at runtime if the host curses is configured
8differently to native curses (observed on current OpenSuse Tumbleweed
9as dnf failures).
10
11Upstream-Status: Inappropriate [oe-core specific]
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Andrew Geissler595f6302022-01-24 19:11:47 +000013
Andrew Geissler82c905d2020-04-13 13:39:40 -050014---
15 configure.ac | 6 ------
Patrick Williams56b44a92024-01-19 08:49:29 -060016 1 file changed, 6 deletions(-)
Andrew Geissler82c905d2020-04-13 13:39:40 -050017
18diff --git a/configure.ac b/configure.ac
Patrick Williams56b44a92024-01-19 08:49:29 -060019index d81c19a..b15b765 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050020--- a/configure.ac
21+++ b/configure.ac
Patrick Williams56b44a92024-01-19 08:49:29 -060022@@ -6507,12 +6507,6 @@ AS_VAR_IF([have_panel], [no], [
23 AC_MSG_RESULT([$have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)])
24 ])
Andrew Geissler82c905d2020-04-13 13:39:40 -050025
26-# first curses header check
27-ac_save_cppflags="$CPPFLAGS"
28-if test "$cross_compiling" = no; then
29- CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
30-fi
31-
Andrew Geissler82c905d2020-04-13 13:39:40 -050032 # On Solaris, term.h requires curses.h
Patrick Williams56b44a92024-01-19 08:49:29 -060033 AC_CHECK_HEADERS([term.h], [], [], [
34 #ifdef HAVE_CURSES_H