Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/lame/files: lame-3.99.5-pkgconfig-to-get-correct-libs.patch
Date: Sat, 02 Mar 2013 17:58:51
Message-Id: 20130302175847.CAEDD2171D@flycatcher.gentoo.org
1 ssuominen 13/03/02 17:58:47
2
3 Added: lame-3.99.5-pkgconfig-to-get-correct-libs.patch
4 Log:
5 Use pkg-config to get libncurses libraries, like libtinfo wrt #454322 by "Grigoriy"
6
7 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
8
9 Revision Changes Path
10 1.1 media-sound/lame/files/lame-3.99.5-pkgconfig-to-get-correct-libs.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.99.5-pkgconfig-to-get-correct-libs.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/lame/files/lame-3.99.5-pkgconfig-to-get-correct-libs.patch?rev=1.1&content-type=text/plain
14
15 Index: lame-3.99.5-pkgconfig-to-get-correct-libs.patch
16 ===================================================================
17 If libncurses is configured to build libtinfo as a separate library,
18 part of the symbols that used to be in libncurses are now in libtinfo
19
20 Use ncurses.pc to get correct "Libs:" and "Libs.private:"
21
22 http://bugs.gentoo.org/454322
23
24 --- configure.in
25 +++ configure.in
26 @@ -374,7 +374,7 @@
27 AC_CHECK_HEADERS(ncurses/termcap.h)
28 AC_CHECK_LIB(termcap, initscr, HAVE_TERMCAP="termcap")
29 AC_CHECK_LIB(curses, initscr, HAVE_TERMCAP="curses")
30 -AC_CHECK_LIB(ncurses, initscr, HAVE_TERMCAP="ncurses")
31 +PKG_CHECK_MODULES(TERMCAP, ncurses, HAVE_TERMCAP="ncurses", HAVE_TERMCAP="")
32
33 AM_ICONV
34
35 @@ -621,7 +621,7 @@
36 dnl todo: always use yes as default, use simulation instead ?
37 AC_MSG_CHECKING(for termcap)
38 if test "x${HAVE_TERMCAP}" != "x"; then
39 - FRONTEND_LDADD="-l${HAVE_TERMCAP} ${FRONTEND_LDADD}"
40 + FRONTEND_LDADD="-l${HAVE_TERMCAP} ${TERMCAP_LIBS} ${FRONTEND_LDADD}"
41 AC_DEFINE(HAVE_TERMCAP, 1, have termcap)
42 TERMCAP_DEFAULT="yes"
43 else