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.

37 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../htop/0001-htop-check-for-libtinfo.patch
  5. # Copyright (C) 2013 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. check if we need to link against libtinfo to not have missing symbols
  17. compile-time error
  18. ------------------------------------------------------------------------------
  19. ld: htop-CRT.o: undefined reference to symbol 'nocbreak'
  20. ld: note: 'nocbreak' is defined in DSO /lib/libtinfo.so.5 so try adding it to the linker command line
  21. ------------------------------------------------------------------------------
  22. --- a/configure.ac 2013-12-22 02:46:17.146617569 +0100
  23. +++ b/configure.ac 2013-12-22 02:56:00.300126717 +0100
  24. @@ -101,6 +101,10 @@
  25. AC_CHECK_HEADERS([curses.h],[:],[missing_headers="$missing_headers $ac_header"])
  26. fi
  27. +# ncurses can be also build as separate libraries
  28. +# check if we need to link against libtinfo to not have missing symbols
  29. +AC_CHECK_LIB([tinfo], [nocbreak], [], [])
  30. +
  31. if test ! -z "$missing_libraries"; then
  32. AC_MSG_ERROR([missing libraries: $missing_libraries])
  33. fi