OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../bird/0001-tgetent.patch
  5. # Copyright (C) 2013 - 2014 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. ncurses can be build as separate libraries, thus it is possible to have a
  17. separated libtinfo which has the symbol for tgetent.
  18. This patch is changing the order of library checks to find tgetent, thus
  19. that tinfo libs get checked before ncurses, so birdc will be linked against
  20. libtinfo and not libncurses which leads to linking problems.
  21. --- ./configure.in.orig 2014-04-01 12:24:10.000000000 +0300
  22. +++ ./configure.in 2014-09-26 21:57:26.085053034 +0300
  23. @@ -267,10 +267,10 @@
  24. if test "$enable_client" = yes ; then
  25. CLIENT=birdc
  26. AC_CHECK_LIB(history, add_history, CLIENT_LIBS="-lhistory")
  27. - AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses,
  28. - AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses,
  29. - AC_CHECK_LIB(tinfow, tgetent, USE_TERMCAP_LIB=-ltinfow,
  30. - AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo,
  31. + AC_CHECK_LIB(tinfow, tgetent, USE_TERMCAP_LIB=-ltinfow,
  32. + AC_CHECK_LIB(tinfo, tgetent, USE_TERMCAP_LIB=-ltinfo,
  33. + AC_CHECK_LIB(ncurses, tgetent, USE_TERMCAP_LIB=-lncurses,
  34. + AC_CHECK_LIB(curses, tgetent, USE_TERMCAP_LIB=-lcurses,
  35. AC_CHECK_LIB(termcap, tgetent, USE_TERMCAP_LIB=-ltermcap,
  36. AC_MSG_ERROR([[The client requires ncurses library. Either install the library or use --disable-client to compile without the client.]]))))))
  37. AC_CHECK_LIB(readline, rl_callback_read_char, CLIENT_LIBS="-lreadline $CLIENT_LIBS $USE_TERMCAP_LIB",