0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. From 011b21dc9b090c0b97eaecbd80a9e0c1cd39b12d Mon Sep 17 00:00:00 2001
  2. From: Alexander Kanavin <alex@linutronix.de>
  3. Date: Fri, 17 Nov 2023 14:16:40 +0100
  4. Subject: [PATCH] configure.ac: do not add a curses include path from the host
  5. This leads to host contamination, and particularly can cause
  6. curses modules to fail at runtime if the host curses is configured
  7. differently to native curses (observed on current OpenSuse Tumbleweed
  8. as dnf failures).
  9. Upstream-Status: Inappropriate [oe-core specific]
  10. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
  11. ---
  12. configure.ac | 6 ------
  13. 1 file changed, 6 deletions(-)
  14. diff --git a/configure.ac b/configure.ac
  15. index 6e465a4..13c4835 100644
  16. --- a/configure.ac
  17. +++ b/configure.ac
  18. @@ -6558,12 +6558,6 @@ AS_VAR_IF([have_panel], [no], [
  19. AC_MSG_RESULT([$have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)])
  20. ])
  21. -# first curses header check
  22. -ac_save_cppflags="$CPPFLAGS"
  23. -if test "$cross_compiling" = no; then
  24. - CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
  25. -fi
  26. -
  27. # On Solaris, term.h requires curses.h
  28. AC_CHECK_HEADERS([term.h], [], [], [
  29. #ifdef HAVE_CURSES_H