Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/librsync/files/, net-libs/librsync/
Date: Mon, 01 Feb 2016 01:53:14
Message-Id: 1454266760.0e25711b949a24d962f1319ecc34c671b7f4b370.monsieurp@gentoo
1 commit: 0e25711b949a24d962f1319ecc34c671b7f4b370
2 Author: Alessandro Calorì <axelgenus <AT> gmail <DOT> com>
3 AuthorDate: Sun Jan 31 18:58:32 2016 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 31 18:59:20 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e25711b
7
8 net-libs/librsync: fix bug #573144
9
10 .../librsync/files/librsync-2.0.0-search.patch | 12 +++++++++
11 net-libs/librsync/librsync-2.0.0-r1.ebuild | 31 ++++++++++++++++++++++
12 2 files changed, 43 insertions(+)
13
14 diff --git a/net-libs/librsync/files/librsync-2.0.0-search.patch b/net-libs/librsync/files/librsync-2.0.0-search.patch
15 new file mode 100644
16 index 0000000..93b4106
17 --- /dev/null
18 +++ b/net-libs/librsync/files/librsync-2.0.0-search.patch
19 @@ -0,0 +1,12 @@
20 +diff -Naur a/src/search.c b/src/search.c
21 +--- a/src/search.c 2015-11-29 21:43:12.000000000 +0100
22 ++++ b/src/search.c 2016-01-31 19:11:54.847933060 +0100
23 +@@ -218,7 +218,7 @@
24 + r = m;
25 + }
26 +
27 +- if (l == r) {
28 ++ if ((l == r) && (l <= bucket->r)) {
29 + int i = sig->targets[l].i;
30 + rs_block_sig_t *b = &(sig->block_sigs[i]);
31 + if (weak_sum != b->weak_sum)
32
33 diff --git a/net-libs/librsync/librsync-2.0.0-r1.ebuild b/net-libs/librsync/librsync-2.0.0-r1.ebuild
34 new file mode 100644
35 index 0000000..69b6692
36 --- /dev/null
37 +++ b/net-libs/librsync/librsync-2.0.0-r1.ebuild
38 @@ -0,0 +1,31 @@
39 +# Copyright 1999-2015 Gentoo Foundation
40 +# Distributed under the terms of the GNU General Public License v2
41 +# $Id$
42 +
43 +EAPI=5
44 +
45 +inherit cmake-utils
46 +
47 +DESCRIPTION="Remote delta-compression library"
48 +HOMEPAGE="http://librsync.sourcefrog.net/"
49 +SRC_URI="https://github.com/librsync/librsync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="LGPL-2.1"
52 +SLOT="0/2"
53 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
54 +
55 +RDEPEND="dev-libs/popt"
56 +DEPEND="${RDEPEND}"
57 +
58 +src_prepare() {
59 + # isprefix_test does not work in portage environment
60 + sed -i '169 s/^/#/' CMakeLists.txt || die
61 +
62 + # fix compiling with multilib-strict feature enabled
63 + sed -i "242 s/lib/$(get_libdir)/" CMakeLists.txt || die
64 +
65 + # fix bug 573144
66 + epatch "${FILESDIR}/${P}-search.patch"
67 +
68 + cmake-utils_src_prepare
69 +}