SHA256
1
0
forked from pool/nghttp2

osc copypac from project:server:http package:nghttp2 revision:3

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/nghttp2?expand=0&rev=44
This commit is contained in:
Martin Pluskal 2015-12-02 06:51:13 +00:00 committed by Git OBS Bridge
parent 0789d53311
commit 3f7afcf4d3
5 changed files with 59 additions and 38 deletions

View File

@ -1,31 +0,0 @@
--- a/configure.ac
+++ b/configure.ac
@@ -695,6 +695,9 @@ if test "x$threads" != "xyes" ||
AC_DEFINE([NOTHREADS], [1], [Define to 1 if you want to disable threads.])
fi
+# propagate $enable_static to tests/Makefile.am
+AM_CONDITIONAL([ENABLE_STATIC], [test "x$enable_static" = "xyes"])
+
AC_SUBST([TESTLDADD])
AC_SUBST([APPLDFLAGS])
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -49,7 +49,15 @@ HFILES = nghttp2_pq_test.h nghttp2_map_t
main_SOURCES = $(HFILES) $(OBJECTS)
-main_LDADD = ${top_builddir}/lib/libnghttp2.la @CUNIT_LIBS@ @TESTLDADD@
+if ENABLE_STATIC
+main_LDADD = ${top_builddir}/lib/libnghttp2.la
+else
+# With static lib disabled and symbol hiding enabled, we have to link object
+# files directly because the tests use symbols not included in public API.
+main_LDADD = ${top_builddir}/lib/.libs/*.o
+endif
+
+main_LDADD += @CUNIT_LIBS@ @TESTLDADD@
main_LDFLAGS = -static
if ENABLE_FAILMALLOC

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20d1481fe7fa65fd4f25457a43406a6f627a34f19b61f488a18ab56e2ef15b65
size 1388820

3
nghttp2-1.5.0.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:52e345d46d6f990dc19be8a35403a5230345182d26d04cb82abbea4a168f5987
size 1398256

View File

@ -1,3 +1,58 @@
-------------------------------------------------------------------
Tue Dec 1 14:13:15 UTC 2015 - mpluskal@suse.com
- Update to 1.5.0
* Fix bug that nghttp2_session_find_stream(session, 0) returned
NULL
* Add nghttp2_session_change_stream_priority() to change stream
priority without sending PRIORITY frame
* Add nghttp2_session_check_server_session() API
* Consider to use CANCEL error code when closing streams with
GOAWAY
* Don't send push response if GOAWAY has been received
* Use error code CANCEL to reset pushed reserved stream from
remote
* Add nghttp2_session_upgrade2(), deprecate
nghttp2_session_upgrade()
* Workaround HTTP upgrade with HEAD request in
nghttp2_session_upgrade()
* Introduce NGHTTP2_NV_FLAG_NO_COPY_NAME and
NGHTTP2_NV_FLAG_NO_COPY_VALUE
* Add nghttp2_session_check_request_allowed() API function
* Switch to clang-format-3.6
* Update mruby to 1.2.0
* tests: fix broken linkage with --disable-static (Patch from
Kamil Dudka)
* python: Send RST_STREAM if remote side is not closed and
response finished
* asio: client: call on_error when connection is dropped
* asio: ALPN support
* h2load: Add --h1 option to force http/1.1 for both http and
https URI
* h2load: Fix crash when dealing with "connection: close" form
HTTP/1.1 server
* h2load: h2load goes into infinite loop when timing script file
starts with 0.0 in first line (Patch from Kit Chan)
* h2load: Override user-agent with -H option
* h2load: Print "space savings" to measure header compression
efficiency
* h2load: Stream error should be counted toward errored
* h2load: Show application protocol with OpenSSL < 1.0.2
* nghttpx: Don't send RST_STREAM to h2 backend if backend is
disconnected state
* nghttpx: Support server push from HTTP/2 backend
* nghttpx: Fix bug that causes connection failure with backend
proxy URI
* nghttpx: Use --backend-tls-sni-field to verify certificate
hostname
* nghttpx: Log :authority as $http_host if available
* nghttpd: Fix crash with CONNECT request
* nghttpd: Defered eviction of cached fd using timer
* nghttpd: Read /etc/mime.types to set content-type header field
* nghttp: Record request method to output it in har correctly
* nghttp: Use method given in -H with ":method" in HTTP Upgrade
- Drop nghttp2-1.4.0-fix-tests.patch (now in upstream)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 16 17:21:15 UTC 2015 - mpluskal@suse.com Mon Nov 16 17:21:15 UTC 2015 - mpluskal@suse.com

View File

@ -21,7 +21,7 @@
%define soname_asio libnghttp2_asio %define soname_asio libnghttp2_asio
%define sover_asio 1 %define sover_asio 1
Name: nghttp2 Name: nghttp2
Version: 1.4.0 Version: 1.5.0
Release: 0 Release: 0
Summary: Implementation of Hypertext Transfer Protocol version 2 in C Summary: Implementation of Hypertext Transfer Protocol version 2 in C
License: MIT License: MIT
@ -31,8 +31,6 @@ Source: https://github.com/tatsuhiro-t/%{name}/releases/download/v%{vers
Source1: baselibs.conf Source1: baselibs.conf
# PATCH-FIX-OPENSUSE nghttp2-remove-python-build.patch # PATCH-FIX-OPENSUSE nghttp2-remove-python-build.patch
Patch0: %{name}-remove-python-build.patch Patch0: %{name}-remove-python-build.patch
# PATCH-FIX-UPSTREAM nghttp2-1.4.0-fix-tests.patch kdudka@redhat.com -- Tests: fix broken linkage with --disable-static (commit 4825009).
Patch1: %{name}-1.4.0-fix-tests.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: boost-devel BuildRequires: boost-devel
@ -116,7 +114,6 @@ HTTP/2 client, server and proxy.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
autoreconf -fiv autoreconf -fiv