summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-01-14 05:20:07 +0000
committerMike Frysinger <vapier@gentoo.org>2009-01-14 05:20:07 +0000
commit02f3a4ac58a0c6c57cfd7e691ded194f620e9da9 (patch)
tree5c42ac506ac01a840b8c21ba86db6d6116cf03c2 /net-libs/libbt
parentFix building with newer glibc #251446 by Diego E. Pettenò. (diff)
downloadgentoo-2-02f3a4ac58a0c6c57cfd7e691ded194f620e9da9.tar.gz
gentoo-2-02f3a4ac58a0c6c57cfd7e691ded194f620e9da9.tar.bz2
gentoo-2-02f3a4ac58a0c6c57cfd7e691ded194f620e9da9.zip
Fix building with newer glibc #248034 by Diego E. Pettenò.
(Portage version: 2.2_rc20/cvs/Linux 2.6.28 x86_64)
Diffstat (limited to 'net-libs/libbt')
-rw-r--r--net-libs/libbt/ChangeLog8
-rw-r--r--net-libs/libbt/files/libbt-1.05-build.patch14
-rw-r--r--net-libs/libbt/libbt-1.05.ebuild28
3 files changed, 31 insertions, 19 deletions
diff --git a/net-libs/libbt/ChangeLog b/net-libs/libbt/ChangeLog
index 9227121ebca7..578f231815d7 100644
--- a/net-libs/libbt/ChangeLog
+++ b/net-libs/libbt/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-libs/libbt
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/ChangeLog,v 1.13 2007/07/02 14:53:02 peper Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/ChangeLog,v 1.14 2009/01/14 05:20:07 vapier Exp $
+
+ 14 Jan 2009; Mike Frysinger <vapier@gentoo.org>
+ +files/libbt-1.05-build.patch, libbt-1.05.ebuild:
+ Fix building with newer glibc #248034 by Diego E. Pettenò.
02 Jul 2007; Piotr Jaroszyński <peper@gentoo.org> libbt-1.05.ebuild:
(QA) RESTRICT clean up.
diff --git a/net-libs/libbt/files/libbt-1.05-build.patch b/net-libs/libbt/files/libbt-1.05-build.patch
new file mode 100644
index 000000000000..cd82787e6e0b
--- /dev/null
+++ b/net-libs/libbt/files/libbt-1.05-build.patch
@@ -0,0 +1,14 @@
+fix building with newer glibc
+
+http://bugs.gentoo.org/248034
+
+--- src/peer.c
++++ src/peer.c
+@@ -35,6 +35,7 @@
+ #include <time.h>
+ #include <poll.h>
+ #include <assert.h>
++#include <limits.h>
+
+ #include "bterror.h"
+ #include "btmessage.h"
diff --git a/net-libs/libbt/libbt-1.05.ebuild b/net-libs/libbt/libbt-1.05.ebuild
index f7bdc7fee92b..3a45263a8efa 100644
--- a/net-libs/libbt/libbt-1.05.ebuild
+++ b/net-libs/libbt/libbt-1.05.ebuild
@@ -1,17 +1,16 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/libbt-1.05.ebuild,v 1.3 2007/07/02 14:53:02 peper Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libbt/libbt-1.05.ebuild,v 1.4 2009/01/14 05:20:07 vapier Exp $
inherit eutils
-DESCRIPTION="libBT is an implementation of the BitTorrent core protocols in C"
-HOMEPAGE="http://libbt.sourceforge.net"
+DESCRIPTION="implementation of the BitTorrent core protocols in C"
+HOMEPAGE="http://libbt.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-RESTRICT="mirror"
-SLOT="0"
+
LICENSE="GPL-2"
+SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
-
IUSE=""
DEPEND="dev-libs/openssl
@@ -21,21 +20,16 @@ DEPEND="dev-libs/openssl
src_unpack() {
unpack ${A}
cd "${S}"
-
+ epatch "${FILESDIR}"/${P}-build.patch #248034
epatch "${FILESDIR}"/${PV}-btlist.patch # 152489
+ sed -i -e '/CFLAGS/s|:=|+=|' src/Makefile.in || die
}
-src_compile () {
- econf || die
- sed -i -e "s:-g -Wall:${CFLAGS} -g -Wall:g" src/Makefile
- emake || die
-}
-
-src_install () {
- dobin src/btlist src/btget src/btcheck
+src_install() {
+ dobin src/btlist src/btget src/btcheck || die
doman man/*
insinto /usr/include/libbt
doins include/*
dolib src/libbt.a
- dodoc CHANGELOG COPYING CREDITS README docs/*
+ dodoc CHANGELOG CREDITS README docs/*
}