Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1572111
 поиск   регистрация   авторизация 
 
Группа :: Система/Основа
Пакет: util-linux

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: util-linux-2.11w-alt-tinfo.patch


diff -Naur util-linux-2.11w/configure util-linux-2.11w.new/configure
--- util-linux-2.11w/configure	2002-07-08 23:14:03 +0400
+++ util-linux-2.11w.new/configure	2002-10-16 13:26:49 +0400
@@ -411,14 +411,14 @@
 #include <termcap.h>
 int main(){ exit(0); tgetnum("li"); }
 ' > conftest.c
-LIBS=-ltermcap
+LIBS=-ltinfo
 eval $compile
 LIBS=
 if test -s conftest; then
 	echo "#define HAVE_termcap" >> defines.h
 	echo "HAVE_TERMCAP=yes" >> make_include
-	echo "LIBTERMCAP=-ltermcap" >> make_include
-	echo "You have termcap"
+	echo "LIBTERMCAP=-ltinfo" >> make_include
+	echo "You have tinfo"
 else
 	echo "HAVE_TERMCAP=no" >> make_include
 	if [ $have_ncurses = 0 ]; then
diff -Naur util-linux-2.11w/misc-utils/Makefile util-linux-2.11w.new/misc-utils/Makefile
--- util-linux-2.11w/misc-utils/Makefile	2002-10-16 13:28:28 +0400
+++ util-linux-2.11w.new/misc-utils/Makefile	2002-10-16 13:24:47 +0400
@@ -59,7 +59,7 @@
 
 $(NEEDS_CURSES):
 ifeq "$(HAVE_NCURSES)" "yes"
-	$(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES)
+	$(CC) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP)
 else
 	@echo $@ not made since it requires ncurses
 endif
diff -Naur util-linux-2.11w/text-utils/Makefile util-linux-2.11w.new/text-utils/Makefile
--- util-linux-2.11w/text-utils/Makefile	2002-10-16 13:28:28 +0400
+++ util-linux-2.11w.new/text-utils/Makefile	2002-10-16 13:27:59 +0400
@@ -42,7 +42,7 @@
 ifeq "$(HAVE_NCURSES)" "yes"
 # Have ncurses - make more and pg and ul
 pg ul:
-	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBCURSES)
+	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP)
 pg: pg.o
 ul: ul.o
 else
 
design & coding: Vladimir Lettiev aka crux © 2004-2005