From 7a6ad0693db181b72444fa1ef0ed3957cfb885b46b449547d06d2fc569d56811 Mon Sep 17 00:00:00 2001 From: Michal Vyskocil Date: Thu, 6 Jun 2013 08:16:27 +0000 Subject: [PATCH] - drop test_tls_options if build is in OBS libmicrohttpd-drop-test_tls_options.patch OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmicrohttpd?expand=0&rev=21 --- libmicrohttpd-drop-test_tls_options.patch | 41 +++++++++++++++++++++++ libmicrohttpd.changes | 6 ++++ libmicrohttpd.spec | 7 ++++ 3 files changed, 54 insertions(+) create mode 100644 libmicrohttpd-drop-test_tls_options.patch diff --git a/libmicrohttpd-drop-test_tls_options.patch b/libmicrohttpd-drop-test_tls_options.patch new file mode 100644 index 0000000..cb0fe80 --- /dev/null +++ b/libmicrohttpd-drop-test_tls_options.patch @@ -0,0 +1,41 @@ +From: Michal Vyskocil +Subject: Drop test_tls_options + +test_tls_options fails in OBS, but not in local build. So lets skip it from OBS +builds. + +/usr/bin/make check-TESTS +make[5]: Entering directory `/home/abuild/rpmbuild/BUILD/libmicrohttpd-0.9.27/src/testcurl/https' +curl version: libcurl/7.30.0 OpenSSL/1.0.1e zlib/1.2.8 libidn/1.25 libssh2/1.4.3 +The following handshake should fail (and print an error message)... +curl_easy_perform failed: `SSL connect error' +Fatal error in GNU libmicrohttpd daemon.c:2717: Failed to join a thread + +/bin/sh: line 5: 15991 Aborted ${dir}$tst +FAIL: test_tls_options + +Index: libmicrohttpd-0.9.27/src/testcurl/https/Makefile.am +=================================================================== +--- libmicrohttpd-0.9.27.orig/src/testcurl/https/Makefile.am ++++ libmicrohttpd-0.9.27/src/testcurl/https/Makefile.am +@@ -29,7 +29,6 @@ check_PROGRAMS = \ + EXTRA_DIST = cert.pem key.pem tls_test_keys.h tls_test_common.h + + TESTS = \ +- test_tls_options \ + test_https_multi_daemon \ + test_https_get \ + test_https_get_select \ +Index: libmicrohttpd-0.9.27/src/testcurl/https/Makefile.in +=================================================================== +--- libmicrohttpd-0.9.27.orig/src/testcurl/https/Makefile.in ++++ libmicrohttpd-0.9.27/src/testcurl/https/Makefile.in +@@ -58,7 +58,7 @@ check_PROGRAMS = test_tls_options$(EXEEX + test_https_get_parallel_threads$(EXEEXT) \ + test_https_session_info$(EXEEXT) test_https_time_out$(EXEEXT) \ + test_empty_response$(EXEEXT) +-TESTS = test_tls_options$(EXEEXT) test_https_multi_daemon$(EXEEXT) \ ++TESTS = test_https_multi_daemon$(EXEEXT) \ + test_https_get$(EXEEXT) test_https_get_select$(EXEEXT) \ + test_https_get_parallel$(EXEEXT) \ + test_https_get_parallel_threads$(EXEEXT) \ diff --git a/libmicrohttpd.changes b/libmicrohttpd.changes index 091164e..73e9a53 100644 --- a/libmicrohttpd.changes +++ b/libmicrohttpd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jun 6 08:15:30 UTC 2013 - mvyskocil@suse.com + +- drop test_tls_options if build is in OBS + libmicrohttpd-drop-test_tls_options.patch + ------------------------------------------------------------------- Wed Jun 5 16:42:38 UTC 2013 - jengelh@inai.de diff --git a/libmicrohttpd.spec b/libmicrohttpd.spec index e484e01..6f579fe 100644 --- a/libmicrohttpd.spec +++ b/libmicrohttpd.spec @@ -30,6 +30,8 @@ Url: http://gnunet.org/libmicrohttpd/ Source0: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz Source1: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz.sig Source2: libmicrohttpd.keyring +#PATCH-FIX-OPENSUSE: test_tls_options fails when running in OBS, so lets drop that one +Patch0: libmicrohttpd-drop-test_tls_options.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: libcurl-devel BuildRequires: libgcrypt-devel >= 1.2.4 @@ -142,6 +144,11 @@ application, check it out. %endif %setup -q +#XXX: test fail inside OBS only +%if 0%{?opensuse_bs} +%patch0 -p1 +%endif + %build %configure --disable-static \ --enable-curl