commit libserf for openSUSE:Factory

2020-06-22 Thread root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2020-06-21 19:03:56

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new.3606 (New)


Package is "libserf"

Sun Jun 21 19:03:56 2020 rev:27 rq:814723 version:1.3.9

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2018-10-01 
09:04:36.391934762 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new.3606/libserf.changes
2020-06-21 19:50:01.285853102 +0200
@@ -1,0 +2,6 @@
+Mon Jun 15 11:48:02 UTC 2020 - Dominique Leuenberger 
+
+- Autodetect krb5/mit prefix using krb5-config: prepare for future
+  changes on krb5 packaging.
+
+---



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.IRtEKK/_old  2020-06-21 19:50:01.681854688 +0200
+++ /var/tmp/diff_new_pack.IRtEKK/_new  2020-06-21 19:50:01.685854704 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -101,7 +101,7 @@
OPENSSL=%{_prefix} \
ZLIB=%{_prefix} \
 %if %{with gssapi}
-   GSSAPI=%{_prefix}/lib/mit \
+   GSSAPI=$(krb5-config --prefix) \
 %endif
DEBUG=yes \
CFLAGS="%{optflags}" \





commit libserf for openSUSE:Factory

2018-10-01 Thread root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2018-10-01 09:04:29

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Mon Oct  1 09:04:29 2018 rev:26 rq:637019 version:1.3.9

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2017-11-14 
14:07:33.504767526 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2018-10-01 
09:04:36.391934762 +0200
@@ -1,0 +2,5 @@
+Tue Sep 18 08:18:49 UTC 2018 - Tomáš Chvátal 
+
+- Use %license for license install
+
+---



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.975ARJ/_old  2018-10-01 09:04:37.071934175 +0200
+++ /var/tmp/diff_new_pack.975ARJ/_new  2018-10-01 09:04:37.075934171 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -28,7 +28,7 @@
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
-Url:https://serf.apache.org/
+URL:https://serf.apache.org/
 Source: 
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2
 Source2:
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2.asc
 Source3:https://people.apache.org/keys/group/serf.asc#/%{name}.keyring
@@ -48,7 +48,6 @@
 BuildRequires:  pkgconfig
 BuildRequires:  scons >= 2.3
 BuildRequires:  zlib-devel
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with gssapi}
 BuildRequires:  krb5-devel
 %endif
@@ -102,7 +101,7 @@
OPENSSL=%{_prefix} \
ZLIB=%{_prefix} \
 %if %{with gssapi}
-   GSSAPI=/usr/lib/mit \
+   GSSAPI=%{_prefix}/lib/mit \
 %endif
DEBUG=yes \
CFLAGS="%{optflags}" \
@@ -117,14 +116,13 @@
 %postun -n libserf-%{major}-%{major} -p /sbin/ldconfig
 
 %files -n libserf-%{major}-%{major}
-%defattr(-,root,root)
-%doc CHANGES LICENSE NOTICE README
+%license LICENSE
+%doc CHANGES NOTICE README
 %doc design-guide.txt
 %{_libdir}/libserf-%{major}.so.%{major}
 %{_libdir}/libserf-%{major}.so.%{SHLIBVER}
 
 %files -n libserf-devel
-%defattr(-,root,root)
 %{_includedir}/serf-%{major}
 %{_libdir}/libserf-%{major}.so
 %{_libdir}/pkgconfig/serf-%{major}.pc





commit libserf for openSUSE:Factory

2017-11-14 Thread root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2017-11-14 14:07:23

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Tue Nov 14 14:07:23 2017 rev:25 rq:539994 version:1.3.9

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2017-04-25 
08:58:41.418829881 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2017-11-14 
14:07:33.504767526 +0100
@@ -1,0 +2,6 @@
+Wed Nov  8 17:52:52 UTC 2017 - astie...@suse.com
+
+- Add libserf-python3.patch and libserf-python3-2.patch to fix
+  building with python3
+
+---

New:

  libserf-python3-2.patch
  libserf-python3.patch



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.BkDgGP/_old  2017-11-14 14:07:35.076710199 +0100
+++ /var/tmp/diff_new_pack.BkDgGP/_new  2017-11-14 14:07:35.076710199 +0100
@@ -32,6 +32,12 @@
 Source: 
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2
 Source2:
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2.asc
 Source3:https://people.apache.org/keys/group/serf.asc#/%{name}.keyring
+# PATCH-FIX-UPSTREAM libserf-python3.patch
+# 
https://github.com/apache/serf/commit/d4de5a672d8c03b82ba70c1b737926bcf078f761
+Patch0: libserf-python3.patch
+# PATCH-FIX-UPSTREAM libserf-python3-2.patch
+# http://svn.apache.org/viewvc?view=revision&revision=1814604
+Patch1: libserf-python3-2.patch
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
@@ -85,6 +91,8 @@
 
 %prep
 %setup -q -n "serf-%{version}"
+%patch0 -p1
+%patch1 -p1
 
 %build
 scons \

++ libserf-python3-2.patch ++

r1814604 | astieger | 2017-11-08 18:05:28 +0100 (Wed, 08 Nov 2017) | 5 lines
Changed paths:
   M /serf/trunk/SConstruct

Follow-up to r1811083, fix building with scons 3.0.0 and Python3

