Date: Wednesday, March 2, 2016 @ 20:13:24 Author: foutrelis Revision: 164230
Fix build with OpenSSL 1.0.2g Added: httperf/trunk/use-SSLv23_client_method.patch Modified: httperf/trunk/PKGBUILD --------------------------------+ PKGBUILD | 12 ++++++++++-- use-SSLv23_client_method.patch | 13 +++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-03-02 18:52:46 UTC (rev 164229) +++ PKGBUILD 2016-03-02 19:13:24 UTC (rev 164230) @@ -11,9 +11,17 @@ license=('GPL2') url='http://code.google.com/p/httperf' depends=('openssl') -source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz") -md5sums=('2968c36b9ecf3d98fc1f2c1c9c0d9341') +source=("http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz" + 'use-SSLv23_client_method.patch') +md5sums=('2968c36b9ecf3d98fc1f2c1c9c0d9341' + '4b7cd4bd707c322f73333e34f0302b76') +prepare() { + cd $pkgname-$pkgver + patch -Np1 -i ../use-SSLv23_client_method.patch +} + + build() { cd $pkgname-$pkgver ./configure --prefix=/usr Added: use-SSLv23_client_method.patch =================================================================== --- use-SSLv23_client_method.patch (rev 0) +++ use-SSLv23_client_method.patch 2016-03-02 19:13:24 UTC (rev 164230) @@ -0,0 +1,13 @@ +diff -uprb httperf-0.9.0.orig/src/httperf.c httperf-0.9.0/src/httperf.c +--- httperf-0.9.0.orig/src/httperf.c 2007-04-07 10:01:56.000000000 +0300 ++++ httperf-0.9.0/src/httperf.c 2016-03-02 21:09:57.376029451 +0200 +@@ -808,7 +808,8 @@ main (int argc, char **argv) + SSLeay_add_ssl_algorithms (); + + /* for some strange reason, SSLv23_client_method () doesn't work here */ +- ssl_ctx = SSL_CTX_new (SSLv3_client_method ()); ++ /* hopefully the above comment is a lie */ ++ ssl_ctx = SSL_CTX_new (SSLv23_client_method ()); + if (!ssl_ctx) + { + ERR_print_errors_fp (stderr);