net-ftp/gftp: backport glibc-2.30 fix, bug #692230
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 17 Feb 2020 20:42:21 +0000 (20:42 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 17 Feb 2020 20:42:49 +0000 (20:42 +0000)
Fix found by Stephan Hartmann!

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/692230
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
net-ftp/gftp/files/gftp-2.0.19-glibc-2.30.patch [new file with mode: 0644]
net-ftp/gftp/gftp-2.0.19-r3.ebuild

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
new file mode 100644 (file)
index 0000000..ee1d596
--- /dev/null
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/692230
+https://github.com/masneyb/gftp/commit/371c494a34c1820544d6563fb7ef5ca51a0ee199
+
+From 371c494a34c1820544d6563fb7ef5ca51a0ee199 Mon Sep 17 00:00:00 2001
+From: Brian Masney <masneyb@onstation.org>
+Date: Thu, 21 Jul 2016 05:05:18 -0400
+Subject: [PATCH] fixed compiling on some versions of Linux. Patch picked up
+ from the Fedora Project at
+ https://github.com/repoforge/rpms/blob/master/specs/gftp/gftp-stropts.patch
+
+---
+ lib/pty.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/pty.c b/lib/pty.c
+index f7cb1f9..f9d609b 100644
+--- a/lib/pty.c
++++ b/lib/pty.c
+@@ -61,7 +61,7 @@ _gftp_ptys_open (int fdm, int fds, char *pts_name)
+ #elif HAVE_GRANTPT
+-#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__))
++#if !(defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__) || defined(__linux__))
+ #include <stropts.h>
+ #endif
index 57a51c790a94779d8a95bcc63615c73e8ab781d3..a79b3a00b48cfe583ce05d6f6080058f8291c6ee 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -33,6 +33,9 @@ PATCHES=(
 
        # https://bugzilla.gnome.org/show_bug.cgi?id=740785
        "${FILESDIR}/${P}-desktop.patch"
+
+       # https://bugs.gentoo.org/692230
+       "${FILESDIR}"/${P}-glibc-2.30.patch
 )
 
 src_configure() {