0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 12:49:50 +00:00
packages/lang/python/python3/patches/010-no-ncursesw.patch
Sean Khan 49e3c330d4 python3: Bump version 3.11 to 3.11.9
Also bumps setuptools to version 24.0

Run tested: aarch64, Dynalink DL-WRX36, Master Branch

Maintainer: Jeffery To <jeffery.to@gmail.com>

Signed-off-by: Sean Khan <datapronix@protonmail.com>
2024-11-07 15:06:56 -08:00

53 lines
1.5 KiB
Diff

--- a/configure.ac
+++ b/configure.ac
@@ -5840,20 +5840,13 @@ if test "$with_readline" != no; then
# library. NOTE: Keep the precedence of listed libraries synchronised
# with setup.py.
AC_MSG_CHECKING([how to link readline libs])
- for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do
- if test -z "$py_libtermcap"; then
- READLINE_LIBS="-l$LIBREADLINE"
- else
- READLINE_LIBS="-l$LIBREADLINE -l$py_libtermcap"
- fi
- LIBS="$READLINE_LIBS $LIBS_no_readline"
- AC_LINK_IFELSE(
- [AC_LANG_CALL([],[readline])],
- [py_cv_lib_readline=yes])
- if test $py_cv_lib_readline = yes; then
- break
- fi
- done
+ PKG_CHECK_MODULES_STATIC(
+ [READLINE], [readline], [
+ py_cv_lib_readline=yes
+ AC_DEFINE(HAVE_LIBREADLINE, 1,
+ [Define to build the readline module.])
+ ], py_cv_lib_readline=no
+ )
# Uncomment this line if you want to use READLINE_LIBS in Makefile or scripts
#AC_SUBST([READLINE_LIBS])
@@ -5861,8 +5854,6 @@ if test "$with_readline" != no; then
AC_MSG_RESULT([none])
else
AC_MSG_RESULT([$READLINE_LIBS])
- AC_DEFINE(HAVE_LIBREADLINE, 1,
- [Define to build the readline module.])
fi
fi
@@ -6100,12 +6091,6 @@ then
[Define if you have struct stat.st_mtimensec])
fi
-# first curses header check
-ac_save_cppflags="$CPPFLAGS"
-if test "$cross_compiling" = no; then
- CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
-fi
-
AC_CHECK_HEADERS(curses.h ncurses.h)
# On Solaris, term.h requires curses.h