Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/gtk-gnutella/files/, net-p2p/gtk-gnutella/
Date: Sun, 27 Jan 2019 07:49:47
Message-Id: 1548575265.7473325883667c2f6021c2c583dbb990c8ec29ec.graaff@gentoo
1 commit: 7473325883667c2f6021c2c583dbb990c8ec29ec
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 27 07:47:45 2019 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 27 07:47:45 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74733258
7
8 net-p2p/gtk-gnutella: fix compilation with glibc 2.28
9
10 Fixes: https://bugs.gentoo.org/669606
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 .../files/gtk-gnutella-1.1.14-statx.patch | 38 ++++++++++++++++++++++
15 net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild | 4 ++-
16 net-p2p/gtk-gnutella/gtk-gnutella-1.1.14.ebuild | 8 +++--
17 3 files changed, 46 insertions(+), 4 deletions(-)
18
19 diff --git a/net-p2p/gtk-gnutella/files/gtk-gnutella-1.1.14-statx.patch b/net-p2p/gtk-gnutella/files/gtk-gnutella-1.1.14-statx.patch
20 new file mode 100644
21 index 00000000000..5d455887c04
22 --- /dev/null
23 +++ b/net-p2p/gtk-gnutella/files/gtk-gnutella-1.1.14-statx.patch
24 @@ -0,0 +1,38 @@
25 +diff --git a/src/lib/stats.c b/src/lib/stats.c
26 +index 8d0d87b8b..725986268 100644
27 +--- a/src/lib/stats.c
28 ++++ b/src/lib/stats.c
29 +@@ -50,7 +50,7 @@ enum statx_magic { STATX_MAGIC = 0x560044e5 };
30 + /**
31 + * A one-dimension container (x).
32 + */
33 +-struct statx {
34 ++struct statistics {
35 + enum statx_magic magic; /**< Magic number */
36 + elist_t data; /**< Data points */
37 + long n; /**< Amount of data points */
38 +@@ -60,7 +60,7 @@ struct statx {
39 + };
40 +
41 + static inline void
42 +-statx_check(const struct statx * const sx)
43 ++statx_check(const struct statistics * const sx)
44 + {
45 + g_assert(sx != NULL);
46 + g_assert(STATX_MAGIC == sx->magic);
47 +diff --git a/src/lib/stats.h b/src/lib/stats.h
48 +index ba876467c..2a67952e2 100644
49 +--- a/src/lib/stats.h
50 ++++ b/src/lib/stats.h
51 +@@ -40,9 +40,9 @@
52 + * One dimension statistics.
53 + */
54 +
55 +-struct statx;
56 ++struct statistics;
57 +
58 +-typedef struct statx statx_t;
59 ++typedef struct statistics statx_t;
60 +
61 + statx_t *statx_make(void);
62 + statx_t *statx_make_nodata(void);
63
64 diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild
65 index 6dc93535b3c..0d716e9f88d 100644
66 --- a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild
67 +++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.13.ebuild
68 @@ -1,4 +1,4 @@
69 -# Copyright 1999-2018 Gentoo Foundation
70 +# Copyright 1999-2019 Gentoo Authors
71 # Distributed under the terms of the GNU General Public License v2
72
73 EAPI=6
74 @@ -27,6 +27,8 @@ DEPEND="${RDEPEND}
75 virtual/pkgconfig"
76
77 src_prepare() {
78 + eapply "${FILESDIR}/${PN}-1.1.14-statx.patch"
79 +
80 strip-linguas -i po
81
82 echo "# Gentoo-selected LINGUAS" > po/LINGUAS
83
84 diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.14.ebuild b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.14.ebuild
85 index 7e55b5198d1..61b7b1fcdeb 100644
86 --- a/net-p2p/gtk-gnutella/gtk-gnutella-1.1.14.ebuild
87 +++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.1.14.ebuild
88 @@ -1,10 +1,10 @@
89 -# Copyright 1999-2018 Gentoo Authors
90 +# Copyright 1999-2019 Gentoo Authors
91 # Distributed under the terms of the GNU General Public License v2
92
93 EAPI=7
94
95 -# strip-linguas
96 -inherit eutils
97 +# eutils: strip-linguas
98 +inherit eutils toolchain-funcs
99
100 IUSE="nls dbus ssl +gtk"
101
102 @@ -28,6 +28,8 @@ DEPEND="${RDEPEND}"
103 BDEPEND="virtual/pkgconfig"
104
105 src_prepare() {
106 + eapply "${FILESDIR}/${P}-statx.patch"
107 +
108 strip-linguas -i po
109
110 echo "# Gentoo-selected LINGUAS" > po/LINGUAS