Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/sord/, dev-libs/sord/files/
Date: Wed, 14 Apr 2021 19:39:42
Message-Id: 1618429051.e2be84caf596edfce747ca9919b52fbb563198c7.fordfrog@gentoo
1 commit: e2be84caf596edfce747ca9919b52fbb563198c7
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 14 19:37:31 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 14 19:37:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2be84ca
7
8 dev-libs/sord: fixed gcc optimization issue
9
10 Closes: https://bugs.gentoo.org/782886
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
13
14 ...ash-with-optimized-builds-with-gcc-10.1.0.patch | 25 ++++++++++++++++++++++
15 .../{sord-0.16.8.ebuild => sord-0.16.8-r1.ebuild} | 4 ++++
16 2 files changed, 29 insertions(+)
17
18 diff --git a/dev-libs/sord/files/sord-0.16.8-fix-crash-with-optimized-builds-with-gcc-10.1.0.patch b/dev-libs/sord/files/sord-0.16.8-fix-crash-with-optimized-builds-with-gcc-10.1.0.patch
19 new file mode 100644
20 index 00000000000..c7f3e66c79f
21 --- /dev/null
22 +++ b/dev-libs/sord/files/sord-0.16.8-fix-crash-with-optimized-builds-with-gcc-10.1.0.patch
23 @@ -0,0 +1,25 @@
24 +From 616517f44ceeacb26592e50e2bf914aad2d93b90 Mon Sep 17 00:00:00 2001
25 +From: David Robillard <d@××××××××.net>
26 +Date: Fri, 17 Jul 2020 15:38:38 +0200
27 +Subject: [PATCH] Fix crash with optimized builds with GCC 10.1.0
28 +
29 +---
30 + src/zix/btree.c | 2 +-
31 + 1 file changed, 1 insertion(+), 1 deletion(-)
32 +
33 +diff --git a/src/zix/btree.c b/src/zix/btree.c
34 +index 78a5a0d..d830008 100644
35 +--- a/src/zix/btree.c
36 ++++ b/src/zix/btree.c
37 +@@ -689,7 +689,7 @@ zix_btree_begin(const ZixBTree* const t)
38 + ZIX_API bool
39 + zix_btree_iter_is_end(const ZixBTreeIter* const i)
40 + {
41 +- return !i || i->stack[0].node == NULL;
42 ++ return !i || (i->level == 0 && i->stack[0].node == NULL);
43 + }
44 +
45 + ZIX_API void
46 +--
47 +GitLab
48 +
49
50 diff --git a/dev-libs/sord/sord-0.16.8.ebuild b/dev-libs/sord/sord-0.16.8-r1.ebuild
51 similarity index 93%
52 rename from dev-libs/sord/sord-0.16.8.ebuild
53 rename to dev-libs/sord/sord-0.16.8-r1.ebuild
54 index 26bfc0bacf6..1b9950ec3e5 100644
55 --- a/dev-libs/sord/sord-0.16.8.ebuild
56 +++ b/dev-libs/sord/sord-0.16.8-r1.ebuild
57 @@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
58 "
59 DOCS=( "AUTHORS" "NEWS" "README.md" )
60
61 +PATCHES=(
62 + "${FILESDIR}/${P}-fix-crash-with-optimized-builds-with-gcc-10.1.0.patch"
63 +)
64 +
65 src_prepare() {
66 sed -i -e 's/^.*run_ldconfig/#\0/' wscript || die
67 default