0004-Don-t-look-in-usr-lib-termcap-for-libraries.patch 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. From bd152d01185a371a04680bc772c6454678de34f5 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Wed, 23 Dec 2015 11:36:00 +0100
  4. Subject: [PATCH] Don't look in /usr/lib/termcap for libraries
  5. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. ---
  7. setup.py | 5 +----
  8. 1 file changed, 1 insertion(+), 4 deletions(-)
  9. diff --git a/setup.py b/setup.py
  10. index 2e15fedeab2..b283ea3aeed 100644
  11. --- a/setup.py
  12. +++ b/setup.py
  13. @@ -1111,12 +1111,9 @@ def detect_readline_curses(self):
  14. pass # Issue 7384: Already linked against curses or tinfo.
  15. elif curses_library:
  16. readline_libs.append(curses_library)
  17. - elif self.compiler.find_library_file(self.lib_dirs +
  18. - ['/usr/lib/termcap'],
  19. - 'termcap'):
  20. + elif self.compiler.find_library_file(self.lib_dirs, 'termcap'):
  21. readline_libs.append('termcap')
  22. self.add(Extension('readline', ['readline.c'],
  23. - library_dirs=['/usr/lib/termcap'],
  24. libraries=readline_libs))
  25. else:
  26. self.missing.append('readline')
  27. --
  28. 2.44.0