[gentoo-commits] repo/gentoo:master commit in: media-radio/gpredict/, media-radio/gpredict/files/
commit: e74ebf33b91fe033f132c5ef269ae336179a8596 Author: Thomas Beierlein gentoo org> AuthorDate: Tue Mar 14 10:36:21 2023 + Commit: Thomas Beierlein gentoo org> CommitDate: Tue Mar 14 10:36:54 2023 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e74ebf33 media-radio/gpredict: Fix implicit-function-declaration for gethostbyname() Closes: https://bugs.gentoo.org/896424 Signed-off-by: Thomas Beierlein gentoo.org> .../files/gpredict-2.3-gethostbyname.patch | 32 +++ media-radio/gpredict/gpredict-2.3-r2.ebuild| 37 ++ 2 files changed, 69 insertions(+) diff --git a/media-radio/gpredict/files/gpredict-2.3-gethostbyname.patch b/media-radio/gpredict/files/gpredict-2.3-gethostbyname.patch new file mode 100644 index ..5fb7c3f3ef3e --- /dev/null +++ b/media-radio/gpredict/files/gpredict-2.3-gethostbyname.patch @@ -0,0 +1,32 @@ +# MUSL needs _GNU_SOURCE defined to work with gethostbyname() +# see bug# 896424 +diff --git a/src/gtk-rig-ctrl.c b/src/gtk-rig-ctrl.c +index 288fa42..25de30c 100644 +--- a/src/gtk-rig-ctrl.c b/src/gtk-rig-ctrl.c +@@ -34,6 +34,10 @@ + #include + #endif + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + #include + #include + #include +diff --git a/src/gtk-rot-ctrl.c b/src/gtk-rot-ctrl.c +index 5ff5d09..f9e3b4c 100644 +--- a/src/gtk-rot-ctrl.c b/src/gtk-rot-ctrl.c +@@ -32,6 +32,10 @@ + #include + #endif + ++#ifndef _GNU_SOURCE ++#define _GNU_SOURCE ++#endif ++ + /* NETWORK */ + #ifndef WIN32 + #include /* htons() */ diff --git a/media-radio/gpredict/gpredict-2.3-r2.ebuild b/media-radio/gpredict/gpredict-2.3-r2.ebuild new file mode 100644 index ..cf8fa7dccbcf --- /dev/null +++ b/media-radio/gpredict/gpredict-2.3-r2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +DESCRIPTION="Real-time satellite tracking and orbit prediction application" +HOMEPAGE="http://gpredict.oz9aec.net; +SRC_URI="https://github.com/csete/gpredict/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="dev-libs/glib:2 + x11-libs/gdk-pixbuf[jpeg] + x11-libs/gtk+:3 + x11-libs/goocanvas:2.0 + net-misc/curl" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +DOCS=( AUTHORS NEWS README ) + +src_prepare() { + eapply_user + # remove wrong doc location + eapply "${FILESDIR}/${P}-doc.patch" + eapply "${FILESDIR}/${PN}-2.2.1-fno-common.patch" + eapply "${FILESDIR}/${PN}-2.3-gethostbyname.patch" + + eautoreconf +}
[gentoo-commits] repo/gentoo:master commit in: media-radio/gpredict/, media-radio/gpredict/files/
commit: bbc4141281da3e85b9563af902e3ef3f6c74ec58 Author: Thomas Beierlein gentoo org> AuthorDate: Thu Feb 20 13:07:35 2020 + Commit: Thomas Beierlein gentoo org> CommitDate: Thu Feb 20 13:08:12 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbc41412 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 gentoo.org> media-radio/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(-) 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 000..cdbffbecb68 --- /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 { + gintalt;/*!< 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 b6f1c87b120..8232248301f 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" }