xterm/xterm-enable_libtinfo.patch
Petr Cerny 1d46060398 Accepting request 372759 from home:pcerny:factory
- Patch #324 - 2016/03/10
  * updated configure macro CF_LD_RPATH_OPT from ncurses changes.
  * provide alternate fix for Juha Nurmela's report by turning on
    POSIX signals if _POSIX_C_SOURCE is at least one. This is
    done to improve the behavior if a direct child process
    receives a STOP signal.
  * revert change to CF_POSIX_C_SOURCE from patch #323
    (reports by Ashish Shukla, Christian Weisgerber).
- Patch #323 - 2016/03/07
  * updated appdata and desktop files to add keywords (report by
    Richard Hughes).
  * modify configure macro CF_POSIX_C_SOURCE to accommodate some
    systems, e.g., FreeBSD, which have separated their
    implementation specific preprocessor symbols from the POSIX
    ones, requiring both to be defined (report by Juha Nurmela).
  * change the directory to the current working dir of the child
    process in exec-formatted and exec-selectable actions (patch
    by Alexander Pohoyda).
  * correct typo in xterm.man (patch by Larry Hynes).
  * correct typo in ctlseqs.ms (report by Shriramana Sharma).
  * add feature to support XHTML and SVG screen dumps (patch by
    Jens Schweikhardt).
  * correct response to DECRQSS when terminal id is less than 400
    (patch by Iwamoto Kouichi).

OBS-URL: https://build.opensuse.org/request/show/372759
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=138
2016-03-14 11:25:23 +00:00

55 lines
1.7 KiB
Diff

# check for libtinfo before falling back to ncurses
diff --git a/aclocal.m4 b/aclocal.m4
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -761,20 +761,20 @@ if test "$cf_full_tgetent" = yes ; then
else
cf_test_message="tgetent"
fi
AC_CACHE_CHECK(for $cf_test_message function,cf_cv_lib_tgetent,[
cf_save_LIBS="$LIBS"
cf_cv_lib_tgetent=no
if test "$cf_full_tgetent" = yes ; then
- cf_TERMLIB="otermcap termcap termlib ncurses curses"
+ cf_TERMLIB="otermcap termcap termlib tinfo ncurses curses"
cf_TERMTST="buffer[[0]] == 0"
else
- cf_TERMLIB="termlib ncurses curses"
+ cf_TERMLIB="termlib tinfo ncurses curses"
cf_TERMTST="0"
fi
for cf_termlib in '' $cf_TERMLIB ; do
LIBS="$cf_save_LIBS"
test -n "$cf_termlib" && { CF_ADD_LIB($cf_termlib) }
AC_TRY_RUN([
/* terminfo implementations ignore the buffer argument, making it useless for
* the xterm application, which uses this information to make a new TERMCAP
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5444,20 +5444,20 @@ echo "$as_me:5443: checking for $cf_test
echo $ECHO_N "checking for $cf_test_message function... $ECHO_C" >&6
if test "${cf_cv_lib_tgetent+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cf_save_LIBS="$LIBS"
cf_cv_lib_tgetent=no
if test "$cf_full_tgetent" = yes ; then
- cf_TERMLIB="otermcap termcap termlib ncurses curses"
+ cf_TERMLIB="otermcap termcap termlib tinfo ncurses curses"
cf_TERMTST="buffer[0] == 0"
else
- cf_TERMLIB="termlib ncurses curses"
+ cf_TERMLIB="termlib tinfo ncurses curses"
cf_TERMTST="0"
fi
for cf_termlib in '' $cf_TERMLIB ; do
LIBS="$cf_save_LIBS"
test -n "$cf_termlib" && {
cf_add_libs="-l$cf_termlib"
# Filter out duplicates - this happens with badly-designed ".pc" files...
for cf_add_1lib in $LIBS