Hello community, here is the log from the commit of package uperf for openSUSE:Factory checked in at 2017-12-29 18:52:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/uperf (Old) and /work/SRC/openSUSE:Factory/.uperf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "uperf" Fri Dec 29 18:52:43 2017 rev:3 rq:560505 version:1.0.5 Changes: -------- --- /work/SRC/openSUSE:Factory/uperf/uperf.changes 2017-03-31 15:10:00.835918866 +0200 +++ /work/SRC/openSUSE:Factory/.uperf.new/uperf.changes 2017-12-29 18:52:56.217959429 +0100 @@ -1,0 +2,5 @@ +Thu Dec 28 20:14:33 UTC 2017 - crrodriguez@opensuse.org + +- uperf-openssl-1_1.patch: fix build against openssl 1.1 + +------------------------------------------------------------------- New: ---- uperf-openssl-1_1.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ uperf.spec ++++++ --- /var/tmp/diff_new_pack.f9VJxc/_old 2017-12-29 18:52:56.841780261 +0100 +++ /var/tmp/diff_new_pack.f9VJxc/_new 2017-12-29 18:52:56.849777965 +0100 @@ -26,6 +26,7 @@ Source0: http://sourceforge.net/projects/uperf/files/uperf/uperf-%{version}.tar.gz BuildRequires: lksctp-tools-devel BuildRequires: openssl-devel +Patch0: uperf-openssl-1_1.patch %description uperf is a network performance tool that supports modelling and replay of @@ -55,7 +56,7 @@ %prep %setup -q - +%patch0 -p1 %build %configure \ --datadir="%{_datadir}/%{name}" \ ++++++ uperf-openssl-1_1.patch ++++++ Index: uperf-1.0.5/src/ssl.c =================================================================== --- uperf-1.0.5.orig/src/ssl.c +++ uperf-1.0.5/src/ssl.c @@ -390,10 +390,7 @@ initialize_ctx(char *keyfile, char *pass SSL_library_init(); - if (method != NULL && strcasecmp(method, "tls") == 0) { - meth = TLSv1_method(); - } else - meth = SSLv23_method(); + meth = SSLv23_method(); if (!(ctx = SSL_CTX_new(meth))) { printf("Error getting SSL CTX\n"); Index: uperf-1.0.5/src/uperf.h =================================================================== --- uperf-1.0.5.orig/src/uperf.h +++ uperf-1.0.5/src/uperf.h @@ -18,6 +18,8 @@ #ifndef _UPERF_H #define _UPERF_H +#include "config.h" +#include <string.h> /* Keep the data version as 0.2.5 to avoid the version mismatch problem. */ #define UPERF_DATA_VERSION "0.3" #define UPERF_VERSION "1.0.5"