commit:     edbc7d5eff331c0f5684c59f27a7cac2123b2690
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Tue Mar  2 19:26:15 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar  3 16:51:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edbc7d5e

sci-astronomy/predict: Apply gcc-10 workaround

Closes: https://bugs.gentoo.org/756235
Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-astronomy/predict/predict-2.2.3-r2.ebuild | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/sci-astronomy/predict/predict-2.2.3-r2.ebuild 
b/sci-astronomy/predict/predict-2.2.3-r2.ebuild
index df1044cfeb9..a56e5e83ba4 100644
--- a/sci-astronomy/predict/predict-2.2.3-r2.ebuild
+++ b/sci-astronomy/predict/predict-2.2.3-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
-DEB_P=${PN}_${PV}
+DEB_P="${PN}_${PV}"
 DEB_PR=3.1
 
 DESCRIPTION="Satellite tracking and orbital prediction"
@@ -18,14 +18,15 @@ SLOT="0"
 IUSE="doc gtk nls xforms xplanet"
 KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux"
 
-RDEPEND="sys-libs/ncurses:0=
+RDEPEND="
+       sys-libs/ncurses:0=
        gtk? ( x11-libs/gtk+:2 )
        xforms? ( x11-libs/xforms )
        xplanet? ( x11-misc/xplanet[truetype] )"
 DEPEND="${RDEPEND}"
 
 PATCHES=(
-       "${FILESDIR}"/"${P}"-earthtrack.patch
+       "${FILESDIR}"/${P}-earthtrack.patch
        "${WORKDIR}"/${DEB_P}-${DEB_PR}.diff
 )
 
@@ -74,6 +75,7 @@ AC_SEARCH_LIBS([dlclose], [dl])' \
 }
 
 src_configure() {
+       append-cflags -fcommon
        if use gtk; then
                cd "${S}"/clients/gsat-* || die
                econf $(use_enable nls)

Reply via email to