From owner-svn-ports-head@freebsd.org Sat Oct 28 16:00:57 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E8BB5E46A54; Sat, 28 Oct 2017 16:00:57 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B727873276; Sat, 28 Oct 2017 16:00:57 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9SG0u2Y032700; Sat, 28 Oct 2017 16:00:56 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9SG0uAB032698; Sat, 28 Oct 2017 16:00:56 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201710281600.v9SG0uAB032698@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Sat, 28 Oct 2017 16:00:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453061 - in head/www/lighttpd: . files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/www/lighttpd: . files X-SVN-Commit-Revision: 453061 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Oct 2017 16:00:58 -0000 Author: madpilot Date: Sat Oct 28 16:00:56 2017 New Revision: 453061 URL: https://svnweb.freebsd.org/changeset/ports/453061 Log: Fix runtime problem when lighttpd is built with IPV6 option turned on. PR: 223288 Submitted by: Piotr Kubaj (maintainer) Obtained from: https://redmine.lighttpd.net/issues/2832 Added: head/www/lighttpd/files/patch-patch-src__network.c (contents, props changed) Modified: head/www/lighttpd/Makefile Modified: head/www/lighttpd/Makefile ============================================================================== --- head/www/lighttpd/Makefile Sat Oct 28 15:56:49 2017 (r453060) +++ head/www/lighttpd/Makefile Sat Oct 28 16:00:56 2017 (r453061) @@ -3,6 +3,7 @@ PORTNAME?= lighttpd PORTVERSION= 1.4.47 +PORTREVISION= 1 CATEGORIES?= www MASTER_SITES?= http://download.lighttpd.net/lighttpd/releases-1.4.x/ Added: head/www/lighttpd/files/patch-patch-src__network.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/lighttpd/files/patch-patch-src__network.c Sat Oct 28 16:00:56 2017 (r453061) @@ -0,0 +1,19 @@ +--- patch-src_network.c.orig 2017-10-28 15:54:22 UTC ++++ patch-src_network.c +@@ -0,0 +1,16 @@ ++--- src/network.c.orig 2017-10-28 14:00:17 UTC +++++ src/network.c ++@@ -77,9 +77,13 @@ static void network_host_normalize_addr_ ++ if (addr->plain.sa_family == AF_INET6) ++ buffer_append_string_len(host, CONST_STR_LEN("]")); ++ if (addr->plain.sa_family != AF_UNIX) { +++#ifdef HAVE_IPV6 ++ unsigned short port = (addr->plain.sa_family == AF_INET) ++ ? ntohs(addr->ipv4.sin_port) ++ : ntohs(addr->ipv6.sin6_port); +++#elif +++ unsigned short port = ntohs(addr->ipv6.sin6_port); +++#endif ++ buffer_append_string_len(host, CONST_STR_LEN(":")); ++ buffer_append_int(host, (int)port); ++ }