From 8efb526590883b9112cf86f4d430bbc8fa22c05c Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 26 Oct 2015 15:44:00 +0100 Subject: [PATCH] update to the latest upstream release (1.4.0) --- ...gure-do-not-enable-hidden-visibility.patch | 75 +++++++++++++++++++ nghttp2.spec | 12 ++- sources | 2 +- 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 0001-configure-do-not-enable-hidden-visibility.patch diff --git a/0001-configure-do-not-enable-hidden-visibility.patch b/0001-configure-do-not-enable-hidden-visibility.patch new file mode 100644 index 0000000..aba7c9e --- /dev/null +++ b/0001-configure-do-not-enable-hidden-visibility.patch @@ -0,0 +1,75 @@ +From 66f1d9c8232d6c5ae4919c5d59db013de9aee92c Mon Sep 17 00:00:00 2001 +From: Kamil Dudka +Date: Mon, 26 Oct 2015 16:41:17 +0100 +Subject: [PATCH] configure: do not enable hidden visibility + +... until the upstream test-suite is ready for that + +Bug: https://github.com/tatsuhiro-t/nghttp2/issues/410 +--- + configure | 35 ----------------------------------- + configure.ac | 2 +- + 2 files changed, 1 insertion(+), 36 deletions(-) + +diff --git a/configure b/configure +index 07fefc6..724c0d0 100755 +--- a/configure ++++ b/configure +@@ -22983,41 +22983,6 @@ CFLAGS=$ac_save_CFLAGS + + + EXTRACFLAG= +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5 +-$as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; } +-if ${ax_cv_check_cflags___fvisibility_hidden+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- +- ax_check_save_flags=$CFLAGS +- CFLAGS="$CFLAGS -fvisibility=hidden" +- cat confdefs.h - <<_ACEOF >conftest.$ac_ext +-/* end confdefs.h. */ +- +-int +-main () +-{ +- +- ; +- return 0; +-} +-_ACEOF +-if ac_fn_c_try_compile "$LINENO"; then : +- ax_cv_check_cflags___fvisibility_hidden=yes +-else +- ax_cv_check_cflags___fvisibility_hidden=no +-fi +-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +- CFLAGS=$ax_check_save_flags +-fi +-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fvisibility_hidden" >&5 +-$as_echo "$ax_cv_check_cflags___fvisibility_hidden" >&6; } +-if test x"$ax_cv_check_cflags___fvisibility_hidden" = xyes; then : +- EXTRACFLAG="-fvisibility=hidden" +-else +- : +-fi +- + + + +diff --git a/configure.ac b/configure.ac +index 59fa5b0..a906b43 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -678,7 +678,7 @@ CFLAGS=$ac_save_CFLAGS + AC_SUBST([WARNCFLAGS]) + + EXTRACFLAG= +-AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [EXTRACFLAG="-fvisibility=hidden"]) ++dnl AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [EXTRACFLAG="-fvisibility=hidden"]) + + AC_SUBST([EXTRACFLAG]) + +-- +2.5.2 + diff --git a/nghttp2.spec b/nghttp2.spec index 50de2bf..7829b3f 100644 --- a/nghttp2.spec +++ b/nghttp2.spec @@ -1,12 +1,14 @@ Summary: Experimental HTTP/2 client, server and proxy Name: nghttp2 -Version: 1.3.4 +Version: 1.4.0 Release: 1%{?dist} License: MIT Group: Applications/Internet URL: https://nghttp2.org/ Source0: https://github.com/tatsuhiro-t/nghttp2/releases/download/v%{version}/nghttp2-%{version}.tar.xz +Patch1: 0001-configure-do-not-enable-hidden-visibility.patch + BuildRequires: CUnit-devel BuildRequires: libev-devel BuildRequires: openssl-devel @@ -41,6 +43,11 @@ for building applications with libnghttp2. %prep %setup -q +# Do not enable hidden visibility until the upstream test-suite is ready for +# that. See https://github.com/tatsuhiro-t/nghttp2/issues/410 for details. +%patch1 -p1 +touch aclocal.m4 configure {config.h,Makefile}.in + %build %configure \ @@ -101,6 +108,9 @@ make %{?_smp_mflags} check %changelog +* Mon Oct 26 2015 Kamil Dudka 1.4.0-1 +- update to the latest upstream release + * Thu Sep 24 2015 Kamil Dudka 1.3.4-1 - update to the latest upstream release diff --git a/sources b/sources index cdd6bb9..c131423 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -061c212379e9114c02c996a99c1490cf nghttp2-1.3.4.tar.xz +5104e8adc7d20af6423ff21bb22cb7ac nghttp2-1.4.0.tar.xz