Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-ftp/gftp/, net-ftp/gftp/files/
Date: Mon, 17 Feb 2020 20:43:08
Message-Id: 1581972169.0d6e4b3e3caf745256cfb81d8bf718658796af06.slyfox@gentoo
1 commit: 0d6e4b3e3caf745256cfb81d8bf718658796af06
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 17 20:42:21 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 17 20:42:49 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d6e4b3e
7
8 net-ftp/gftp: backport glibc-2.30 fix, bug #692230
9
10 Fix found by Stephan Hartmann!
11
12 Reported-by: Toralf Förster
13 Closes: https://bugs.gentoo.org/692230
14 Package-Manager: Portage-2.3.89, Repoman-2.3.20
15 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
16
17 net-ftp/gftp/files/gftp-2.0.19-glibc-2.30.patch | 27 +++++++++++++++++++++++++
18 net-ftp/gftp/gftp-2.0.19-r3.ebuild | 5 ++++-
19 2 files changed, 31 insertions(+), 1 deletion(-)
20
21 diff --git a/net-ftp/gftp/files/gftp-2.0.19-glibc-2.30.patch b/net-ftp/gftp/files/gftp-2.0.19-glibc-2.30.patch
22 new file mode 100644
23 index 00000000000..ee1d596a03c
24 --- /dev/null
25 +++ b/net-ftp/gftp/files/gftp-2.0.19-glibc-2.30.patch
26 @@ -0,0 +1,27 @@
27 +https://bugs.gentoo.org/692230
28 +https://github.com/masneyb/gftp/commit/371c494a34c1820544d6563fb7ef5ca51a0ee199
29 +
30 +From 371c494a34c1820544d6563fb7ef5ca51a0ee199 Mon Sep 17 00:00:00 2001
31 +From: Brian Masney <masneyb@×××××××××.org>
32 +Date: Thu, 21 Jul 2016 05:05:18 -0400
33 +Subject: [PATCH] fixed compiling on some versions of Linux. Patch picked up
34 + from the Fedora Project at
35 + https://github.com/repoforge/rpms/blob/master/specs/gftp/gftp-stropts.patch
36 +
37 +---
38 + lib/pty.c | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/lib/pty.c b/lib/pty.c
42 +index f7cb1f9..f9d609b 100644
43 +--- a/lib/pty.c
44 ++++ b/lib/pty.c
45 +@@ -61,7 +61,7 @@ _gftp_ptys_open (int fdm, int fds, char *pts_name)
46 +
47 + #elif HAVE_GRANTPT
48 +
49 +-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__))
50 ++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__))
51 + #include <stropts.h>
52 + #endif
53 +
54
55 diff --git a/net-ftp/gftp/gftp-2.0.19-r3.ebuild b/net-ftp/gftp/gftp-2.0.19-r3.ebuild
56 index 57a51c790a9..a79b3a00b48 100644
57 --- a/net-ftp/gftp/gftp-2.0.19-r3.ebuild
58 +++ b/net-ftp/gftp/gftp-2.0.19-r3.ebuild
59 @@ -1,4 +1,4 @@
60 -# Copyright 1999-2017 Gentoo Foundation
61 +# Copyright 1999-2020 Gentoo Authors
62 # Distributed under the terms of the GNU General Public License v2
63
64 EAPI=6
65 @@ -33,6 +33,9 @@ PATCHES=(
66
67 # https://bugzilla.gnome.org/show_bug.cgi?id=740785
68 "${FILESDIR}/${P}-desktop.patch"
69 +
70 + # https://bugs.gentoo.org/692230
71 + "${FILESDIR}"/${P}-glibc-2.30.patch
72 )
73
74 src_configure() {