diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-11-17 17:45:00 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-11-17 19:39:21 +0100 |
commit | 110872071b01b805f71afe6fdfb1bf0ac2c4f879 (patch) | |
tree | 569330b7e8f8c7df2dfc038f809ee26f95960c41 /dev-libs/appstream | |
parent | dev-db/aerospike-server-community: drop gcr dependency (diff) | |
download | gentoo-110872071b01b805f71afe6fdfb1bf0ac2c4f879.tar.gz gentoo-110872071b01b805f71afe6fdfb1bf0ac2c4f879.tar.bz2 gentoo-110872071b01b805f71afe6fdfb1bf0ac2c4f879.zip |
dev-libs/appstream: Fix build with GCC-7.3.0
Reported-by: Oruriz <oruriz@protonmail.com>
Thanks-to: Felix Tiede <info@pc-tiede.de>
Closes: https://bugs.gentoo.org/670584
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-libs/appstream')
-rw-r--r-- | dev-libs/appstream/appstream-0.12.2.ebuild | 2 | ||||
-rw-r--r-- | dev-libs/appstream/files/appstream-0.12.2-gcc-7.3.patch | 24 |
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/appstream/appstream-0.12.2.ebuild b/dev-libs/appstream/appstream-0.12.2.ebuild index f2aa30c08f78..ff514c29496c 100644 --- a/dev-libs/appstream/appstream-0.12.2.ebuild +++ b/dev-libs/appstream/appstream-0.12.2.ebuild @@ -43,6 +43,8 @@ DEPEND="${RDEPEND} ) " +PATCHES=( "${FILESDIR}/${P}-gcc-7.3.patch" ) + src_prepare() { default sed -e "/^as_doc_target_dir/s/appstream/${PF}/" -i docs/meson.build || die 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 new file mode 100644 index 000000000000..3eb8b0db877d --- /dev/null +++ b/dev-libs/appstream/files/appstream-0.12.2-gcc-7.3.patch @@ -0,0 +1,24 @@ +From 9252de815e4443d1b617211f38685afe7c0f6b0e Mon Sep 17 00:00:00 2001 +From: Matthias Klumpp <matthias@tenstral.net> +Date: Sat, 20 Oct 2018 20:20:09 +0200 +Subject: [PATCH] Explicitly include string.h in as-tag.c + +This apparently is necessary to fix an FTBFS issue with older GCC +releases. Resolves #207 +--- + src/as-tag.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/as-tag.c b/src/as-tag.c +index 6afba621..91076e69 100644 +--- a/src/as-tag.c ++++ b/src/as-tag.c +@@ -32,6 +32,8 @@ + + #include "as-tag.h" + ++#include <string.h> ++ + #ifdef __clang__ + #pragma clang diagnostic ignored "-Wmissing-field-initializers" + #endif |