* SConstruct: Append decode('utf-8) to FILE.get_contents() to avoid
  TypeError: cannot use a string pattern on a bytes-like object


Index: trunk/SConstruct
===
--- trunk/SConstruct(revision 1814603)
+++ trunk/SConstruct(revision 1814604)
@@ -182,7 +182,7 @@
 match = re.search('SERF_MAJOR_VERSION ([0-9]+).*'
   'SERF_MINOR_VERSION ([0-9]+).*'
   'SERF_PATCH_VERSION ([0-9]+)',
-  env.File('serf.h').get_contents(),
+  env.File('serf.h').get_contents().decode('utf-8'),
   re.DOTALL)
 MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
 env.Append(MAJOR=str(MAJOR))
++ libserf-python3.patch ++
>From d4de5a672d8c03b82ba70c1b737926bcf078f761 Mon Sep 17 00:00:00 2001
From: Bert Huijben 
Date: Wed, 4 Oct 2017 14:56:22 +
Subject: [PATCH] Fix syntax of a print() in the scons file to unbreak building
 with most recent scons version.

* SConstruct
  Use Python 3.0 valid syntax to make Scons 3.0.0 happy on both python 3.0
  and 2.7.

git-svn-id: https://svn.apache.org/repos/asf/serf/trunk@1811083 
13f79535-47bb-0310-9956-ffa450edef68
---
 SConstruct | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SConstruct b/SConstruct
index e5d407b..fab9828 100644
--- a/SConstruct
+++ b/SConstruct
@@ -199,7 +199,7 @@ CALLOUT_OKAY = not (env.GetOption('clean') or 
env.GetOption('help'))
 
 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'])




commit libserf for openSUSE:Factory

2017-04-24 Thread root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2017-04-25 08:58:40

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Tue Apr 25 08:58:40 2017 rev:24 rq:489857 version:1.3.9

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2016-09-07 
11:47:07.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2017-04-25 
08:58:41.418829881 +0200
@@ -1,0 +2,5 @@
+Fri Apr 21 15:07:16 UTC 2017 - astie...@suse.com
+
+- do not check with time-dependent failures bsc#1035395 bsc#1031549
+
+---



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.rXYgna/_old  2017-04-25 08:58:42.718646089 +0200
+++ /var/tmp/diff_new_pack.rXYgna/_new  2017-04-25 08:58:42.722645524 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -105,14 +105,6 @@
 scons install --install-sandbox=%{buildroot}
 rm -f "%{buildroot}%{_libdir}"/lib*.a
 
-%check
-%if 0%{?suse_version} > 1210
-scons \
-   CFLAGS="%{optflags}" \
-   check \
-   %{?_smp_mflags}
-%endif
-
 %post   -n libserf-%{major}-%{major} -p /sbin/ldconfig
 %postun -n libserf-%{major}-%{major} -p /sbin/ldconfig
 





commit libserf for openSUSE:Factory

2016-09-07 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2016-09-07 11:47:03

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-10-31 
20:14:55.0 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2016-09-07 
11:47:07.0 +0200
@@ -1,0 +2,18 @@
+Thu Sep  1 12:37:28 UTC 2016 - astie...@suse.com
+
+- Apache Serf 1.3.9:
+  * serf is now Apache Software Foundation project
+  * fix various build issues
+  * resolve a bucket (aka "memory") leak when a request bucket is
+destroyed before it is morphed into an aggregate bucket
+  * reset state variables when resetting connection
+  * fix types of passed, but unused batons
+  * fix some usages of the openssl BIO api
+  * improve handling of bad data in the response state line
+  * support more overrides via SCons arguments
+  * adapt to OpenSSL 1.1.x api
+- drop upstream patches:
+libserf-1.3.x-fix-comment-style.patch
+libserf-1.3.x-fix-deflate-buckets-test.patch
+
+---

Old:

  libserf-1.3.x-fix-comment-style.patch
  libserf-1.3.x-fix-deflate-buckets-test.patch
  serf-1.3.8.tar.bz2

New:

  libserf.keyring
  serf-1.3.9.tar.bz2
  serf-1.3.9.tar.bz2.asc



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.Q75Xeo/_old  2016-09-07 11:47:12.0 +0200
+++ /var/tmp/diff_new_pack.Q75Xeo/_new  2016-09-07 11:47:12.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,22 +16,22 @@
 #
 
 
-%bcond_without gssapi
 # version 1.2.0 requires apr 1.3.0 or later for apr_socket_addr_get
 %define minimum_apr_version 1.3.0
 %define major  1
 %define minor  3
 %define SHLIBVER %{major}.%{minor}.0
+%bcond_without gssapi
 Name:   libserf
-Version:1.3.8
+Version:1.3.9
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
-Url:https://serf.googlecode.com
-Source: 
https://serf.googlecode.com/svn/src_releases/serf-%{version}.tar.bz2
-Patch1: libserf-1.3.x-fix-comment-style.patch
-Patch2: libserf-1.3.x-fix-deflate-buckets-test.patch
+Url:https://serf.apache.org/
+Source: 
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2
+Source2:
https://dist.apache.org/repos/dist/dev/serf/serf-%{version}.tar.bz2.asc
+Source3:https://people.apache.org/keys/group/serf.asc#/%{name}.keyring
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
@@ -85,8 +85,6 @@
 
 %prep
 %setup -q -n "serf-%{version}"
-%patch1 -p1
-%patch2 -p1
 
 %build
 scons \
@@ -116,7 +114,6 @@
 %endif
 
 %post   -n libserf-%{major}-%{major} -p /sbin/ldconfig
-
 %postun -n libserf-%{major}-%{major} -p /sbin/ldconfig
 
 %files -n libserf-%{major}-%{major}

++ libserf.keyring ++
 11939 lines (skipped)

++ serf-1.3.8.tar.bz2 -> serf-1.3.9.tar.bz2 ++
 3403 lines of diff (skipped)




commit libserf for openSUSE:Factory

2014-10-31 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-10-31 18:27:44

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-10-23 
14:21:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-10-31 
20:14:55.0 +0100
@@ -1,0 +2,7 @@
+Thu Oct 23 19:46:37 UTC 2014 - andreas.stie...@gmx.de
+
+- enable running test suite:
+  * add libserf-1.3.x-fix-comment-style.patch to fix compile error
+  * add libserf-1.3.x-fix-deflate-buckets-test.patch to fix crash
+
+---

New:

  libserf-1.3.x-fix-comment-style.patch
  libserf-1.3.x-fix-deflate-buckets-test.patch



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.tQa5mD/_old  2014-10-31 20:14:56.0 +0100
+++ /var/tmp/diff_new_pack.tQa5mD/_new  2014-10-31 20:14:56.0 +0100
@@ -30,6 +30,8 @@
 Group:  System/Libraries
 Url:https://serf.googlecode.com
 Source: 
https://serf.googlecode.com/svn/src_releases/serf-%{version}.tar.bz2
+Patch1: libserf-1.3.x-fix-comment-style.patch
+Patch2: libserf-1.3.x-fix-deflate-buckets-test.patch
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
@@ -83,6 +85,8 @@
 
 %prep
 %setup -q -n "serf-%{version}"
+%patch1 -p1
+%patch2 -p1
 
 %build
 scons \
@@ -104,16 +108,12 @@
 rm -f "%{buildroot}%{_libdir}"/lib*.a
 
 %check
-# test failing due to memory leak
-# https://groups.google.com/d/msg/serf-dev/qoTK8BfRfrI/EJL7xj4PmT4J
-%if 0
 %if 0%{?suse_version} > 1210
 scons \
CFLAGS="%{optflags}" \
check \
%{?_smp_mflags}
 %endif
-%endif
 
 %post   -n libserf-%{major}-%{major} -p /sbin/ldconfig
 

++ libserf-1.3.x-fix-comment-style.patch ++
From: Andreas Stieger 
Date: 2014-10-21 22:42:56 +0100
Subject: Correct comment style
Upstream: Committed
References: https://code.google.com/p/serf/source/detail?r=2443

Fixes error:
test/test_buckets.c: In function 'deflate_compress':
test/test_buckets.c:1237:1: error: expected expression before '/' token
 //buf_size = orig_len + (orig_len / 1000) + 12;
 ^


r2443 | andreas.stie...@gmx.de | 2014-10-21 22:42:56 +0100 (Tue, 21 Oct 2014) | 
7 lines
Changed paths:
   M /trunk/test/test_buckets.c

Follow-up to r2419: Correct comment style

* test/test_buckets.c
  (deflate_compress): Correct comment style not supported by strict
  compilers, fails on /branches/1.3.x



Index: trunk/test/test_buckets.c
===
--- trunk/test/test_buckets.c   (revision 2442)
+++ trunk/test/test_buckets.c   (revision 2443)
@@ -1323,9 +1323,9 @@ static apr_status_t deflate_compress(const char **
 
 /* The largest buffer we should need is 0.1% larger than the
uncompressed data, + 12 bytes. This info comes from zlib.h.
+   buf_size = orig_len + (orig_len / 1000) + 12;
Note: This isn't sufficient when using Z_NO_FLUSH and extremely 
compressed
data. Use a buffer bigger than what we need. */
-//buf_size = orig_len + (orig_len / 1000) + 12;
 buf_size = 10;
 
 write_buf = apr_palloc(pool, buf_size);
++ libserf-1.3.x-fix-deflate-buckets-test.patch ++
From: Ivan Zhakov 
Date: 2014-10-23 17:15:22 +0100 
Subject: Reduce memory usage by deflate buckets test.
Upstream: Committed
References: https://code.google.com/p/serf/source/detail?r=2445 
https://groups.google.com/d/msg/serf-dev/qoTK8BfRfrI/EJL7xj4PmT4J

Fixes failing test program by reducing memory usage.


r2445 | chemodax | 2014-10-23 17:15:22 +0100 (Thu, 23 Oct 2014) | 6 lines
Changed paths:
   M /trunk/test/test_buckets.c

Reduce memory usage by deflate buckets test.

* test/test_buckets.c
  (deflate_buckets): Add POOL argument and use it instead of tb->pool.
  (test_deflate_buckets): Use iterpool for deflate_buckets() call.


Index: trunk/test/test_buckets.c
===
--- trunk/test/test_buckets.c   (revision 2444)
+++ trunk/test/test_buckets.c   (revision 2445)
@@ -1400,12 +1400,12 @@ static void read_bucket_and_check_pattern(CuTest *
   expected_len);
 }
 
-static void deflate_buckets(CuTest *t

commit libserf for openSUSE:Factory

2014-10-23 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-10-23 14:20:57

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-08-13 
08:49:17.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-10-23 
14:21:16.0 +0200
@@ -1,0 +2,11 @@
+Wed Oct 22 18:24:36 UTC 2014 - andreas.stie...@gmx.de
+
+- Serf 1.3.8
+  This release fixes a problem with handling very large gzip-
+  encoded HTTP responses and disables SSLv2 and SSLv3.
+  * CRC calculation error for gzipped http reponses > 4GB.
+  * SSPI CredHandle not freed when APR pool is destroyed.
+  * Disable SSLv2 and SSLv3 as both or broken [boo#901968]
+- disable running tests due to memory leak in test fixture
+
+---

Old:

  serf-1.3.7.tar.bz2

New:

  serf-1.3.8.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.OK44bQ/_old  2014-10-23 14:21:18.0 +0200
+++ /var/tmp/diff_new_pack.OK44bQ/_new  2014-10-23 14:21:18.0 +0200
@@ -23,7 +23,7 @@
 %define minor  3
 %define SHLIBVER %{major}.%{minor}.0
 Name:   libserf
-Version:1.3.7
+Version:1.3.8
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
@@ -104,12 +104,16 @@
 rm -f "%{buildroot}%{_libdir}"/lib*.a
 
 %check
+# test failing due to memory leak
+# https://groups.google.com/d/msg/serf-dev/qoTK8BfRfrI/EJL7xj4PmT4J
+%if 0
 %if 0%{?suse_version} > 1210
 scons \
CFLAGS="%{optflags}" \
check \
%{?_smp_mflags}
 %endif
+%endif
 
 %post   -n libserf-%{major}-%{major} -p /sbin/ldconfig
 

++ serf-1.3.7.tar.bz2 -> serf-1.3.8.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.7/CHANGES new/serf-1.3.8/CHANGES
--- old/serf-1.3.7/CHANGES  2014-08-11 17:17:02.0 +0200
+++ new/serf-1.3.8/CHANGES  2014-10-20 21:08:16.0 +0200
@@ -1,10 +1,18 @@
+Serf 1.3.8 [2014-10-20, from /tags/1.3.8, r]
+Fix issue #152: CRC calculation error for gzipped http reponses > 4GB.
+Fix issue #153: SSPI CredHandle not freed when APR pool is destroyed.
+Fix issue #154: Disable SSLv2 and SSLv3 as both or broken.
+
+
 Serf 1.3.7 [2014-08-11, from /tags/1.3.7, r2411]
   Handle NUL bytes in fields of an X.509 certificate. (r2393, r2399)
 
+
 Serf 1.3.6 [2014-06-09, from /tags/1.3.6, r2372]
   Revert r2319 from serf 1.3.5: this change was making serf call 
handle_response
 multiple times in case of an error response, leading to unexpected 
behavior.
 
+
 Serf 1.3.5 [2014-04-27, from /tags/1.3.5, r2355]
   Fix issue #125: no reverse lookup during Negotiate authentication for 
proxies.
   Fix a crash caused by incorrect reuse of the ssltunnel CONNECT request 
(r2316)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.7/auth/auth_spnego_sspi.c 
new/serf-1.3.8/auth/auth_spnego_sspi.c
--- old/serf-1.3.7/auth/auth_spnego_sspi.c  2014-02-04 20:41:14.0 
+0100
+++ new/serf-1.3.8/auth/auth_spnego_sspi.c  2014-10-19 20:38:11.0 
+0200
@@ -95,8 +95,8 @@
 }
 
 if (SecIsValidHandle(&ctx->sspi_credentials)) {
-FreeCredentialsHandle(&ctx->sspi_context);
-SecInvalidateHandle(&ctx->sspi_context);
+FreeCredentialsHandle(&ctx->sspi_credentials);
+SecInvalidateHandle(&ctx->sspi_credentials);
 }
 
 return APR_SUCCESS;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.7/buckets/deflate_buckets.c 
new/serf-1.3.8/buckets/deflate_buckets.c
--- old/serf-1.3.7/buckets/deflate_buckets.c2011-06-24 04:03:57.0 
+0200
+++ new/serf-1.3.8/buckets/deflate_buckets.c2014-10-19 20:38:11.0 
+0200
@@ -141,7 +141,6 @@
   const char **data, apr_size_t *len)
 {
 deflate_context_t *ctx = bucket->data;
-unsigned long compCRC, compLen;
 apr_status_t status;
 const char *private_data;
 apr_size_t private_len;
@@ -186,17 +185,25 @@
 ctx->state++;
 break;
 case STATE_VERIFY:
+{
+unsigned long compCRC, compLen, actualLen;
+
 /* Do the checksum computation. */
 compCRC = getLong((unsigned char*)ctx->hdr_buffer);
 if (ctx->crc != compCRC) {
 return SERF_ERROR_DECOMPRESSION_FAILED;
 }
 compLen = getLong((unsigned char*)ctx->hdr_buf

commit libserf for openSUSE:Factory

2014-08-12 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-08-13 08:49:09

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-06-10 
14:39:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-08-13 
08:49:17.0 +0200
@@ -1,0 +2,10 @@
+Mon Aug 11 16:07:48 UTC 2014 - andreas.stie...@gmx.de
+
+- Serf 1.3.7
+  Serf may not provide the full value for fields contained in X.509
+  certificates.  Allowing for clients to potentially improperly
+  accept certificates. 
+  * Handle NUL bytes in fields of an X.509 certificate.
+[bnc#890510] [CVE-2014-3504]
+
+---

Old:

  serf-1.3.6.tar.bz2

New:

  serf-1.3.7.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.up1HJq/_old  2014-08-13 08:49:18.0 +0200
+++ /var/tmp/diff_new_pack.up1HJq/_new  2014-08-13 08:49:18.0 +0200
@@ -23,7 +23,7 @@
 %define minor  3
 %define SHLIBVER %{major}.%{minor}.0
 Name:   libserf
-Version:1.3.6
+Version:1.3.7
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0

++ serf-1.3.6.tar.bz2 -> serf-1.3.7.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.6/CHANGES new/serf-1.3.7/CHANGES
--- old/serf-1.3.6/CHANGES  2014-06-09 18:05:27.0 +0200
+++ new/serf-1.3.7/CHANGES  2014-08-11 17:17:02.0 +0200
@@ -1,8 +1,11 @@
-Serf 1.3.6 [2014-06-09, from /tags/1.3.6, r]
+Serf 1.3.7 [2014-08-11, from /tags/1.3.7, r2411]
+  Handle NUL bytes in fields of an X.509 certificate. (r2393, r2399)
+
+Serf 1.3.6 [2014-06-09, from /tags/1.3.6, r2372]
   Revert r2319 from serf 1.3.5: this change was making serf call 
handle_response
 multiple times in case of an error response, leading to unexpected 
behavior.
 
-Serf 1.3.5 [2014-04-27, from /tags/1.3.5, r]
+Serf 1.3.5 [2014-04-27, from /tags/1.3.5, r2355]
   Fix issue #125: no reverse lookup during Negotiate authentication for 
proxies.
   Fix a crash caused by incorrect reuse of the ssltunnel CONNECT request 
(r2316)
   Cancel request if response parsing failed + authn callback set (r2319)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.6/buckets/ssl_buckets.c 
new/serf-1.3.7/buckets/ssl_buckets.c
--- old/serf-1.3.6/buckets/ssl_buckets.c2014-02-04 20:41:14.0 
+0100
+++ new/serf-1.3.7/buckets/ssl_buckets.c2014-08-06 04:24:00.0 
+0200
@@ -202,6 +202,8 @@
 };
 
 static void disable_compression(serf_ssl_context_t *ssl_ctx);
+static char *
+pstrdup_escape_nul_bytes(const char *buf, int len, apr_pool_t *pool);
 
 #if SSL_VERBOSE
 /* Log all ssl alerts that we receive from the server. */
@@ -427,6 +429,85 @@
 #endif
 };
 
+typedef enum san_copy_t {
+EscapeNulAndCopy = 0,
+ErrorOnNul = 1,
+} san_copy_t;
+
+
+static apr_status_t
+get_subject_alt_names(apr_array_header_t **san_arr, X509 *ssl_cert,
+  san_copy_t copy_action, apr_pool_t *pool)
+{
+STACK_OF(GENERAL_NAME) *names;
+
+/* assert: copy_action == ErrorOnNul || (san_arr && pool) */
+
+if (san_arr) {
+*san_arr = NULL;
+}
+
+/* Get subjectAltNames */
+names = X509_get_ext_d2i(ssl_cert, NID_subject_alt_name, NULL, NULL);
+if (names) {
+int names_count = sk_GENERAL_NAME_num(names);
+int name_idx;
+
+if (san_arr)
+*san_arr = apr_array_make(pool, names_count, sizeof(char*));
+for (name_idx = 0; name_idx < names_count; name_idx++) {
+char *p = NULL;
+GENERAL_NAME *nm = sk_GENERAL_NAME_value(names, name_idx);
+
+switch (nm->type) {
+case GEN_DNS:
+if (copy_action == ErrorOnNul &&
+strlen(nm->d.ia5->data) != nm->d.ia5->length)
+return SERF_ERROR_SSL_CERT_FAILED;
+if (san_arr && *san_arr)
+p = pstrdup_escape_nul_bytes((const char 
*)nm->d.ia5->data,
+ nm->d.ia5->length,
+ pool);
+break;
+default:
+/* Don't know what to do - skip. */
+break;
+}
+
+if (p) {
+APR_ARRAY_PUSH(*san_arr, char*) = p;
+}
+}
+

commit libserf for openSUSE:Factory

2014-06-10 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-06-10 14:39:17

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-04-30 
15:07:48.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-06-10 
14:39:19.0 +0200
@@ -1,0 +2,9 @@
+Mon Jun  9 18:07:29 UTC 2014 - andreas.stie...@gmx.de
+
+- Serf 1.3.6 [bnc#881902]
+  This release fixes an instability introduced in serf 1.3.5
+  * Revert r2319 from serf 1.3.5: this change was making serf call
+handle_response multiple times in case of an error response,
+leading to unexpected behavior.
+
+---

Old:

  serf-1.3.5.tar.bz2

New:

  serf-1.3.6.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.xVM8Ms/_old  2014-06-10 14:39:20.0 +0200
+++ /var/tmp/diff_new_pack.xVM8Ms/_new  2014-06-10 14:39:20.0 +0200
@@ -23,7 +23,7 @@
 %define minor  3
 %define SHLIBVER %{major}.%{minor}.0
 Name:   libserf
-Version:1.3.5
+Version:1.3.6
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0

++ serf-1.3.5.tar.bz2 -> serf-1.3.6.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.5/CHANGES new/serf-1.3.6/CHANGES
--- old/serf-1.3.5/CHANGES  2014-04-27 22:30:56.0 +0200
+++ new/serf-1.3.6/CHANGES  2014-06-09 18:05:27.0 +0200
@@ -1,3 +1,7 @@
+Serf 1.3.6 [2014-06-09, from /tags/1.3.6, r]
+  Revert r2319 from serf 1.3.5: this change was making serf call 
handle_response
+multiple times in case of an error response, leading to unexpected 
behavior.
+
 Serf 1.3.5 [2014-04-27, from /tags/1.3.5, r]
   Fix issue #125: no reverse lookup during Negotiate authentication for 
proxies.
   Fix a crash caused by incorrect reuse of the ssltunnel CONNECT request 
(r2316)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.5/auth/auth.c new/serf-1.3.6/auth/auth.c
--- old/serf-1.3.5/auth/auth.c  2014-04-21 16:56:02.0 +0200
+++ new/serf-1.3.6/auth/auth.c  2014-06-07 09:43:40.0 +0200
@@ -408,7 +408,6 @@
consider the reponse body as invalid and discard it. */
 status = discard_body(response);
 *consumed_response = 1;
-
 if (!APR_STATUS_IS_EOF(status)) {
 return status;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.5/outgoing.c new/serf-1.3.6/outgoing.c
--- old/serf-1.3.5/outgoing.c   2014-04-21 16:56:02.0 +0200
+++ new/serf-1.3.6/outgoing.c   2014-06-07 09:43:40.0 +0200
@@ -916,22 +916,21 @@
  * themselves by not registering credential callbacks.
  */
 if (request->conn->ctx->cred_cb) {
-status = serf__handle_auth_response(&consumed_response,
-request,
-request->resp_bkt,
-request->handler_baton,
-pool);
+  status = serf__handle_auth_response(&consumed_response,
+  request,
+  request->resp_bkt,
+  request->handler_baton,
+  pool);
 
-if (SERF_BUCKET_READ_ERROR(status)) {
-/* Report the request as 'died'/'cancelled' to the application */
-(void)(*request->handler)(request,
-  NULL,
-  request->handler_baton,
-  pool);
-}
+  /* If there was an error reading the response (maybe there wasn't
+ enough data available), don't bother passing the response to the
+ application.
 
-if (status)
-return status;
+ If the authentication was tried, but failed, pass the response
+ to the application, maybe it can do better. */
+  if (status) {
+  return status;
+  }
 }
 
 if (!consumed_response) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.5/serf.h new/serf-1.3.6/serf.h
--- old/serf-1.3.5/serf.h   2014-04-02 20:13:22.0 +0200
+++ new/serf-1.3.6/serf.h   2014-06-

commit libserf for openSUSE:Factory

2014-04-30 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-04-30 15:07:47

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2014-02-11 
10:36:48.0 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-04-30 
15:07:48.0 +0200
@@ -1,0 +2,14 @@
+Sun Apr 27 22:02:02 UTC 2014 - andreas.stie...@gmx.de
+
+- Serf 1.3.5 [bnc#875382]
+  This release fixes a crash during SSL tunnel setup, fixes
+  Negotiate/Kerberos authentication in some specific scenario's and
+  brings some other small changes.
+  * Fix issue: no reverse lookup during Negotiate authentication for
+proxies.
+  * Fix a crash caused by incorrect reuse of the ssltunnel CONNECT
+request
+  * Cancel request if response parsing failed + authn callback set
+  * Update the expired certificates in the test suite.
+
+---

Old:

  serf-1.3.4.tar.bz2

New:

  serf-1.3.5.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.5wATSl/_old  2014-04-30 15:07:50.0 +0200
+++ /var/tmp/diff_new_pack.5wATSl/_new  2014-04-30 15:07:50.0 +0200
@@ -19,19 +19,17 @@
 %bcond_without gssapi
 # version 1.2.0 requires apr 1.3.0 or later for apr_socket_addr_get
 %define minimum_apr_version 1.3.0
-
-Name:   libserf
 %define major  1
 %define minor  3
-%define SHLIBVER %major.%minor.0
-Version:1.3.4
+%define SHLIBVER %{major}.%{minor}.0
+Name:   libserf
+Version:1.3.5
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
-Source: 
https://serf.googlecode.com/svn/src_releases/serf-%version.tar.bz2
 Url:https://serf.googlecode.com
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Source: 
https://serf.googlecode.com/svn/src_releases/serf-%{version}.tar.bz2
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
@@ -42,6 +40,7 @@
 BuildRequires:  pkgconfig
 BuildRequires:  scons >= 2.3
 BuildRequires:  zlib-devel
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 %if %{with gssapi}
 BuildRequires:  krb5-devel
 %endif
@@ -52,48 +51,29 @@
 read/write communication asynchronously. Memory copies and transformations are
 kept to a minimum to provide high performance operation.
 
-
-
-
-Authors:
-
-Greg Stein 
-Justin Erenkrantz 
-
-%package -n libserf-%major-%major
-
+%package -n libserf-%{major}-%{major}
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
 
-%description -n libserf-%major-%major
+%description -n libserf-%{major}-%{major}
 The serf library is a C-based HTTP client library built upon the Apache
 Portable Runtime (APR) library. It multiplexes connections, running the
 read/write communication asynchronously. Memory copies and transformations are
 kept to a minimum to provide high performance operation.
 
-
-
-
-Authors:
-
-Greg Stein 
-Justin Erenkrantz 
-
-
 %package -n libserf-devel
-
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
-%if %{with gssapi}
-Requires:   krb5-devel
-%endif
 Requires:   libapr-util1-devel >= %{minimum_apr_version}
 Requires:   libapr1-devel >= %{minimum_apr_version}
 Requires:   libexpat-devel
 Requires:   libopenssl-devel
-Requires:   libserf-%major-%major = %{version}
+Requires:   libserf-%{major}-%{major} = %{version}
 Requires:   openldap2-devel
 Requires:   zlib-devel
+%if %{with gssapi}
+Requires:   krb5-devel
+%endif
 
 %description -n libserf-devel
 The serf library is a C-based HTTP client library built upon the Apache
@@ -101,14 +81,6 @@
 read/write communication asynchronously. Memory copies and transformations are
 kept to a minimum to provide high performance operation.
 
-
-
-
-Authors:
-
-Greg Stein 
-Justin Erenkrantz 
-
 %prep
 %setup -q -n "serf-%{version}"
 
@@ -129,7 +101,7 @@
 
 %install
 scons install --install-sandbox=%{buildroot}
-%__rm -f "%{buildroot}%{_libdir}"/lib*.a
+rm -f "%{buildroot}%{_libdir}"/lib*.a
 
 %check
 %if 0%{?suse_version} > 1210
@@ -152,7 +124,7 @@
 
 %files -n libserf-devel
 %defattr(-,root,root)
-%_includedir/serf-%{major}
+%{_includedir}/serf-%{major}
 %{_libdir}/libserf-%{major}.so
 %{_libdir}/pkgconfig/serf-%{major}.pc
 

++ serf-1.3.4.tar.bz2 -> serf-1.3.5.tar.bz2 ++
d

commit libserf for openSUSE:Factory

2014-02-11 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2014-02-11 10:36:47

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-12-10 
17:43:41.0 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2014-02-11 
10:36:48.0 +0100
@@ -1,0 +2,11 @@
+Sun Feb  9 10:57:25 UTC 2014 - andreas.stie...@gmx.de
+
+- Serf 1.3.4
+  This release fixes a race condition during OpenSSL initialisation
+  and two ssl tunnel setup failures
+  * Endless loop during ssl tunnel setup with Negotiate authn
+  * Can't setup ssl tunnel which sends Connection close header
+  * race condition when initializing OpenSSL from multiple threads
+  * Incorrect pkg-config file when GSSAPI isn't configured
+
+---

Old:

  serf-1.3.3.tar.bz2

New:

  serf-1.3.4.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.riXUTW/_old  2014-02-11 10:36:48.0 +0100
+++ /var/tmp/diff_new_pack.riXUTW/_new  2014-02-11 10:36:48.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,12 +24,12 @@
 %define major  1
 %define minor  3
 %define SHLIBVER %major.%minor.0
-Version:1.3.3
+Version:1.3.4
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
-Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
+Source: 
https://serf.googlecode.com/svn/src_releases/serf-%version.tar.bz2
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gcc

++ serf-1.3.3.tar.bz2 -> serf-1.3.4.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.3/CHANGES new/serf-1.3.4/CHANGES
--- old/serf-1.3.3/CHANGES  2013-12-09 20:43:10.0 +0100
+++ new/serf-1.3.4/CHANGES  2014-02-08 20:56:40.0 +0100
@@ -1,4 +1,11 @@
-Serf 1.3.3 [2013-12-09, from /tags/1.3.3, r]
+Serf 1.3.4 [2014-02-08, from /tags/1.3.4, r]
+  Fix issue #119: Endless loop during ssl tunnel setup with Negotiate authn
+  Fix issue #123: Can't setup ssl tunnel which sends Connection close header
+  Fix a race condition when initializing OpenSSL from multiple threads (r2263)
+  Fix issue #138: Incorrect pkg-config file when GSSAPI isn't configured
+
+
+Serf 1.3.3 [2013-12-09, from /tags/1.3.3, r2242]
   Fix issue 129: Try more addresses of multihomed servers
   Handle X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE correctly (r2225)
   Return APR_TIMEUP from poll() to enable detecting connection timeouts (r2183)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.3/SConstruct new/serf-1.3.4/SConstruct
--- old/serf-1.3.3/SConstruct   2013-10-04 17:11:04.0 +0200
+++ new/serf-1.3.4/SConstruct   2014-02-04 21:11:10.0 +0100
@@ -382,7 +382,7 @@
'@INCLUDE_SUBDIR@': 'serf-%d' % (MAJOR,),
'@VERSION@': '%d.%d.%d' % (MAJOR, MINOR, PATCH),
'@LIBS@': '%s %s %s -lz' % (apu_libs, apr_libs,
-   env.get('GSSAPI_LIBS')),
+   env.get('GSSAPI_LIBS', 
'')),
})
 
 env.Default(lib_static, lib_shared, pkgconfig)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.3/auth/auth_spnego.c 
new/serf-1.3.4/auth/auth_spnego.c
--- old/serf-1.3.3/auth/auth_spnego.c   2013-08-15 11:00:57.0 +0200
+++ new/serf-1.3.4/auth/auth_spnego.c   2014-02-04 21:01:07.0 +0100
@@ -181,7 +181,8 @@
claim to be. The session key can only be used with the HTTP service
on the target host. */
 static apr_status_t
-gss_api_get_credentials(char *token, apr_size_t token_len,
+gss_api_get_credentials(serf_connection_t *conn,
+char *token, apr_size_t token_len,
 const char *hostname,
 const char **buf, apr_size_t *buf_len,
 gss_authn_info_t *gss_info)
@@ -202,6 +203,7 @@
 
 /*

commit libserf for openSUSE:Factory

2013-12-10 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-12-10 17:43:40

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-10-06 
14:27:53.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-12-10 
17:43:41.0 +0100
@@ -1,0 +2,13 @@
+Mon Dec  9 23:04:30 UTC 2013 - andreas.stie...@gmx.de
+
+- update to 1.3.3
+  This is a small patch release containing a fix to solve a problem
+  connecting to multi-homed servers (e.g. ipv4/ipv6) and some
+  improvements in the use of error codes during ssl certificate
+  validation and  handling of timed out connections.
+  * Try more addresses of multihomed servers
+  * Handle X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE correctly
+  * Return APR_TIMEUP from poll() to enable detecting connection
+timeouts
+
+---

Old:

  serf-1.3.2.tar.bz2

New:

  serf-1.3.3.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.bpFJWR/_old  2013-12-10 17:43:41.0 +0100
+++ /var/tmp/diff_new_pack.bpFJWR/_new  2013-12-10 17:43:41.0 +0100
@@ -24,7 +24,7 @@
 %define major  1
 %define minor  3
 %define SHLIBVER %major.%minor.0
-Version:1.3.2
+Version:1.3.3
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0

++ serf-1.3.2.tar.bz2 -> serf-1.3.3.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.2/CHANGES new/serf-1.3.3/CHANGES
--- old/serf-1.3.2/CHANGES  2013-10-04 20:33:48.0 +0200
+++ new/serf-1.3.3/CHANGES  2013-12-09 20:43:10.0 +0100
@@ -1,4 +1,10 @@
-Serf 1.3.2 [2013-10-04, from /tags/1.3.2, r]
+Serf 1.3.3 [2013-12-09, from /tags/1.3.3, r]
+  Fix issue 129: Try more addresses of multihomed servers
+  Handle X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE correctly (r2225)
+  Return APR_TIMEUP from poll() to enable detecting connection timeouts (r2183)
+
+
+Serf 1.3.2 [2013-10-04, from /tags/1.3.2, r2195]
   Fix issue 130: HTTP headers should be treated case-insensitively
   Fix issue 126: Compilation breaks with Codewarrior compiler
   Fix crash during cleanup of SSL buckets in apr_terminate() (r2145)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.2/buckets/ssl_buckets.c 
new/serf-1.3.3/buckets/ssl_buckets.c
--- old/serf-1.3.2/buckets/ssl_buckets.c2013-09-29 08:37:46.0 
+0200
+++ new/serf-1.3.3/buckets/ssl_buckets.c2013-11-29 22:22:42.0 
+0100
@@ -463,6 +463,7 @@
 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
 case X509_V_ERR_CERT_UNTRUSTED:
 case X509_V_ERR_INVALID_CA:
+case X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE:
 failures |= SERF_SSL_CERT_UNKNOWNCA;
 break;
 case X509_V_ERR_CERT_REVOKED:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.2/context.c new/serf-1.3.3/context.c
--- old/serf-1.3.2/context.c2013-07-21 16:21:27.0 +0200
+++ new/serf-1.3.3/context.c2013-11-29 22:57:23.0 +0100
@@ -285,6 +285,12 @@
### look at the potential return codes. map to our defined
### return values? ...
 */
+
+/* Use the strict documented error for poll timeouts, to allow proper
+   handling of the other timeout types when returned from
+   serf_event_trigger */
+if (APR_STATUS_IS_TIMEUP(status))
+return APR_TIMEUP; /* Return the documented error */
 return status;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.2/outgoing.c new/serf-1.3.3/outgoing.c
--- old/serf-1.3.2/outgoing.c   2013-09-29 08:37:46.0 +0200
+++ new/serf-1.3.3/outgoing.c   2013-11-29 21:56:28.0 +0100
@@ -1285,8 +1285,29 @@
 int error;
 apr_socklen_t l = sizeof(error);
 
-if (!getsockopt(osskt, SOL_SOCKET, SO_ERROR, (char*)&error, 
&l))
-return APR_FROM_OS_ERROR(error);
+if (!getsockopt(osskt, SOL_SOCKET, SO_ERROR, (char*)&error,
+&l)) {
+status = APR_FROM_OS_ERROR(error);
+
+/* Handle fallback for multi-homed servers.
+ 
+   ### Improve algorithm to find bet

commit libserf for openSUSE:Factory

2013-10-06 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-10-06 14:27:52

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-09-29 
17:49:08.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-10-06 
14:27:53.0 +0200
@@ -1,0 +2,21 @@
+Fri Oct  4 20:45:19 UTC 2013 - andreas.stie...@gmx.de
+
+- update to 1.3.2
+- bugs fixed:
+  * HTTP headers should be treated case-insensitively
+  * Compilation breaks with Codewarrior compiler
+  * Fix crash during cleanup of SSL buckets in apr_terminate()
+  * Fix host header when url contains a username or password
+  * Handle authentication for responses to HEAD requests
+  * Improve serf_get: add option to add request headers, allow url 
+with query, allow HEAD requests
+  * Improve RFC conformance: don't expect body for certain responses
+  * Do not invoke progress callback when no data was received
+  * And more test suite fixes and build warning cleanups
+- SCons-related fixes:
+  * Fix build when GSSAPI not in default include path
+  - Use both MAJOR and MINOR version for the shared library name
+   Fix the .pc file when installing serf in a non-default LIBDIR
+- drop serf-1.3.x-shlibver-soname.patch, committed upstream
+
+---

Old:

  serf-1.3.1.tar.bz2
  serf-1.3.x-shlibver-soname.patch

New:

  serf-1.3.2.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.yf4wyj/_old  2013-10-06 14:27:54.0 +0200
+++ /var/tmp/diff_new_pack.yf4wyj/_new  2013-10-06 14:27:54.0 +0200
@@ -24,13 +24,12 @@
 %define major  1
 %define minor  3
 %define SHLIBVER %major.%minor.0
-Version:1.3.1
+Version:1.3.2
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
-Patch1: serf-1.3.x-shlibver-soname.patch
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gcc
@@ -112,7 +111,6 @@
 
 %prep
 %setup -q -n "serf-%{version}"
-%patch1 -p1
 
 %build
 scons \

++ serf-1.3.1.tar.bz2 -> serf-1.3.2.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.1/CHANGES new/serf-1.3.2/CHANGES
--- old/serf-1.3.1/CHANGES  2013-08-15 21:16:24.0 +0200
+++ new/serf-1.3.2/CHANGES  2013-10-04 20:33:48.0 +0200
@@ -1,4 +1,26 @@
-Serf 1.3.1 [2013-08-15, from /tags/1.3.1, r]
+Serf 1.3.2 [2013-10-04, from /tags/1.3.2, r]
+  Fix issue 130: HTTP headers should be treated case-insensitively
+  Fix issue 126: Compilation breaks with Codewarrior compiler
+  Fix crash during cleanup of SSL buckets in apr_terminate() (r2145)
+  Fix Windows build: Also export functions with capital letters in .def file
+  Fix host header when url contains a username or password (r2170)
+  Ensure less TCP package fragmentation on Windows (r2145)
+  Handle authentication for responses to HEAD requests (r2178,-9)
+  Improve serf_get: add option to add request headers, allow url with query,
+ allow HEAD requests (r2143,r2175,-6)
+  Improve RFC conformance: don't expect body for certain responses (r2011,-2)
+  Do not invoke progress callback when no data was received (r2144)
+  And more test suite fixes and build warning cleanups
+  SCons-related fixes:
+   Fix build when GSSAPI not in default include path (2155)
+   Fix OpenBSD build: always map all LIBPATH entries into RPATH (r2156)
+   Checksum generation in Windows shared libraries for release builds (2162)
+   Mac OS X: Use MAJOR version only in dylib install name (r2161)
+   Use both MAJOR and MINOR version for the shared library name (2163)
+   Fix the .pc file when installing serf in a non-default LIBDIR (r2191)
+
+
+Serf 1.3.1 [2013-08-15, from /tags/1.3.1, r2138]
   Fix issue 77: Endless loop if server doesn't accept Negotiate authentication.
   Fix issue 114: ssl/tls renegotiation fails
   Fix issue 120: error with ssl tunnel over proxy with KeepAlive off and
@@ -17,6 +39,7 @@
Solaris: Fix build with cc, don't use unsupported compiler flags
   Require SCons version 2.3.0 or higher now (for the soname support).
 
+
 Serf 1.3.0 [2013-07-23, from /tags/1.3.0, r2074]
   Fix issue 83: use PATH rather than URI within an ssltunnel (r1952)
   Fix issue 108: improved error reporting from the underlying socket (r1951)
diff -urN '--exclude=CVS' '-

commit libserf for openSUSE:Factory

2013-09-29 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-09-29 17:49:07

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-08-16 
11:36:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-09-29 
17:49:08.0 +0200
@@ -1,0 +2,7 @@
+Fri Sep 27 23:05:02 UTC 2013 - andreas.stie...@gmx.de
+
+- adjust library package name, SONAME and SHLIBVER to match future
+  releases and make maintenance easier
+  serf-1.3.x-shlibver-soname.patch [bnc#842941]
+
+---

New:

  serf-1.3.x-shlibver-soname.patch



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.NbrZSZ/_old  2013-09-29 17:49:09.0 +0200
+++ /var/tmp/diff_new_pack.NbrZSZ/_new  2013-09-29 17:49:09.0 +0200
@@ -23,13 +23,14 @@
 Name:   libserf
 %define major  1
 %define minor  3
-%define SHLIBVER %minor.0.0
+%define SHLIBVER %major.%minor.0
 Version:1.3.1
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
+Patch1: serf-1.3.x-shlibver-soname.patch
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  gcc
@@ -60,12 +61,12 @@
 Greg Stein 
 Justin Erenkrantz 
 
-%package -n libserf-%major-%minor
+%package -n libserf-%major-%major
 
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
 
-%description -n libserf-%major-%minor
+%description -n libserf-%major-%major
 The serf library is a C-based HTTP client library built upon the Apache
 Portable Runtime (APR) library. It multiplexes connections, running the
 read/write communication asynchronously. Memory copies and transformations are
@@ -91,7 +92,7 @@
 Requires:   libapr1-devel >= %{minimum_apr_version}
 Requires:   libexpat-devel
 Requires:   libopenssl-devel
-Requires:   libserf-%major-%minor = %{version}
+Requires:   libserf-%major-%major = %{version}
 Requires:   openldap2-devel
 Requires:   zlib-devel
 
@@ -111,6 +112,7 @@
 
 %prep
 %setup -q -n "serf-%{version}"
+%patch1 -p1
 
 %build
 scons \
@@ -139,15 +141,15 @@
%{?_smp_mflags}
 %endif
 
-%post   -n libserf-%{major}-%{minor} -p /sbin/ldconfig
+%post   -n libserf-%{major}-%{major} -p /sbin/ldconfig
 
-%postun -n libserf-%{major}-%{minor} -p /sbin/ldconfig
+%postun -n libserf-%{major}-%{major} -p /sbin/ldconfig
 
-%files -n libserf-%{major}-%{minor}
+%files -n libserf-%{major}-%{major}
 %defattr(-,root,root)
 %doc CHANGES LICENSE NOTICE README
 %doc design-guide.txt
-%{_libdir}/libserf-%{major}.so.%{minor}
+%{_libdir}/libserf-%{major}.so.%{major}
 %{_libdir}/libserf-%{major}.so.%{SHLIBVER}
 
 %files -n libserf-devel

++ serf-1.3.x-shlibver-soname.patch ++
Date: 2013-09-09 17:19:46 +0100
Subject: Use for the shared library version string both MAJOR and MINOR version
Upstream: commited
References: http://code.google.com/p/serf/source/detail?r=2163 
https://bugzilla.novell.com/show_bug.cgi?id=842941


r2163 | lieven.govaerts | 2013-09-09 17:19:46 +0100 (Mon, 09 Sep 2013) | 15 
lines
Changed paths:
   M /trunk/SConstruct

Use for the shared library version string both MAJOR and MINOR version. Remove
the Mac specific current_version and compatibility_version setter code in favor
of scons built-in support (even if that's slightly flawed by filling in both
options with the same version).

Note: this has as consequence on Mac that the current_version and 
compatibility_version option values change for the 1.3.x branch from 4.x.x to
1.x.0.

* SConstruct
  (SHLIBVERSION): Use major.minor version.
  (darwin/LINKFLAGS): Don't set the current_version and compatibility_version
  options. Scons already does this, and setting them twice doesn't work
  with older versions of gcc.


---
 SConstruct |   14 --
 1 file changed, 8 insertions(+), 6 deletions(-)

Index: serf-1.3.1/SConstruct
===
--- serf-1.3.1.orig/SConstruct  2013-08-15 10:13:20.0 +0100
+++ serf-1.3.1/SConstruct   2013-09-28 00:02:58.0 +0100
@@ -204,9 +204,15 @@ thisdir = os.getcwd()
 libdir = '$LIBDIR'
 incdir = '$PREFIX/inc

commit libserf for openSUSE:Factory

2013-08-16 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-08-16 11:36:23

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-08-12 
14:27:23.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-08-16 
11:36:25.0 +0200
@@ -1,0 +2,19 @@
+Thu Aug 15 19:53:09 UTC 2013 - andreas.stie...@gmx.de
+
+- update to 1.3.1
+- bug fixes:
+  * endless loop if server doesn't accept Negotiate authentication.
+  * ssl/tls renegotiation fails
+  * error with ssl tunnel over proxy with KeepAlive off and
+Basic authentication.
+  * Fixed bugs with authentication
+  * build system changes ( already covered by patches below )
+- packaging changes:
+  * remove make and libtool build requirements
+  * removed scons patches, committed upstream:
+libserf-1.3.x-gssapi-libs.patch
+libserf-1.3.x-libdir.patch
+libserf-1.3.x-scons-check-exit.patch
+libserf-1.3.x-soname.patch
+
+---

Old:

  libserf-1.3.x-gssapi-libs.patch
  libserf-1.3.x-libdir.patch
  libserf-1.3.x-scons-check-exit.patch
  libserf-1.3.x-soname.patch
  serf-1.3.0.tar.bz2

New:

  serf-1.3.1.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.Po7SsV/_old  2013-08-16 11:36:26.0 +0200
+++ /var/tmp/diff_new_pack.Po7SsV/_new  2013-08-16 11:36:26.0 +0200
@@ -24,7 +24,7 @@
 %define major  1
 %define minor  3
 %define SHLIBVER %minor.0.0
-Version:1.3.0
+Version:1.3.1
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
@@ -32,21 +32,14 @@
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-Patch0: libserf-1.3.x-libdir.patch
-Patch1: libserf-1.3.x-soname.patch
-Patch2: libserf-1.3.x-gssapi-libs.patch
-Patch3: libserf-1.3.x-scons-check-exit.patch
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
 BuildRequires:  libapr1-devel >= %{minimum_apr_version}
 BuildRequires:  libexpat-devel
 BuildRequires:  libopenssl-devel
-BuildRequires:  libtool
-BuildRequires:  make
 BuildRequires:  openldap2-devel
 BuildRequires:  pkgconfig
-# SHLIBVERERSION introduced in 2.3 (libserf-1.3.x-soname.patch)
 BuildRequires:  scons >= 2.3
 BuildRequires:  zlib-devel
 %if %{with gssapi}
@@ -118,14 +111,8 @@
 
 %prep
 %setup -q -n "serf-%{version}"
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3-p1
 
 %build
-# scons expects coma separated flags
-SCONS_OPTFLAGS=`echo %{optflags} | sed "s/ /,/g"`
 scons \
PREFIX=%{_prefix} \
LIBDIR=%{_libdir} \
@@ -136,7 +123,7 @@
GSSAPI=/usr/lib/mit \
 %endif
DEBUG=yes \
-   CFLAGS="$SCONS_OPTFLAGS" \
+   CFLAGS="%{optflags}" \
APR_STATIC=no \
%{?_smp_mflags} 
 
@@ -146,10 +133,8 @@
 
 %check
 %if 0%{?suse_version} > 1210
-# scons expects coma separated flags
-SCONS_OPTFLAGS=`echo %{optflags} | sed "s/ /,/g"`
 scons \
-   CFLAGS=$SCONS_OPTFLAGS  \
+   CFLAGS="%{optflags}" \
check \
%{?_smp_mflags}
 %endif

++ serf-1.3.0.tar.bz2 -> serf-1.3.1.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.3.0/CHANGES new/serf-1.3.1/CHANGES
--- old/serf-1.3.0/CHANGES  2013-07-23 16:47:17.0 +0200
+++ new/serf-1.3.1/CHANGES  2013-08-15 21:16:24.0 +0200
@@ -1,4 +1,23 @@
-Serf 1.3.0 [2013-07-23, from /tags/1.3.0]
+Serf 1.3.1 [2013-08-15, from /tags/1.3.1, r]
+  Fix issue 77: Endless loop if server doesn't accept Negotiate authentication.
+  Fix issue 114: ssl/tls renegotiation fails
+  Fix issue 120: error with ssl tunnel over proxy with KeepAlive off and
+ Basic authentication.
+  Fixed bugs with authentication (r2057,2115,2118)
+  SCons-related fixes:
+   Fix issue 111: add flag to set custom library path
+   Fix issue 112: add soname
+   Fix issue 113: add gssapi libs in the serf pc file
+   Fix issue 115: Setting RPATH on Solaris broken in SConstruct
+   Fix issue 116: scons check should return non-zero exit staths
+   Fix issue 121: make CFLAGS, LIBS, LINKFLAGS and CPPFLAGS take a space-
+   separated list of flags.
+   Fix issue 122: make scons PREFIX create the folder if it doesn't exist
+   Mac OS X: Fix scons --install-sandbox
+   Solaris: Fix build with cc, don't use u

commit libserf for openSUSE:Factory

2013-08-12 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-08-12 14:27:22

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-07-30 
18:39:43.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-08-12 
14:27:23.0 +0200
@@ -1,0 +2,11 @@
+Sat Aug 10 18:43:17 UTC 2013 - andreas.stie...@gmx.de
+
+- update libserf-1.3.x-soname.patch to move shared library version
+  link generation into scons
+
+---
+Tue Jul 30 22:38:55 UTC 2013 - andreas.stie...@gmx.de
+
+- run tests for 12.2 and later only
+
+---



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.FchToT/_old  2013-08-12 14:27:23.0 +0200
+++ /var/tmp/diff_new_pack.FchToT/_new  2013-08-12 14:27:23.0 +0200
@@ -22,7 +22,8 @@
 
 Name:   libserf
 %define major  1
-%define sosuffix 0.%{major}.0
+%define minor  3
+%define SHLIBVER %minor.0.0
 Version:1.3.0
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
@@ -66,12 +67,12 @@
 Greg Stein 
 Justin Erenkrantz 
 
-%package -n libserf-1-0
+%package -n libserf-%major-%minor
 
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
 
-%description -n libserf-1-0
+%description -n libserf-%major-%minor
 The serf library is a C-based HTTP client library built upon the Apache
 Portable Runtime (APR) library. It multiplexes connections, running the
 read/write communication asynchronously. Memory copies and transformations are
@@ -97,7 +98,7 @@
 Requires:   libapr1-devel >= %{minimum_apr_version}
 Requires:   libexpat-devel
 Requires:   libopenssl-devel
-Requires:   libserf-1-0 = %{version}
+Requires:   libserf-%major-%minor = %{version}
 Requires:   openldap2-devel
 Requires:   zlib-devel
 
@@ -141,30 +142,28 @@
 
 %install
 scons install --install-sandbox=%{buildroot}
-pushd %{buildroot}%{_libdir}/
-ln -s libserf-%{major}.so.%{sosuffix} libserf-%{major}.so.0
-ln -s libserf-%{major}.so.%{sosuffix} libserf-%{major}.so
-popd
 %__rm -f "%{buildroot}%{_libdir}"/lib*.a
 
 %check
+%if 0%{?suse_version} > 1210
 # scons expects coma separated flags
 SCONS_OPTFLAGS=`echo %{optflags} | sed "s/ /,/g"`
 scons \
CFLAGS=$SCONS_OPTFLAGS  \
check \
%{?_smp_mflags}
+%endif
 
-%post   -n libserf-%{major}-0 -p /sbin/ldconfig
+%post   -n libserf-%{major}-%{minor} -p /sbin/ldconfig
 
-%postun -n libserf-%{major}-0 -p /sbin/ldconfig
+%postun -n libserf-%{major}-%{minor} -p /sbin/ldconfig
 
-%files -n libserf-%{major}-0
+%files -n libserf-%{major}-%{minor}
 %defattr(-,root,root)
 %doc CHANGES LICENSE NOTICE README
 %doc design-guide.txt
-%{_libdir}/libserf-%{major}.so.0
-%{_libdir}/libserf-%{major}.so.%{sosuffix}
+%{_libdir}/libserf-%{major}.so.%{minor}
+%{_libdir}/libserf-%{major}.so.%{SHLIBVER}
 
 %files -n libserf-devel
 %defattr(-,root,root)

++ libserf-1.3.x-soname.patch ++
--- /var/tmp/diff_new_pack.FchToT/_old  2013-08-12 14:27:24.0 +0200
+++ /var/tmp/diff_new_pack.FchToT/_new  2013-08-12 14:27:24.0 +0200
@@ -8,19 +8,37 @@
 fixes warning: libserf-1-0.i586: W: no-soname /usr/lib/libserf-1.so.0.0.0
 
 ---
- SConstruct |2 ++
- 1 file changed, 2 insertions(+)
+ SConstruct |6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
 
 Index: serf-1.3.0/SConstruct
 ===
 serf-1.3.0.orig/SConstruct 2013-07-28 13:23:02.0 +0100
-+++ serf-1.3.0/SConstruct  2013-07-28 13:23:03.0 +0100
-@@ -190,6 +190,8 @@ thisdir = os.getcwd()
+--- serf-1.3.0.orig/SConstruct 2013-08-10 19:07:15.0 +0100
 serf-1.3.0/SConstruct  2013-08-10 19:09:44.0 +0100
+@@ -152,6 +152,8 @@ match = re.search('SERF_MAJOR_VERSION ([
+   re.DOTALL)
+ MAJOR, MINOR, PATCH = [int(x) for x in match.groups()]
+ env.Append(MAJOR=str(MAJOR))
++env.Append(MINOR=str(MINOR))
++env.Append(PATCH=str(PATCH))
+ 
+ # Calling external programs is okay if we're not cleaning or printing help.
+ # (cleaning: no sense in fetching information; help: we may not know where
+@@ -190,6 +192,8 @@ thisdir = os.getcwd()
  libdir = '$LIBDIR'
  incdir = '$PREFIX/include/serf-$MAJOR'
  
-+env['SHLIBVERSION']='0.${MAJOR}.0'
++env['SHLIBVERSION']='${MINOR}.0.0'
 +
  LIBNAME = 'libserf-${MAJOR}'
  if sys.platform != 'win32':
LIBNAMESTATIC = LIBNAME
+@@ -3

commit libserf for openSUSE:Factory

2013-07-30 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-07-30 18:39:41

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-07-25 
14:29:11.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-07-30 
18:39:43.0 +0200
@@ -1,0 +2,17 @@
+Sun Jul 28 14:54:40 UTC 2013 - andreas.stie...@gmx.de
+
+- update libserf-1.3.x-soname.patch to add SHLIBVERSION to make
+  scons add a SONAME instead of a global linker flag. This is only
+  effective with scons >= 2.3
+- fix running of regression/unit test suite:
+  * add libserf-1.3.x-scons-check-exit.patch to return a non-zero
+exist status upon check failures
+  * call scons check with CFLAGS
+
+---
+Fri Jul 26 22:10:36 UTC 2013 - andreas.stie...@gmx.de
+
+- update libserf-1.3.x-gssapi-libs.patch with upstream commit,
+  mark as committed upstream
+
+---

New:

  libserf-1.3.x-scons-check-exit.patch



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.LEVQpY/_old  2013-07-30 18:39:44.0 +0200
+++ /var/tmp/diff_new_pack.LEVQpY/_new  2013-07-30 18:39:44.0 +0200
@@ -21,8 +21,8 @@
 %define minimum_apr_version 1.3.0
 
 Name:   libserf
-%define soname 0
 %define major  1
+%define sosuffix 0.%{major}.0
 Version:1.3.0
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
@@ -34,6 +34,7 @@
 Patch0: libserf-1.3.x-libdir.patch
 Patch1: libserf-1.3.x-soname.patch
 Patch2: libserf-1.3.x-gssapi-libs.patch
+Patch3: libserf-1.3.x-scons-check-exit.patch
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
@@ -44,7 +45,8 @@
 BuildRequires:  make
 BuildRequires:  openldap2-devel
 BuildRequires:  pkgconfig
-BuildRequires:  scons >= 2.0
+# SHLIBVERERSION introduced in 2.3 (libserf-1.3.x-soname.patch)
+BuildRequires:  scons >= 2.3
 BuildRequires:  zlib-devel
 %if %{with gssapi}
 BuildRequires:  krb5-devel
@@ -118,6 +120,7 @@
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3-p1
 
 %build
 # scons expects coma separated flags
@@ -139,29 +142,33 @@
 %install
 scons install --install-sandbox=%{buildroot}
 pushd %{buildroot}%{_libdir}/
-%__mv libserf-%{major}.so libserf-%{major}.so.%{soname}.0.0
-ln -s libserf-%{major}.so.%{soname}.0.0 libserf-%{major}.so.%{soname}
-ln -s libserf-%{major}.so.%{soname}.0.0 libserf-%{major}.so
+ln -s libserf-%{major}.so.%{sosuffix} libserf-%{major}.so.0
+ln -s libserf-%{major}.so.%{sosuffix} libserf-%{major}.so
 popd
 %__rm -f "%{buildroot}%{_libdir}"/lib*.a
 
 %check
-scons CFLAGS="" check
+# scons expects coma separated flags
+SCONS_OPTFLAGS=`echo %{optflags} | sed "s/ /,/g"`
+scons \
+   CFLAGS=$SCONS_OPTFLAGS  \
+   check \
+   %{?_smp_mflags}
 
-%post   -n libserf-1-0 -p /sbin/ldconfig
+%post   -n libserf-%{major}-0 -p /sbin/ldconfig
 
-%postun -n libserf-1-0 -p /sbin/ldconfig
+%postun -n libserf-%{major}-0 -p /sbin/ldconfig
 
-%files -n libserf-1-0
+%files -n libserf-%{major}-0
 %defattr(-,root,root)
 %doc CHANGES LICENSE NOTICE README
 %doc design-guide.txt
-%{_libdir}/libserf-%{major}.so.%{soname}
-%{_libdir}/libserf-%{major}.so.%{soname}.*.*
+%{_libdir}/libserf-%{major}.so.0
+%{_libdir}/libserf-%{major}.so.%{sosuffix}
 
 %files -n libserf-devel
 %defattr(-,root,root)
-%_includedir/serf-%major
+%_includedir/serf-%{major}
 %{_libdir}/libserf-%{major}.so
 %{_libdir}/pkgconfig/serf-%{major}.pc
 

++ libserf-1.3.x-gssapi-libs.patch ++
--- /var/tmp/diff_new_pack.LEVQpY/_old  2013-07-30 18:39:44.0 +0200
+++ /var/tmp/diff_new_pack.LEVQpY/_new  2013-07-30 18:39:44.0 +0200
@@ -1,28 +1,28 @@
 From: Andreas Stieger 
 Date: 2013-07-24 23:58:00 +0100
 Subject: [PATCH] add gssapi libs to pkgconfig file, resolve TODO
-References: https://code.google.com/p/serf/issues/detail?id=113
-Upstream: submitted
+References: https://code.google.com/p/serf/issues/detail?id=113 
http://code.google.com/p/serf/source/diff?spec=svn2079&old=2070&r=2079&format=unidiff&path=%2Ftrunk%2FSConstruct
+Upstream: committed
 
 Makes pkgconfig file contain libraries for gssapi
 

- SConstruct |4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-Index: serf-1.3.0/SConstruct
+Index: trunk/SConstruct
 ===
 serf-1.3.0.orig/SConstruct 2013-07-24 23:40:43.0 +0100
-+++ serf-1.3.0/SConstruct 

commit libserf for openSUSE:Factory

2013-07-25 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-07-25 14:29:10

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-06-05 
11:54:35.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-07-25 
14:29:11.0 +0200
@@ -1,0 +2,28 @@
+Wed Jul 24 22:58:56 UTC 2013 - andreas.stie...@gmx.de
+
+- update Serf 1.3.0
+- improvements: 
+  * Improved Basic and Digest authentication:
++ remember credentials on a per-server basis
++ properly manage authentication realms
++ continue functioning when a server sets KeepAlive: off
+  * Improved 2617 compliance: always use strongest authentication
+  * SSL connection performance improvements
+- fixed issues:
+  * use PATH rather than URI within an ssltunnel
+  * improved error reporting from the underlying socket
+  * Fixed bugs with proxy authentication and SSL tunneling through a proxy
+  * Fixed bugs the response parser
+- build system changes
+  * Switch to the SCons build system
+  * retire serfmake, serf.mak, autotools
+- Huge expansion of the test suite
+- packaging changes:
+  * use scons
+  * drop libserf-1.2.1-configure.in-add-gssapi.patch targeting old
+build scripts
+  * add libserf-1.3.x-libdir.patch to fix hardcoded libdir
+  * add libserf-1.3.x-soname.patch to add soname
+  * add libserf-1.3.x-gssapi-libs.patch for libs in pkgconfig file
+
+---

Old:

  libserf-1.2.1-configure.in-add-gssapi.patch
  serf-1.2.1.tar.bz2

New:

  libserf-1.3.x-gssapi-libs.patch
  libserf-1.3.x-libdir.patch
  libserf-1.3.x-soname.patch
  serf-1.3.0.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.nZ1Uv9/_old  2013-07-25 14:29:12.0 +0200
+++ /var/tmp/diff_new_pack.nZ1Uv9/_new  2013-07-25 14:29:12.0 +0200
@@ -23,22 +23,19 @@
 Name:   libserf
 %define soname 0
 %define major  1
-Version:1.2.1
+Version:1.3.0
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
-Patch0: libserf-1.2.1-configure.in-add-gssapi.patch
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+Patch0: libserf-1.3.x-libdir.patch
+Patch1: libserf-1.3.x-soname.patch
+Patch2: libserf-1.3.x-gssapi-libs.patch
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
-%if %{with gssapi}
-BuildRequires:  autoconf
-BuildRequires:  autoconf >= 2.50
-BuildRequires:  krb5-devel
-%endif
 BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
 BuildRequires:  libapr1-devel >= %{minimum_apr_version}
 BuildRequires:  libexpat-devel
@@ -47,7 +44,11 @@
 BuildRequires:  make
 BuildRequires:  openldap2-devel
 BuildRequires:  pkgconfig
+BuildRequires:  scons >= 2.0
 BuildRequires:  zlib-devel
+%if %{with gssapi}
+BuildRequires:  krb5-devel
+%endif
 
 %description
 The serf library is a C-based HTTP client library built upon the Apache
@@ -114,32 +115,38 @@
 
 %prep
 %setup -q -n "serf-%{version}"
-%if %{with gssapi}
 %patch0 -p1
-%endif
+%patch1 -p1
+%patch2 -p1
 
 %build
+# scons expects coma separated flags
+SCONS_OPTFLAGS=`echo %{optflags} | sed "s/ /,/g"`
+scons \
+   PREFIX=%{_prefix} \
+   LIBDIR=%{_libdir} \
+   APR=%{_prefix} \
+   OPENSSL=%{_prefix} \
+   ZLIB=%{_prefix} \
 %if %{with gssapi}
-# required for libserf-1.2.1-configure.in-add-gssapi.patch
-autoreconf -v
-%endif
-
-# krb5-devel has /usr/lib/mit/bin/krb5-config even on 64 bit machines
-%configure \
-%if %{with gssapi}
-   --with-gssapi=/usr/lib/mit \
+   GSSAPI=/usr/lib/mit \
 %endif
-   --includedir=%{_includedir}/serf-%{major} \
-
-make %{?_smp_mflags}
+   DEBUG=yes \
+   CFLAGS="$SCONS_OPTFLAGS" \
+   APR_STATIC=no \
+   %{?_smp_mflags} 
 
 %install
-%makeinstall
+scons install --install-sandbox=%{buildroot}
+pushd %{buildroot}%{_libdir}/
+%__mv libserf-%{major}.so libserf-%{major}.so.%{soname}.0.0
+ln -s libserf-%{major}.so.%{soname}.0.0 libserf-%{major}.so.%{soname}
+ln -s libserf-%{major}.so.%{soname}.0.0 libserf-%{major}.so
+popd
 %__rm -f "%{buildroot}%{_libdir}"/lib*.a
-%__rm "%{buildroot}%{_libdir}"/lib*.la
 
 %check
-%__make check
+scons CFLAGS="" check
 
 %post   -n libserf-1-0 -p /sbin/ldconfig
 

++ libserf-1.3.x-gssapi-libs.patch ++
From: Andreas Stieger 
Date: 2013-07-24 23:58:00 +0100
Subject: [PATCH] add gssapi

commit libserf for openSUSE:Factory

2013-06-05 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-06-05 11:54:34

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf"

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2013-02-23 
16:37:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-06-05 
11:54:35.0 +0200
@@ -1,0 +2,16 @@
+Tue Jun  4 06:22:02 UTC 2013 - andreas.stie...@gmx.de
+
+- update to Serf 1.2.1
+  * Fix issue 95: add gssapi switches to configure
+  * Fix issue 97: skip mmap bucket if APR_HAS_MMAP is undefined
+  * Fix issue 102: digest authentication failures
+  * Improve error return values in SSPI authentication
+  * Ensure serf-1.pc is constructed by serfmake
+  * Optimize SPNego authentication processing
+  * Reject certs that application does not like
+  * Fix possible endless loop in serf_linebuf_fetch()
+- replace libserf-1.2.0-configure.in-add-gssapi.patch (committed 
+  upstream) with libserf-1.2.1-configure.in-add-gssapi.patch
+  (still changes required as patch was changed upstream)
+
+---

Old:

  libserf-1.2.0-configure.in-add-gssapi.patch
  serf-1.2.0.tar.bz2

New:

  libserf-1.2.1-configure.in-add-gssapi.patch
  serf-1.2.1.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.J00Hco/_old  2013-06-05 11:54:36.0 +0200
+++ /var/tmp/diff_new_pack.J00Hco/_new  2013-06-05 11:54:36.0 +0200
@@ -23,20 +23,19 @@
 Name:   libserf
 %define soname 0
 %define major  1
-Version:1.2.0
+Version:1.2.1
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
-Patch0: libserf-1.2.0-configure.in-add-gssapi.patch
+Patch0: libserf-1.2.1-configure.in-add-gssapi.patch
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  autoconf
-BuildRequires:  automake
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 %if %{with gssapi}
+BuildRequires:  autoconf
 BuildRequires:  autoconf >= 2.50
 BuildRequires:  krb5-devel
 %endif
@@ -121,7 +120,7 @@
 
 %build
 %if %{with gssapi}
-# required for libserf-1.2.0-configure.in-add-gssapi.patch
+# required for libserf-1.2.1-configure.in-add-gssapi.patch
 autoreconf -v
 %endif
 

++ libserf-1.2.0-configure.in-add-gssapi.patch -> 
libserf-1.2.1-configure.in-add-gssapi.patch ++
--- 
/work/SRC/openSUSE:Factory/libserf/libserf-1.2.0-configure.in-add-gssapi.patch  
2013-02-23 16:37:03.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.libserf.new/libserf-1.2.1-configure.in-add-gssapi.patch
 2013-06-05 11:54:35.0 +0200
@@ -1,63 +1,33 @@
 From: Andreas Stieger 
-Date: 2013-02-22 21:52:12 +
-Subject: [PATCH] add gssapi to autoconf build system
-References: http://code.google.com/p/serf/issues/detail?id=95
-Upsptream: submitted
+Date: 2013-06-04 07:23:00 +0100
+Subject: [PATCH] autoconf build system fails with gssapi
+References: https://code.google.com/p/serf/issues/detail?id=103
 
-./configure in serf 1.2.0 does not look for, find or accept options to 
-configure gssapi support, this is supported with serfmake.
+[   85s] checking for gssapi support in krb5-config... yes
+[   85s]   adding "-DSERF_HAVE_GSSAPI" to CFLAGS
+[   85s]   adding "-lgssapi_krb5" to LDFLAGS
+[   85s]   adding "-lkrb5" to LDFLAGS
+[   85s]   adding "-lk5crypto" to LDFLAGS
+[   85s]   adding "-lcom_err" to LDFLAGS
+[   85s] checking if gssapi works... no
+[   85s] configure: error: cannot find GSSAPI (Kerberos)
+
+AC_LINK_IFELSE fails unless LIBS="$LIBS $GSSAPI_libs".
 
 ---
- configure.in |   39 +++
- 1 file changed, 39 insertions(+)
+ configure.in |2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
 
-Index: serf-1.2.0/configure.in
+Index: serf-1.2.1/configure.in
 ===
 serf-1.2.0.orig/configure.in   2012-12-08 19:45:28.0 +
-+++ serf-1.2.0/configure.in2013-02-22 21:51:17.0 +
-@@ -194,6 +194,45 @@ dnl Look for OpenSSL
- AC_CHECK_HEADER([openssl/opensslv.h], [],
- [AC_MSG_ERROR([We require OpenSSL; try --with-openssl])])
- 
-+dnl Look for Kerberos 5 for GSSAPI
-+AC_ARG_WITH(gssapi,
-+  APR_HELP_STRING([--with-gssapi=PATH],[build with GSSAPI support; needs 
krb5-config in PATH/bin (eg. /usr/lib/mit)]),
-+[
-+  if test "$withval" = "yes"; then
-+AC_MSG_ERROR([--with-gs

commit libserf for openSUSE:Factory

2013-02-23 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2013-02-23 16:37:02

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2012-10-06 
18:38:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2013-02-23 
16:37:03.0 +0100
@@ -1,0 +2,27 @@
+Sat Feb 23 11:01:38 UTC 2013 - andreas.stie...@gmx.de
+
+- update to Serf 1.2.0
+  This release contains many robustness fixes, especially around flaky
+  and problematic connections.
+  * Fixed issue 94: Serf can enter an infinite loop when server aborts conn.
+  * Fixed issue 91: Serf doesn't handle an incoming 408 Timeout Request
+  * Fixed issue 80: Serf is not handling Negotiate authentication correctly
+  * Fixed issue 77: Endless loop if server doesn't accept Negotiate authn
+  * Fixed issue 93: cleanup-after-fork interferes with parent
+  * Fixed most of issue 89: Support REAL SPNEGO authentication
+  * Enable Negotiate/Kerberos support for proxy servers.
+  * Return error when C-L, chunked, gzip encoded response bodies where
+truncated (due to aborted connection)
+  * Add a logging mechanism that can be enabled at compile-time.
+  * Don't lookup server address if a proxy was configured.
+  * Fix an off-by-one in buffer sizing
+  * Disable SSL compression by default + API to enable it
+  * New serf_connection_get_latency() for estimated network latency
+  * New error code and RFC compliance for the HTTPS tunnel
+  * Handle EINTR when a user suspends and then backgrounds the app
+  * Minor fixes and test suite improvements.
+- add libserf-1.2.0-configure.in-add-gssapi.patch to support gssapi
+  with configure
+- make requirement for apr >= 1.3.0 explicit
+
+

Old:

  serf-1.1.1.tar.bz2

New:

  libserf-1.2.0-configure.in-add-gssapi.patch
  serf-1.2.0.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.n5c95c/_old  2013-02-23 16:37:05.0 +0100
+++ /var/tmp/diff_new_pack.n5c95c/_new  2013-02-23 16:37:05.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libserf
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,32 @@
 #
 
 
+%bcond_without gssapi
+# version 1.2.0 requires apr 1.3.0 or later for apr_socket_addr_get
+%define minimum_apr_version 1.3.0
+
 Name:   libserf
 %define soname 0
 %define major  1
-Version:1.1.1
+Version:1.2.0
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0
 Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
+Patch0: libserf-1.2.0-configure.in-add-gssapi.patch
 Url:https://serf.googlecode.com
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
-BuildRequires:  libapr-util1-devel
-BuildRequires:  libapr1-devel
+%if %{with gssapi}
+BuildRequires:  autoconf >= 2.50
+BuildRequires:  krb5-devel
+%endif
+BuildRequires:  libapr-util1-devel >= %{minimum_apr_version}
+BuildRequires:  libapr1-devel >= %{minimum_apr_version}
 BuildRequires:  libexpat-devel
 BuildRequires:  libopenssl-devel
 BuildRequires:  libtool
@@ -79,8 +88,11 @@
 
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
-Requires:   libapr-util1-devel
-Requires:   libapr1-devel
+%if %{with gssapi}
+Requires:   krb5-devel
+%endif
+Requires:   libapr-util1-devel >= %{minimum_apr_version}
+Requires:   libapr1-devel >= %{minimum_apr_version}
 Requires:   libexpat-devel
 Requires:   libopenssl-devel
 Requires:   libserf-1-0 = %{version}
@@ -103,10 +115,23 @@
 
 %prep
 %setup -q -n "serf-%{version}"
+%if %{with gssapi}
+%patch0 -p1
+%endif
 
 %build
+%if %{with gssapi}
+# required for libserf-1.2.0-configure.in-add-gssapi.patch
+autoreconf -v
+%endif
+
+# krb5-devel has /usr/lib/mit/bin/krb5-config even on 64 bit machines
 %configure \
-   --includedir=%{_includedir}/serf-%{major}
+%if %{with gssapi}
+   --with-gssapi=/usr/lib/mit \
+%endif
+   --includedir=%{_includedir}/serf-%{major} \
+
 make %{?_smp_mflags}
 
 %install

++ libserf-1.2.0-configure.in-add-

commit libserf for openSUSE:Factory

2012-10-06 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2012-10-05 13:45:33

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2012-06-10 
23:19:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2012-10-06 
18:38:51.0 +0200
@@ -1,0 +2,14 @@
+Thu Oct  4 21:45:29 UTC 2012 - andreas.stie...@gmx.de
+
+- update to Serf 1.1.1
+  This patch release contains fixes for some important connection
+  stability issues.
+  * ensure requeued requests are correctly handled. This fixes:
+- infinite loop with multiple connection resets or SIGPIPE errors
+- "connection" hang where we would not re-queue requests that are held 
after
+  we re-connect
+  * test_all goes in an endless loop
+  * Fix memory leak when conn. is closed explicitly/due to pool cleanups
+  * Add new error codes for the SSL bucket
+
+---

Old:

  serf-1.1.0.tar.bz2

New:

  serf-1.1.1.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.Y92YXT/_old  2012-10-06 18:38:52.0 +0200
+++ /var/tmp/diff_new_pack.Y92YXT/_new  2012-10-06 18:38:52.0 +0200
@@ -19,7 +19,7 @@
 Name:   libserf
 %define soname 0
 %define major  1
-Version:1.1.0
+Version:1.1.1
 Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
 License:Apache-2.0

++ serf-1.1.0.tar.bz2 -> serf-1.1.1.tar.bz2 ++
 6513 lines of diff (skipped)
retrying with extended exclude list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/serf-1.1.0/CHANGES new/serf-1.1.1/CHANGES
--- old/serf-1.1.0/CHANGES  2012-06-07 22:12:29.0 +0200
+++ new/serf-1.1.1/CHANGES  2012-10-04 22:06:40.0 +0200
@@ -1,3 +1,14 @@
+Serf 1.1.1 [2012-10-04, from /tags/1.1.1]
+  Fixed issue 86: ensure requeued requests are correctly handled. This fixes:
+- infinite loop with multiple connection resets or SIGPIPE errors
+- "connection" hang where we would not re-queue requests that are held 
after
+  we re-connect
+  Fixed issue 74: test_all goes in an endless loop
+  Fix memory leak when conn. is closed explicitly/due to pool cleanups (r1623)
+  Fix for https on Windows: handle connection aborts (r1628..-30,-33,-34,-37)
+  Add new error codes for the SSL bucket
+
+
 Serf 1.1.0 [2012-06-07, from /tags/1.1.0]
   New: serf_bucket_request_set_CL() for C-L based, non-chunked requests
   New: serf_ssl_server_cert_chain_callback_set() for full-chain validation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude 
config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 
--exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh 
old/serf-1.1.0/buckets/ssl_buckets.c new/serf-1.1.1/buckets/ssl_buckets.c
--- old/serf-1.1.0/buckets/ssl_buckets.c2012-04-19 23:43:22.0 
+0200
+++ new/serf-1.1.1/buckets/ssl_buckets.c2012-09-11 22:01:04.0 
+0200
@@ -180,6 +180,10 @@
 EVP_PKEY *cached_cert_pw;
 
 apr_status_t pending_err;
+
+/* Status of a fatal error, returned on subsequent encrypt or decrypt
+   requests. */
+apr_status_t fatal_err;
 };
 
 typedef struct {
@@ -534,6 +538,9 @@
 const char *data;
 int ssl_len;
 
+if (ctx->fatal_err)
+return ctx->fatal_err;
+
 #ifdef SSL_VERBOSE
 printf("ssl_decrypt: begin %d\n", bufsize);
 #endif
@@ -581,16 +588,44 @@
 break;
 case SSL_ERROR_SSL:
 *len = 0;
-status = ctx->pending_err ? ctx->pending_err : APR_EGENERAL;
-ctx->pending_err = 0;
+if (ctx->pending_err) {
+status = ctx->pending_err;
+ctx->pending_err = 0;
+} else {
+ctx->fatal_err = status = SERF_ERROR_SSL_COMM_FAILED;
+}
 break;
 default:
 *len = 0;
-status = APR_EGENERAL;
+ctx->fatal_err = status = SERF_ERROR_SSL_COMM_FAILED;
 break;
 }
-}
-else {
+} else if (ssl_len == 0) {

commit libserf for openSUSE:Factory

2012-06-10 Thread h_root
Hello community,

here is the log from the commit of package libserf for openSUSE:Factory checked 
in at 2012-06-10 23:19:15

Comparing /work/SRC/openSUSE:Factory/libserf (Old)
 and  /work/SRC/openSUSE:Factory/.libserf.new (New)


Package is "libserf", Maintainer is ""

Changes:

--- /work/SRC/openSUSE:Factory/libserf/libserf.changes  2012-03-23 
15:11:39.0 +0100
+++ /work/SRC/openSUSE:Factory/.libserf.new/libserf.changes 2012-06-10 
23:19:16.0 +0200
@@ -1,0 +2,7 @@
+Thu Jun  7 20:54:34 UTC 2012 - andreas.stie...@gmx.de
+
+- update to upstream Serf 1.1.0
+  New: serf_bucket_request_set_CL() for C-L based, non-chunked requests
+  New: serf_ssl_server_cert_chain_callback_set() for full-chain validation
+
+---

Old:

  serf-1.0.3.tar.bz2

New:

  serf-1.1.0.tar.bz2



Other differences:
--
++ libserf.spec ++
--- /var/tmp/diff_new_pack.Agd103/_old  2012-06-10 23:19:17.0 +0200
+++ /var/tmp/diff_new_pack.Agd103/_new  2012-06-10 23:19:17.0 +0200
@@ -16,22 +16,30 @@
 #
 
 
-
 Name:   libserf
 %define soname 0
 %define major  1
-Version:1.0.3
-Release:1
+Version:1.1.0
+Release:0
 Summary:High-Performance Asynchronous HTTP Client Library
+License:Apache-2.0
+Group:  System/Libraries
 Source: https://serf.googlecode.com/files/serf-%{version}.tar.bz2
 Url:https://serf.googlecode.com
-Group:  System/Libraries
-License:Apache-2.0
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  libapr-util1-devel libapr1-devel openldap2-devel zlib-devel
-BuildRequires:  libexpat-devel libopenssl-devel
-BuildRequires:  gcc glibc-devel make pkgconfig
-BuildRequires:  autoconf automake libtool
+BuildRequires:  autoconf
+BuildRequires:  automake
+BuildRequires:  gcc
+BuildRequires:  glibc-devel
+BuildRequires:  libapr-util1-devel
+BuildRequires:  libapr1-devel
+BuildRequires:  libexpat-devel
+BuildRequires:  libopenssl-devel
+BuildRequires:  libtool
+BuildRequires:  make
+BuildRequires:  openldap2-devel
+BuildRequires:  pkgconfig
+BuildRequires:  zlib-devel
 
 %description
 The serf library is a C-based HTTP client library built upon the Apache
@@ -71,9 +79,13 @@
 
 Summary:High-Performance Asynchronous HTTP Client Library
 Group:  Development/Libraries/C and C++
+Requires:   libapr-util1-devel
+Requires:   libapr1-devel
+Requires:   libexpat-devel
+Requires:   libopenssl-devel
 Requires:   libserf-1-0 = %{version}
-Requires:   libapr1-devel libapr-util1-devel openldap2-devel zlib-devel
-Requires:   libopenssl-devel libexpat-devel
+Requires:   openldap2-devel
+Requires:   zlib-devel
 
 %description -n libserf-devel
 The serf library is a C-based HTTP client library built upon the Apache

++ serf-1.0.3.tar.bz2 -> serf-1.1.0.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/serf-1.0.3/CHANGES new/serf-1.1.0/CHANGES
--- old/serf-1.0.3/CHANGES  2012-03-20 20:39:31.0 +0100
+++ new/serf-1.1.0/CHANGES  2012-06-07 22:12:29.0 +0200
@@ -1,14 +1,22 @@
-Serf 1.0.3 [2012-03-20, r1586]
+Serf 1.1.0 [2012-06-07, from /tags/1.1.0]
+  New: serf_bucket_request_set_CL() for C-L based, non-chunked requests
+  New: serf_ssl_server_cert_chain_callback_set() for full-chain validation
+
+
+Serf 1.0.3 [2012-03-20, from /tags/1.0.3, r1586]
   Map more OpenSSL errors into SERF_SSL_CERT_UNKNOWNCA (r1573)
 
+
 Serf 1.0.2
   Not released.
 
-Serf 1.0.1 [2012-02-15, r1569]
+
+Serf 1.0.1 [2012-02-15, from /tags/1.0.1, r1569]
   FreeBSD fixes in the test suite (r1560, r1565)
   Minor build fixes
 
-Serf 1.0.0 [2011-07-15, r1540]
+
+Serf 1.0.0 [2011-07-15, from /tags/1.0.0, r1540]
   Fixed issue 38: enable builds using non-GNU make
   Fixed issue 49: support SSL tunnels for HTTPS via a proxy
   Fixed issue 56: allow Subject Alternative Name, and enable SNI
@@ -29,17 +37,17 @@
   Various memory leak fixes
 
 
-Serf 0.7.2 [2011-03-12, r1452]
+Serf 0.7.2 [2011-03-12, from /tags/0.7.2, r1452]
   Actually disable Nagle when creating a connection (r1441)
   Return error when app asks for HTTPS over proxy connection (r1433)
 
 
-Serf 0.7.1 [2011-01-25, r1432]
+Serf 0.7.1 [2011-01-25, from /tags/0.7.1, r1432]
   Fix memory leak when using SSL (r1408, r1416)
   Fix build for blank apr-util directory (r1421)
 
 
-Serf 0.7.0 [2010-08-25, r1407]
+Serf 0.7.0 [2010-08-25, from /tags/0.7.0, r1407]
   Fix double free abort when destroying request buckets
   Fix test server in unit test framework to avoid random test failures
   Allow older Serf programs which don't use the new auth