Группа :: Базы Данных
Пакет: postgresql
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: postgresql-7.2.1-tinfo.patch
diff -Nur postgresql-7.2.1.orig/config/programs.m4 postgresql-7.2.1/config/programs.m4
--- postgresql-7.2.1.orig/config/programs.m4 2002-07-02 09:45:35 +0600
+++ postgresql-7.2.1/config/programs.m4 2002-07-02 09:56:51 +0600
@@ -73,7 +73,7 @@
# PGAC_CHECK_READLINE
# -------------------
# Check for the readline library and dependent libraries, either
-# termcap or curses. Also try libedit, since NetBSD's is compatible.
+# terminfo or curses. Also try libedit, since NetBSD's is compatible.
# Add the required flags to LIBS, define HAVE_LIBREADLINE.
AC_DEFUN([PGAC_CHECK_READLINE],
@@ -82,7 +82,7 @@
AC_CACHE_VAL([pgac_cv_check_readline],
[pgac_cv_check_readline=no
-for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
+for pgac_lib in "" " -ltinfo" ; do
for pgac_rllib in -lreadline -ledit ; do
pgac_save_LIBS=$LIBS
LIBS="${pgac_rllib}${pgac_lib} $LIBS"
diff -Nur postgresql-7.2.1.orig/configure postgresql-7.2.1/configure
--- postgresql-7.2.1.orig/configure 2002-07-02 09:45:46 +0600
+++ postgresql-7.2.1/configure 2002-07-02 09:56:29 +0600
@@ -3290,7 +3290,7 @@
echo $ac_n "(cached) $ac_c" 1>&6
else
pgac_cv_check_readline=no
-for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
+for pgac_lib in "" " -ltinfo" ; do
for pgac_rllib in -lreadline -ledit ; do
pgac_save_LIBS=$LIBS
LIBS="${pgac_rllib}${pgac_lib} $LIBS"
diff -Nur postgresql-7.2.1.orig/src/Makefile.shlib postgresql-7.2.1/src/Makefile.shlib
--- postgresql-7.2.1.orig/src/Makefile.shlib 2002-07-02 09:45:41 +0600
+++ postgresql-7.2.1/src/Makefile.shlib 2002-07-02 09:56:35 +0600
@@ -260,7 +260,7 @@
ifeq ($(PORTNAME), beos)
shlib := lib$(NAME)$(DLSUFFIX)
LINK.shared = $(LD) -nostart
- SHLIB_LINK += -ltermcap -lstdc++.r4 -lbind -lsocket -L/boot/develop/lib/x86
+ SHLIB_LINK += -ltinfo -lstdc++.r4 -lbind -lsocket -L/boot/develop/lib/x86
endif
SHLIB_LINK := $(filter -L%, $(LDFLAGS)) $(SHLIB_LINK)