Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/memkind/, dev-libs/memkind/files/
Date: Tue, 07 Sep 2021 02:58:58
Message-Id: 1630820541.1d13a0a388f3cb468d2c1b98395c1f4e3198f2f6.lanodan@gentoo
1 commit: 1d13a0a388f3cb468d2c1b98395c1f4e3198f2f6
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Sep 5 05:42:21 2021 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Sun Sep 5 05:42:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d13a0a3
7
8 dev-libs/memkind: respect AR
9
10 Closes: https://bugs.gentoo.org/799452
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 dev-libs/memkind/files/memkind-respect-ar.patch | 11 +++++++++++
14 dev-libs/memkind/memkind-1.11.0-r1.ebuild | 4 +++-
15 2 files changed, 14 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-libs/memkind/files/memkind-respect-ar.patch b/dev-libs/memkind/files/memkind-respect-ar.patch
18 new file mode 100644
19 index 000000000..0318e2d8d
20 --- /dev/null
21 +++ b/dev-libs/memkind/files/memkind-respect-ar.patch
22 @@ -0,0 +1,11 @@
23 +--- a/Makefile.am
24 ++++ b/Makefile.am
25 +@@ -518,7 +518,7 @@
26 + endef
27 +
28 + static_lib: libmemkind.la
29 +- bash -c "ar -M < <(echo -e '$(ar_prog)')"
30 ++ bash -c "${AR} -M < <(echo -e '$(ar_prog)')"
31 + cp libmemkind.a .libs/
32 + rm libmemkind.a
33 +
34
35 diff --git a/dev-libs/memkind/memkind-1.11.0-r1.ebuild b/dev-libs/memkind/memkind-1.11.0-r1.ebuild
36 index d5aea5c96..a3e239b54 100644
37 --- a/dev-libs/memkind/memkind-1.11.0-r1.ebuild
38 +++ b/dev-libs/memkind/memkind-1.11.0-r1.ebuild
39 @@ -5,7 +5,7 @@ EAPI=8
40
41 PYTHON_COMPAT=( python3_{8..10} pypy3 )
42
43 -inherit autotools linux-info python-any-r1
44 +inherit autotools linux-info python-any-r1 toolchain-funcs
45
46 DESCRIPTION="user extensible heap manager built on top of jemalloc"
47 HOMEPAGE="https://memkind.github.io/memkind"
48 @@ -25,6 +25,7 @@ DEPEND="
49 ${PYTHON_DEPS}
50 "
51
52 +PATCHES=( "${FILESDIR}/${PN}-respect-ar.patch" )
53 RESTRICT="test" # ERROR: ./test/test.sh requires a NUMA enabled system with more than one node.
54 #RESTRICT="!test? ( test )"
55
56 @@ -35,6 +36,7 @@ src_prepare() {
57 }
58
59 src_configure() {
60 + tc-export AR
61 local myconf=(
62 --disable-silent-rules
63 --enable-shared