From bbc4141281da3e85b9563af902e3ef3f6c74ec58 Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Thu, 20 Feb 2020 14:07:35 +0100 Subject: [PATCH] media-radio/gpredict: Fix build with -fno-common Closes: https://bugs.gentoo.org/710196 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Thomas Beierlein --- .../gpredict/files/gpredict-2.2.1-fno-common.patch | 13 +++++++++++++ media-radio/gpredict/gpredict-2.2.1.ebuild | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 media-radio/gpredict/files/gpredict-2.2.1-fno-common.patch diff --git a/media-radio/gpredict/files/gpredict-2.2.1-fno-common.patch b/media-radio/gpredict/files/gpredict-2.2.1-fno-common.patch new file mode 100644 index 000000000000..cdbffbecb687 --- /dev/null +++ b/media-radio/gpredict/files/gpredict-2.2.1-fno-common.patch @@ -0,0 +1,13 @@ +diff --git a/src/qth-data.h b/src/qth-data.h +index 264f66f..5c6b2de 100644 +--- a/src/qth-data.h ++++ b/src/qth-data.h +@@ -30,7 +30,7 @@ typedef struct { + gint alt; /*!< Altitude above sea level in meters. */ + } qth_small_t; + +-enum { ++typedef enum { + QTH_STATIC_TYPE = 0, + QTH_GPSD_TYPE + } qth_data_type; diff --git a/media-radio/gpredict/gpredict-2.2.1.ebuild b/media-radio/gpredict/gpredict-2.2.1.ebuild index b6f1c87b1200..8232248301fb 100644 --- a/media-radio/gpredict/gpredict-2.2.1.ebuild +++ b/media-radio/gpredict/gpredict-2.2.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -28,4 +28,5 @@ src_prepare() { eapply_user # remove wrong doc location eapply -p0 "${FILESDIR}/${PN}-2.0-doc.patch" + eapply "${FILESDIR}/${P}-fno-common.patch" } -- 2.26.2