public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Mueller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:patchsets commit in: emacs/23.4/, emacs/24.2/
Date: Thu, 28 Feb 2013 06:06:05 +0000 (UTC)	[thread overview]
Message-ID: <1362008262.a146e78296f239a43494151b1665989dc1113df6.ulm@gentoo> (raw)

commit:     a146e78296f239a43494151b1665989dc1113df6
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 27 23:37:42 2013 +0000
Commit:     Ulrich Mueller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 27 23:37:42 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=a146e782

Fix build failure with separate tinfo library, bug 459458.

---
 emacs/23.4/14_all_ncurses-tinfo.patch |   31 +++++++++++++++++++++++++++++
 emacs/24.2/08_all_ncurses-tinfo.patch |   35 +++++++++++++++++++++++++++++++++
 2 files changed, 66 insertions(+), 0 deletions(-)

diff --git a/emacs/23.4/14_all_ncurses-tinfo.patch b/emacs/23.4/14_all_ncurses-tinfo.patch
new file mode 100644
index 0000000..7cd6165
--- /dev/null
+++ b/emacs/23.4/14_all_ncurses-tinfo.patch
@@ -0,0 +1,31 @@
+Fix runtime failure if built with separate tinfo library.
+https://bugs.gentoo.org/459458
+
+--- emacs-23.4-orig/configure.in
++++ emacs-23.4/configure.in
+@@ -2391,7 +2391,13 @@
+ # That is because we have not set up to link ncurses in lib-src.
+ # It's better to believe a function is not available
+ # than to expect to find it in ncurses.
+-AC_CHECK_LIB(ncurses, tparm)
++AC_SEARCH_LIBS(tparm, [ncurses tinfo],
++  [AC_DEFINE(HAVE_LIBNCURSES, 1,
++    [Define to 1 if you have the ncurses or tinfo library.])])
++if test "$ac_cv_search_tparm" = "-ltinfo"; then
++  LIBS_TINFO="-ltinfo"
++fi
++AC_SUBST(LIBS_TINFO)
+ 
+ case "$opsys" in
+   netbsd)
+--- emacs-23.4-orig/src/Makefile.in
++++ emacs-23.4/src/Makefile.in
+@@ -919,7 +919,7 @@
+    with GCC, we might need gnulib again after them.  */
+ 
+ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
+-   LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
++   LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP @LIBS_TINFO@ \
+    LIBS_DEBUG $(GETLOADAVG_LIBS) ${GCONF_LIBS} \
+    @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \
+    $(GNULIB_VAR) LIB_MATH LIB_STANDARD $(GNULIB_VAR)

diff --git a/emacs/24.2/08_all_ncurses-tinfo.patch b/emacs/24.2/08_all_ncurses-tinfo.patch
new file mode 100644
index 0000000..e4a6117
--- /dev/null
+++ b/emacs/24.2/08_all_ncurses-tinfo.patch
@@ -0,0 +1,35 @@
+Fix build failure with separate tinfo library.
+Patch taken from upstream bzr (emacs-24 branch) and backported to 24.2.
+https://bugs.gentoo.org/459458
+http://debbugs.gnu.org/9741
+
+--- emacs-24.2-orig/configure.in
++++ emacs-24.2/configure.in
+@@ -2813,7 +2813,7 @@
+ ])
+ # Maybe curses should be tried earlier?
+ # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35
+-for tputs_library in '' ncurses terminfo termcap curses; do
++for tputs_library in '' tinfo ncurses terminfo termcap curses; do
+   OLIBS=$LIBS
+   if test -z "$tputs_library"; then
+     LIBS_TERMCAP=
+@@ -2833,7 +2833,8 @@
+ AC_MSG_RESULT([$msg])
+ if test "X$msg" = Xno; then
+   AC_MSG_ERROR([The required function `tputs' was not found in any library.
+-These libraries were tried: libncurses, libterminfo, libtermcap, libcurses.
++The following libraries were tried (in order):
++  libtinfo, libncurses, libterminfo, libtermcap, libcurses
+ Please try installing whichever of these libraries is most appropriate
+ for your system, together with its header files.
+ For example, a libncurses-dev(el) or similar package.])
+@@ -2865,7 +2866,7 @@
+     ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
+     if test "x$HAVE_LIBNCURSES" = "xyes"; then
+       TERMINFO=yes
+-      LIBS_TERMCAP="-lncurses"
++      test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses"
+     fi
+     ;;
+ 


                 reply	other threads:[~2013-02-28  6:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1362008262.a146e78296f239a43494151b1665989dc1113df6.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox