summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-09 03:23:18 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-09 03:23:18 +0000
commit2185eaf81b8040b2b12d37254c76e34e5a7f40be (patch)
tree81cf1aa6b25c55fe51f274bac6f41789cb17140e /sys-libs
parentversion bump (diff)
downloadgentoo-2-2185eaf81b8040b2b12d37254c76e34e5a7f40be.tar.gz
gentoo-2-2185eaf81b8040b2b12d37254c76e34e5a7f40be.tar.bz2
gentoo-2-2185eaf81b8040b2b12d37254c76e34e5a7f40be.zip
fix libutil properly rather than doing it the wrong way
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/readline/files/readline-5.1-rlfe-libutil.patch57
1 files changed, 3 insertions, 54 deletions
diff --git a/sys-libs/readline/files/readline-5.1-rlfe-libutil.patch b/sys-libs/readline/files/readline-5.1-rlfe-libutil.patch
index 14a1a155c1b9..83cfd18c61e0 100644
--- a/sys-libs/readline/files/readline-5.1-rlfe-libutil.patch
+++ b/sys-libs/readline/files/readline-5.1-rlfe-libutil.patch
@@ -1,66 +1,15 @@
On FreeBSD the openpty() function is provided by libutil. For this rason, it
has to be linked in the final executable. The current test is broken because
-it sets LIBS but that variable never gets into the Makefile. To make simpler
-its handling, just set a LIBUTIL variable that would be empty where it's not
-needed and contains -lutil where needed.
+it sets LIBS but that variable never gets into the Makefile.
-Index: readline-5.1/examples/rlfe/Makefile.in
-===================================================================
---- readline-5.1.orig/examples/rlfe/Makefile.in
+--- readline-5.1/examples/rlfe/Makefile.in
+++ readline-5.1/examples/rlfe/Makefile.in
@@ -25,7 +25,7 @@ CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
#LDFLAGS = -L$(READLINE_DIR)
LDFLAGS = @LDFLAGS@ -L../..
-LIBS = -lreadline -lhistory -lncurses
-+LIBS = -lreadline -lhistory -lncurses @LIBUTIL@
++LIBS = -lreadline -lhistory @LIBS@
CPP=@CPP@
CPP_DEPEND=$(CC) -MM
-Index: readline-5.1/examples/rlfe/configure.in
-===================================================================
---- readline-5.1.orig/examples/rlfe/configure.in
-+++ readline-5.1/examples/rlfe/configure.in
-@@ -251,9 +251,11 @@ AC_CHECK_FUNCS(getpt)
- dnl check for openpty()
- if test -z "$sysvr4ptys"; then
- AC_CHECK_FUNCS(openpty,,
--[AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY)] [LIBS="$LIBS -lutil"])])
-+[AC_CHECK_LIB(util,openpty, [AC_DEFINE(HAVE_OPENPTY)] [LIBUTIL="-lutil"])])
- fi
-
-+AC_SUBST(LIBUTIL)
-+
- AC_CHECKING(for ptyranges)
- if test -d /dev/ptym ; then
- pdir='/dev/ptym'
-Index: readline-5.1/examples/rlfe/configure
-===================================================================
---- readline-5.1.orig/examples/rlfe/configure
-+++ readline-5.1/examples/rlfe/configure
-@@ -272,7 +272,7 @@ PACKAGE_STRING=
- PACKAGE_BUGREPORT=
-
- ac_unique_file="rlfe.c"
--ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
-+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK LIBUTIL WRITEPATH XTERMPATH LIBOBJS LTLIBOBJS'
- ac_subst_files=''
-
- # Initialize some variables set by options.
-@@ -3805,7 +3805,7 @@ if test $ac_cv_lib_util_openpty = yes; t
- cat >>confdefs.h <<\_ACEOF
- #define HAVE_OPENPTY 1
- _ACEOF
-- LIBS="$LIBS -lutil"
-+ LIBUTIL="-lutil"
- fi
-
- fi
-@@ -4908,6 +4908,7 @@ s,@OBJEXT@,$OBJEXT,;t t
- s,@CPP@,$CPP,;t t
- s,@EGREP@,$EGREP,;t t
- s,@AWK@,$AWK,;t t
-+s,@LIBUTIL@,$LIBUTIL,;t t
- s,@WRITEPATH@,$WRITEPATH,;t t
- s,@XTERMPATH@,$XTERMPATH,;t t
- s,@LIBOBJS@,$LIBOBJS,;t t