serf: Update to 1.3.10
Drop patches that are fixed in the new release
This commit is contained in:
parent
f5f4ea90c5
commit
0c064e9c30
@ -2,8 +2,8 @@
|
||||
|
||||
pkgbase=serf
|
||||
pkgname=("lib${pkgbase}" "lib${pkgbase}-devel")
|
||||
pkgver=1.3.9
|
||||
pkgrel=8
|
||||
pkgver=1.3.10
|
||||
pkgrel=1
|
||||
pkgdesc="High-performance asynchronous HTTP client library"
|
||||
arch=('i686' 'x86_64')
|
||||
url="https://serf.apache.org/"
|
||||
@ -17,18 +17,12 @@ source=(https://archive.apache.org/dist/serf/${pkgbase}-${pkgver}.tar.bz2
|
||||
03-destdir.patch
|
||||
05-disable-SHLIBVERSION.patch
|
||||
06-strcasecmp.patch
|
||||
07-sspi-auth.patch
|
||||
scons-python3.patch
|
||||
openssl3-ERR_GET_FUNC.patch
|
||||
openssl3-BIO_ctrl.patch)
|
||||
sha256sums=('549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc'
|
||||
07-sspi-auth.patch)
|
||||
sha256sums=('be81ef08baa2516ecda76a77adf7def7bc3227eeb578b9a33b45f7b41dc064e6'
|
||||
'87767cd9b5e568a10f234df46f413a408613965e9d1b8cde1c0145f7eb20f0f1'
|
||||
'1efab80c71b6987ed504d307c39a623aef849bc7cc39c6aeac3d9338f7459be8'
|
||||
'313b272609729d80dedf608f9f1939526e687fdf4a1b50e1a66505c93c2ee56f'
|
||||
'84a43b3b6d3024195fdc69d215898ac426286329025bfa239ebe27a5c7507bc0'
|
||||
'363732546098b4c9415eb5d38b595d04c660c6324a34159768d334507b7d241f'
|
||||
'15026f5ce219d2222dbdb6dcbb8911f3c8fbe0cedf3a2ec2ff434dde8d7fb9be'
|
||||
'bf30b79aff5b058ba3852930dad4e5c16fc2e2d76810ca80e6e22e3c8121cff6')
|
||||
'84a43b3b6d3024195fdc69d215898ac426286329025bfa239ebe27a5c7507bc0')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgbase}-${pkgver}
|
||||
@ -37,11 +31,6 @@ prepare() {
|
||||
patch -p1 -i ${srcdir}/05-disable-SHLIBVERSION.patch
|
||||
patch -p1 -i ${srcdir}/06-strcasecmp.patch
|
||||
patch -p1 -i ${srcdir}/07-sspi-auth.patch
|
||||
patch -p1 -i ${srcdir}/scons-python3.patch
|
||||
|
||||
# taken from Arch: https://github.com/archlinux/svntogit-packages/tree/6e00fe4c8e530bd4fd62215cc3154a78c124fbdf/trunk
|
||||
patch -p1 -i ${srcdir}/openssl3-ERR_GET_FUNC.patch
|
||||
patch -p1 -i ${srcdir}/openssl3-BIO_ctrl.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
|
||||
@ -1,22 +0,0 @@
|
||||
https://src.fedoraproject.org/rpms/libserf/raw/rawhide/f/libserf-1.3.9-bio-ctrl.patch
|
||||
https://bugs.gentoo.org/805161
|
||||
https://issues.apache.org/jira/projects/SERF/issues/SERF-198
|
||||
--- a/buckets/ssl_buckets.c
|
||||
+++ b/buckets/ssl_buckets.c
|
||||
@@ -407,7 +407,7 @@ static int bio_bucket_destroy(BIO *bio)
|
||||
|
||||
static long bio_bucket_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
||||
{
|
||||
- long ret = 1;
|
||||
+ long ret = 0;
|
||||
|
||||
switch (cmd) {
|
||||
default:
|
||||
@@ -415,6 +415,7 @@ static long bio_bucket_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
||||
break;
|
||||
case BIO_CTRL_FLUSH:
|
||||
/* At this point we can't force a flush. */
|
||||
+ ret = 1;
|
||||
break;
|
||||
case BIO_CTRL_PUSH:
|
||||
case BIO_CTRL_POP:
|
||||
@ -1,13 +0,0 @@
|
||||
--- serf-1.3.9/buckets/ssl_buckets.c.errgetfunc
|
||||
+++ serf-1.3.9/buckets/ssl_buckets.c
|
||||
@@ -1204,6 +1204,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#ifndef ERR_GET_FUNC
|
||||
+#define ERR_GET_FUNC(ec) (0)
|
||||
+#endif
|
||||
+
|
||||
static int ssl_need_client_cert(SSL *ssl, X509 **cert, EVP_PKEY **pkey)
|
||||
{
|
||||
serf_ssl_context_t *ctx = SSL_get_app_data(ssl);
|
||||
@ -1,24 +0,0 @@
|
||||
--- serf-1.3.9/SConstruct.orig 2019-07-26 17:49:30.910189251 +0000
|
||||
+++ serf-1.3.9/SConstruct 2019-07-26 17:49:54.073821735 +0000
|
||||
@@ -163,9 +163,9 @@
|
||||
suffix='.def', src_suffix='.h')
|
||||
})
|
||||
|
||||
-match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
|
||||
- 'SERF_MINOR_VERSION ([0-9]+).*'
|
||||
- 'SERF_PATCH_VERSION ([0-9]+)',
|
||||
+match = re.search(b'SERF_MAJOR_VERSION ([0-9]+).*'
|
||||
+ b'SERF_MINOR_VERSION ([0-9]+).*'
|
||||
+ b'SERF_PATCH_VERSION ([0-9]+)',
|
||||
env.File('serf.h').get_contents(),
|
||||
re.DOTALL)
|
||||
MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
|
||||
@@ -183,7 +183,7 @@
|
||||
|
||||
unknown = opts.UnknownVariables()
|
||||
if unknown:
|
||||
- print 'Warning: Used unknown variables:', ', '.join(unknown.keys())
|
||||
+ print ('Warning: Used unknown variables:', ', '.join(unknown.keys()))
|
||||
|
||||
apr = str(env['APR'])
|
||||
apu = str(env['APU'])
|
||||
Loading…
x
Reference in New Issue
Block a user