Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/appstream/files/, dev-libs/appstream/
Date: Sat, 17 Nov 2018 18:39:53
Message-Id: 1542479961.110872071b01b805f71afe6fdfb1bf0ac2c4f879.asturm@gentoo
1 commit: 110872071b01b805f71afe6fdfb1bf0ac2c4f879
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 17 16:45:00 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 17 18:39:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11087207
7
8 dev-libs/appstream: Fix build with GCC-7.3.0
9
10 Reported-by: Oruriz <oruriz <AT> protonmail.com>
11 Thanks-to: Felix Tiede <info <AT> pc-tiede.de>
12 Closes: https://bugs.gentoo.org/670584
13 Package-Manager: Portage-2.3.51, Repoman-2.3.12
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 dev-libs/appstream/appstream-0.12.2.ebuild | 2 ++
17 .../appstream/files/appstream-0.12.2-gcc-7.3.patch | 24 ++++++++++++++++++++++
18 2 files changed, 26 insertions(+)
19
20 diff --git a/dev-libs/appstream/appstream-0.12.2.ebuild b/dev-libs/appstream/appstream-0.12.2.ebuild
21 index f2aa30c08f7..ff514c29496 100644
22 --- a/dev-libs/appstream/appstream-0.12.2.ebuild
23 +++ b/dev-libs/appstream/appstream-0.12.2.ebuild
24 @@ -43,6 +43,8 @@ DEPEND="${RDEPEND}
25 )
26 "
27
28 +PATCHES=( "${FILESDIR}/${P}-gcc-7.3.patch" )
29 +
30 src_prepare() {
31 default
32 sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die
33
34 diff --git a/dev-libs/appstream/files/appstream-0.12.2-gcc-7.3.patch b/dev-libs/appstream/files/appstream-0.12.2-gcc-7.3.patch
35 new file mode 100644
36 index 00000000000..3eb8b0db877
37 --- /dev/null
38 +++ b/dev-libs/appstream/files/appstream-0.12.2-gcc-7.3.patch
39 @@ -0,0 +1,24 @@
40 +From 9252de815e4443d1b617211f38685afe7c0f6b0e Mon Sep 17 00:00:00 2001
41 +From: Matthias Klumpp <matthias@××××××××.net>
42 +Date: Sat, 20 Oct 2018 20:20:09 +0200
43 +Subject: [PATCH] Explicitly include string.h in as-tag.c
44 +
45 +This apparently is necessary to fix an FTBFS issue with older GCC
46 +releases. Resolves #207
47 +---
48 + src/as-tag.c | 2 ++
49 + 1 file changed, 2 insertions(+)
50 +
51 +diff --git a/src/as-tag.c b/src/as-tag.c
52 +index 6afba621..91076e69 100644
53 +--- a/src/as-tag.c
54 ++++ b/src/as-tag.c
55 +@@ -32,6 +32,8 @@
56 +
57 + #include "as-tag.h"
58 +
59 ++#include <string.h>
60 ++
61 + #ifdef __clang__
62 + #pragma clang diagnostic ignored "-Wmissing-field-initializers"
63 + #endif