Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libbloom/
Date: Sat, 13 Oct 2018 09:44:31
Message-Id: 1539423852.5334c986122aabfefc272f4d97de1753750ae3ad.slyfox@gentoo
1 commit: 5334c986122aabfefc272f4d97de1753750ae3ad
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 13 07:44:59 2018 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 13 09:44:12 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5334c986
7
8 net-libs/libbloom: fix build on 32-bit systems
9
10 The change adapts build system to be friendlier to Gentoo envorinment:
11 - avoid passing '-m64' unconditionally. Fixes build on ARCH=x86.
12 - avoid passing -O3 unconditionally. Rely on users' optimization flags.
13 - pass user's CC. Fixes simple cross-compilation case.
14
15 Patch by Zhaofeng Li.
16
17 Closes: https://bugs.gentoo.org/658466
18 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
19 Package-Manager: Portage-2.3.51, Repoman-2.3.11
20
21 net-libs/libbloom/{libbloom-1.5.ebuild => libbloom-1.5-r1.ebuild} | 8 +++++++-
22 1 file changed, 7 insertions(+), 1 deletion(-)
23
24 diff --git a/net-libs/libbloom/libbloom-1.5.ebuild b/net-libs/libbloom/libbloom-1.5-r1.ebuild
25 similarity index 77%
26 rename from net-libs/libbloom/libbloom-1.5.ebuild
27 rename to net-libs/libbloom/libbloom-1.5-r1.ebuild
28 index 665848c2f38..7e255245ef9 100644
29 --- a/net-libs/libbloom/libbloom-1.5.ebuild
30 +++ b/net-libs/libbloom/libbloom-1.5-r1.ebuild
31 @@ -1,8 +1,10 @@
32 -# Copyright 1999-2018 Gentoo Foundation
33 +# Copyright 1999-2018 Gentoo Authors
34 # Distributed under the terms of the GNU General Public License v2
35
36 EAPI=6
37
38 +inherit toolchain-funcs
39 +
40 DESCRIPTION="A simple and small bloom filter implementation in plain C."
41 HOMEPAGE="https://github.com/jvirkki/libbloom"
42 SRC_URI="https://github.com/jvirkki/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 @@ -15,6 +17,10 @@ IUSE=""
44 DEPEND=""
45 RDEPEND="${DEPEND}"
46
47 +src_compile() {
48 + emake CC=$(tc-getCC) BITS=default OPT=
49 +}
50 +
51 src_install() {
52 doheader bloom.h
53 dolib.so build/${PN}.so*