[packages/openssh] - added tests-reuseport (fixes regression tests failure due to missing SO_REUSEPORT feature in pre-3

qboosh qboosh at pld-linux.org
Fri Jul 3 19:28:22 CEST 2015


commit f5fe75c73cae0feab212e0461bd0d7dacfc44cd0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jul 3 19:30:16 2015 +0200

    - added tests-reuseport (fixes regression tests failure due to missing SO_REUSEPORT feature in pre-3.9 Linux)

 openssh-tests-reuseport.patch | 11 +++++++++++
 openssh.spec                  |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/openssh.spec b/openssh.spec
index 6c093e5..f7d4455 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -65,6 +65,7 @@ Source10:	sshd-keygen
 Source11:	sshd.socket
 Source12:	sshd at .service
 Patch0:		%{name}-no_libnsl.patch
+Patch1:		%{name}-tests-reuseport.patch
 Patch2:		%{name}-pam_misc.patch
 Patch3:		%{name}-sigpipe.patch
 # http://pkgs.fedoraproject.org/gitweb/?p=openssh.git;a=tree
@@ -530,6 +531,7 @@ openldap-a.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
diff --git a/openssh-tests-reuseport.patch b/openssh-tests-reuseport.patch
new file mode 100644
index 0000000..4b9c856
--- /dev/null
+++ b/openssh-tests-reuseport.patch
@@ -0,0 +1,11 @@
+--- openssh-6.9p1/regress/netcat.c.orig	2015-07-01 04:35:31.000000000 +0200
++++ openssh-6.9p1/regress/netcat.c	2015-07-03 17:23:33.544777525 +0200
+@@ -775,7 +775,7 @@
+ #ifdef SO_REUSEPORT
+ 		ret = setsockopt(s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof(x));
+ 		if (ret == -1)
+-			err(1, "setsockopt");
++			warn("setsockopt SO_REUSEPORT");
+ #endif
+ 		set_common_sockopts(s);
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssh.git/commitdiff/f5fe75c73cae0feab212e0461bd0d7dacfc44cd0



More information about the pld-cvs-commit mailing list