1 |
vapier 10/12/08 02:50:00 |
2 |
|
3 |
Modified: libtorrent-0.12.6.ebuild ChangeLog |
4 |
Log: |
5 |
Fix building on systems that lack posix_fallocate(). |
6 |
|
7 |
(Portage version: 2.2.0_alpha5/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.8 net-libs/libtorrent/libtorrent-0.12.6.ebuild |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild?rev=1.8&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild?rev=1.8&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild?r1=1.7&r2=1.8 |
15 |
|
16 |
Index: libtorrent-0.12.6.ebuild |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild,v |
19 |
retrieving revision 1.7 |
20 |
retrieving revision 1.8 |
21 |
diff -u -r1.7 -r1.8 |
22 |
--- libtorrent-0.12.6.ebuild 18 Aug 2010 04:39:47 -0000 1.7 |
23 |
+++ libtorrent-0.12.6.ebuild 8 Dec 2010 02:50:00 -0000 1.8 |
24 |
@@ -1,11 +1,11 @@ |
25 |
# Copyright 1999-2010 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild,v 1.7 2010/08/18 04:39:47 jer Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild,v 1.8 2010/12/08 02:50:00 vapier Exp $ |
29 |
|
30 |
EAPI=2 |
31 |
-inherit eutils libtool |
32 |
+inherit eutils libtool toolchain-funcs |
33 |
|
34 |
-DESCRIPTION="LibTorrent is a BitTorrent library written in C++ for *nix." |
35 |
+DESCRIPTION="BitTorrent library written in C++ for *nix" |
36 |
HOMEPAGE="http://libtorrent.rakshasa.no/" |
37 |
SRC_URI="http://libtorrent.rakshasa.no/downloads/${P}.tar.gz" |
38 |
|
39 |
@@ -25,13 +25,23 @@ |
40 |
} |
41 |
|
42 |
src_configure() { |
43 |
+ # the configure check for posix_fallocate is wrong. |
44 |
+ # reported upstream as Ticket 2416. |
45 |
+ local myconf |
46 |
+ echo "int main(){return posix_fallocate();}" > "${T}"/posix_fallocate.c |
47 |
+ if $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${T}"/posix_fallocate.c -o /dev/null 2>/dev/null ; then |
48 |
+ myconf="--with-posix-fallocate" |
49 |
+ else |
50 |
+ myconf="--without-posix-fallocate" |
51 |
+ fi |
52 |
+ |
53 |
econf \ |
54 |
--disable-dependency-tracking \ |
55 |
--enable-aligned \ |
56 |
$(use_enable debug) \ |
57 |
$(use_enable ipv6) \ |
58 |
$(use_enable ssl openssl) \ |
59 |
- --with-posix-fallocate |
60 |
+ ${myconf} |
61 |
} |
62 |
|
63 |
src_install() { |
64 |
|
65 |
|
66 |
|
67 |
1.154 net-libs/libtorrent/ChangeLog |
68 |
|
69 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/ChangeLog?rev=1.154&view=markup |
70 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/ChangeLog?rev=1.154&content-type=text/plain |
71 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/libtorrent/ChangeLog?r1=1.153&r2=1.154 |
72 |
|
73 |
Index: ChangeLog |
74 |
=================================================================== |
75 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/libtorrent/ChangeLog,v |
76 |
retrieving revision 1.153 |
77 |
retrieving revision 1.154 |
78 |
diff -u -r1.153 -r1.154 |
79 |
--- ChangeLog 18 Aug 2010 04:39:47 -0000 1.153 |
80 |
+++ ChangeLog 8 Dec 2010 02:50:00 -0000 1.154 |
81 |
@@ -1,6 +1,9 @@ |
82 |
# ChangeLog for net-libs/libtorrent |
83 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
84 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/ChangeLog,v 1.153 2010/08/18 04:39:47 jer Exp $ |
85 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/ChangeLog,v 1.154 2010/12/08 02:50:00 vapier Exp $ |
86 |
+ |
87 |
+ 08 Dec 2010; Mike Frysinger <vapier@g.o> libtorrent-0.12.6.ebuild: |
88 |
+ Fix building on systems that lack posix_fallocate(). |
89 |
|
90 |
18 Aug 2010; Jeroen Roovers <jer@g.o> libtorrent-0.12.6.ebuild: |
91 |
Stable for HPPA (bug #311143). |