Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Feb 2016 14:24:51 +0000 (UTC)
From:      Bernard Spil <brnrd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r408929 - in head/www/nghttp2: . files
Message-ID:  <201602151424.u1FEOp5J095392@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brnrd
Date: Mon Feb 15 14:24:51 2016
New Revision: 408929
URL: https://svnweb.freebsd.org/changeset/ports/408929

Log:
  www/nghttp2: Update to version 1.7.1
  
    - Convert MASTER_SITES to USE_GITHUB
      - Remove USES=tar:xz
    - Remove unneeded RUN_DEPENDS
    - Add USES=autoreconf
    - Fix pkgconfig path
    - Remove defunct configure jemalloc fix
    - Fix LDFLAGS -ldl problem
  
  Reviewed by:	koobs (mentor), feld (mentor)
  Approved by:	feld (mentor)
  Differential Revision:	D5218
  MFH:		2016Q1

Added:
  head/www/nghttp2/files/
  head/www/nghttp2/files/patch-configure.ac   (contents, props changed)
Modified:
  head/www/nghttp2/Makefile
  head/www/nghttp2/distinfo
  head/www/nghttp2/pkg-plist

Modified: head/www/nghttp2/Makefile
==============================================================================
--- head/www/nghttp2/Makefile	Mon Feb 15 14:21:51 2016	(r408928)
+++ head/www/nghttp2/Makefile	Mon Feb 15 14:24:51 2016	(r408929)
@@ -2,10 +2,9 @@
 # $FreeBSD$
 
 PORTNAME=	nghttp2
-PORTVERSION=	1.6.0
+PORTVERSION=	1.7.1
+DISTVERSIONPREFIX=	v
 CATEGORIES=	www net
-MASTER_SITES=	https://github.com/tatsuhiro-t/${PORTNAME}/releases/download/v${PORTVERSION}/ \
-		LOCAL/sunpoet
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	HTTP/2.0 C Library
@@ -19,12 +18,14 @@ BUILD_DEPENDS=	libev>=4.15:${PORTSDIR}/d
 LIB_DEPENDS=	libev.so:${PORTSDIR}/devel/libev \
 		libevent_openssl.so:${PORTSDIR}/devel/libevent2 \
 		libspdylay.so:${PORTSDIR}/www/spdylay
-RUN_DEPENDS:=	${BUILD_DEPENDS}
 
 OPTIONS_DEFINE=	ASIO DOCS HPACK
 OPTIONS_DEFAULT=HPACK
 OPTIONS_SUB=	yes
 
+USE_GITHUB=	yes
+GH_ACCOUNT=	tatsuhiro-t
+
 CONFIGURE_ARGS=	--disable-python-bindings \
 		--enable-app \
 		--enable-examples \
@@ -35,11 +36,12 @@ CONFIGURE_ENV=	OPENSSL_CFLAGS="-I${OPENS
 		ZLIB_LIBS="-L${LIBDIR} -lz"
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
+PATHFIX_MAKEFILEIN=	Makefile.am
 USE_CXXSTD=	c++11
 USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 USE_OPENSSL=	yes
-USES=		compiler:c++11-lib gmake libtool localbase pathfix pkgconfig tar:xz
+USES=		autoreconf compiler:c++11-lib gmake libtool localbase pathfix pkgconfig
 
 PORTDATA=	fetch-ocsp-response
 PORTDOCS=	*
@@ -62,7 +64,4 @@ CPPFLAGS+=	-D_GLIBCXX_USE_C99
 CONFIGURE_ARGS+=--with-jemalloc
 .endif
 
-post-patch:
-	@${REINPLACE_CMD} -e '/JEMALLOC_LIBS/ s|-ljemalloc||' ${WRKSRC}/configure
-
 .include <bsd.port.post.mk>

Modified: head/www/nghttp2/distinfo
==============================================================================
--- head/www/nghttp2/distinfo	Mon Feb 15 14:21:51 2016	(r408928)
+++ head/www/nghttp2/distinfo	Mon Feb 15 14:24:51 2016	(r408929)
@@ -1,2 +1,2 @@
-SHA256 (nghttp2-1.6.0.tar.xz) = cc569501d243c934ea980a1f68fadb8ccc4f133ae8a5b15dcd29f0de76f9bac3
-SIZE (nghttp2-1.6.0.tar.xz) = 1399524
+SHA256 (tatsuhiro-t-nghttp2-v1.7.1_GH0.tar.gz) = 3f939b1507b4b9b94d8c1f873b41945d0c7bcf6a21c313124526201dc6e11c3c
+SIZE (tatsuhiro-t-nghttp2-v1.7.1_GH0.tar.gz) = 1561854

Added: head/www/nghttp2/files/patch-configure.ac
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/nghttp2/files/patch-configure.ac	Mon Feb 15 14:24:51 2016	(r408929)
@@ -0,0 +1,35 @@
+From e4b2847d3135a024c740d25f9e11da7ff0bf0fd6 Mon Sep 17 00:00:00 2001
+From: Bernard Spil <Sp1l@users.noreply.github.com>
+Date: Sat, 6 Feb 2016 14:36:27 +0100
+Subject: [PATCH] Don't check for dlopen/libdl on *BSD
+
+This makes linking fail on -ldl as there is no libdl on in /usr/lib or /usr/local/lib on *BSD
+Tested (and part of the proposed nghttp2 1.7.0) on [https://reviews.freebsd.org/D5218|FreeBSD]
+---
+ configure.ac | 13 ++++++++++---
+ 1 file changed, 10 insertions(+), 3 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 09a2538..4a4defe 100644
+--- configure.ac.orig
++++ configure.ac
+@@ -256,9 +256,16 @@ if test "x${have_zlib}" = "xno"; then
+ fi
+ 
+ # dl: openssl requires libdl when it is statically linked.
+-LIBS_OLD=$LIBS
+-AC_SEARCH_LIBS([dlopen], [dl], [APPLDFLAGS="-ldl $APPLDFLAGS"], [], [])
+-LIBS=$LIBS_OLD
++case "${host_os}" in
++  *bsd*)
++    # dlopen is in libc on *BSD
++    ;;
++  *)
++    save_LIBS=$LIBS
++    AC_SEARCH_LIBS([dlopen], [dl], [APPLDFLAGS="-ldl $APPLDFLAGS"], [], [])
++    LIBS=$save_LIBS
++    ;;
++esac
+ 
+ # cunit
+ PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])

Modified: head/www/nghttp2/pkg-plist
==============================================================================
--- head/www/nghttp2/pkg-plist	Mon Feb 15 14:21:51 2016	(r408928)
+++ head/www/nghttp2/pkg-plist	Mon Feb 15 14:24:51 2016	(r408929)
@@ -12,7 +12,7 @@ include/nghttp2/nghttp2ver.h
 lib/libnghttp2.a
 lib/libnghttp2.so
 lib/libnghttp2.so.14
-lib/libnghttp2.so.14.4.0
+lib/libnghttp2.so.14.4.1
 %%ASIO%%lib/libnghttp2_asio.a
 %%ASIO%%lib/libnghttp2_asio.so
 %%ASIO%%lib/libnghttp2_asio.so.1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602151424.u1FEOp5J095392>