summaryrefslogtreecommitdiffstats
path: root/postgresql-prefer-ncurses.patch
diff options
context:
space:
mode:
authorTom Lane <tgl@fedoraproject.org>2007-01-11 00:17:11 +0000
committerTom Lane <tgl@fedoraproject.org>2007-01-11 00:17:11 +0000
commit721f5ecff516f361863dbe1a2c827f443a447cb4 (patch)
tree3d57dd8e455c90ad40d85d248e9c7be7b22874bf /postgresql-prefer-ncurses.patch
parenta703279f8ef09ba2ceb2c7010f623a8c814044c3 (diff)
downloadpostgresql-setup-721f5ecff516f361863dbe1a2c827f443a447cb4.tar.gz
postgresql-setup-721f5ecff516f361863dbe1a2c827f443a447cb4.tar.xz
postgresql-setup-721f5ecff516f361863dbe1a2c827f443a447cb4.zip
Update to PostgreSQL 8.2.1, pgtcl 1.5.3postgresql-8_2_1-1_fc7
Diffstat (limited to 'postgresql-prefer-ncurses.patch')
-rw-r--r--postgresql-prefer-ncurses.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/postgresql-prefer-ncurses.patch b/postgresql-prefer-ncurses.patch
new file mode 100644
index 0000000..04a4efb
--- /dev/null
+++ b/postgresql-prefer-ncurses.patch
@@ -0,0 +1,20 @@
+This patch hacks the Postgres configure script to prefer libncurses over
+libtermcap. This is needed in the current Fedora environment because while
+both are available, libtermcap is deprecated and will be removed in the
+fairly near future. Because the need for this is short-term, I'm not
+going to try to push it upstream; this patch can go away once libtermcap
+is no longer present in the standard build environment.
+
+
+diff -Naur postgresql-8.2.1.orig/config/programs.m4 postgresql-8.2.1/config/programs.m4
+--- postgresql-8.2.1.orig/config/programs.m4 2006-05-23 15:28:45.000000000 -0400
++++ postgresql-8.2.1/config/programs.m4 2007-01-10 18:42:22.000000000 -0500
+@@ -88,7 +88,7 @@
+ fi
+ for pgac_rllib in $READLINE_ORDER ; do
+ AC_MSG_CHECKING([for ${pgac_rllib}])
+- for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
++ for pgac_lib in "" " -lncurses" " -ltermcap" " -lcurses" ; do
+ LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
+ AC_TRY_LINK_FUNC([readline], [[
+ # Older NetBSD, OpenBSD, and Irix have a broken linker that does not