From owner-svn-ports-head@freebsd.org Tue Oct 1 03:23:18 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BD90513E7E6; Tue, 1 Oct 2019 03:23:18 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46j4NQ4fqhz3MJy; Tue, 1 Oct 2019 03:23:18 +0000 (UTC) (envelope-from koobs@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 693FAD3BC; Tue, 1 Oct 2019 03:23:18 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x913NIwD029905; Tue, 1 Oct 2019 03:23:18 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x913NIJ7029903; Tue, 1 Oct 2019 03:23:18 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201910010323.x913NIJ7029903@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Tue, 1 Oct 2019 03:23:18 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r513445 - in head/multimedia/libhdhomerun: . files X-SVN-Group: ports-head X-SVN-Commit-Author: koobs X-SVN-Commit-Paths: in head/multimedia/libhdhomerun: . files X-SVN-Commit-Revision: 513445 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.29 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: Tue, 01 Oct 2019 03:23:18 -0000 Author: koobs Date: Tue Oct 1 03:23:17 2019 New Revision: 513445 URL: https://svnweb.freebsd.org/changeset/ports/513445 Log: multimedia/libhdhomerun: Backport FreeBSD broadcast patch Release 20190621 caused a regression in the ability to discover tuner hardware, for example using: hdhomerun_config discover. This change backports a commit [1] marked as "Release 20190625" which doesn't (yet?) appear to be available/distributed. [1] https://github.com/Silicondust/libhdhomerun/commit/b0e5d5f5c8e2bf37dea34beb014e08ebb598ebf6 PR: 240907 Reported by: Daniel Becker Submitted by: David O'Rourke (maintainer) Added: head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c (contents, props changed) Modified: head/multimedia/libhdhomerun/Makefile Modified: head/multimedia/libhdhomerun/Makefile ============================================================================== --- head/multimedia/libhdhomerun/Makefile Tue Oct 1 00:52:06 2019 (r513444) +++ head/multimedia/libhdhomerun/Makefile Tue Oct 1 03:23:17 2019 (r513445) @@ -2,6 +2,7 @@ PORTNAME= libhdhomerun PORTVERSION= 20190621 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= https://download.silicondust.com/hdhomerun/ DISTNAME= ${PORTNAME}_${PORTVERSION} Added: head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/multimedia/libhdhomerun/files/patch-hdhomerun__discover.c Tue Oct 1 03:23:17 2019 (r513445) @@ -0,0 +1,35 @@ +# Backport FreeBSD broadcast patch +# https://github.com/Silicondust/libhdhomerun/commit/b0e5d5f5c8e2bf37dea34beb014e08ebb598ebf6 + +--- hdhomerun_discover.c.orig 2019-09-30 16:45:23 UTC ++++ hdhomerun_discover.c +@@ -183,7 +183,8 @@ static bool hdhomerun_discover_send(struct hdhomerun_d + unsigned int i; + for (i = 1; i < ds->sock_count; i++) { + struct hdhomerun_discover_sock_t *dss = &ds->socks[i]; +- ++ uint32_t send_ip = target_ip; ++ + if (target_ip != 0xFFFFFFFF) { + if (dss->subnet_mask == 0) { + continue; +@@ -193,7 +194,18 @@ static bool hdhomerun_discover_send(struct hdhomerun_d + } + } + +- result |= hdhomerun_discover_send_internal(ds, dss, target_ip, device_type, device_id); ++#if defined(IP_ONESBCAST) ++ /* FreeBSD special handling - send subnet broadcast */ ++ if (target_ip == 0xFFFFFFFF) { ++ send_ip = dss->local_ip | ~dss->subnet_mask; ++ ++ if ((send_ip == 0x00000000) || (send_ip == 0xFFFFFFFF)) { ++ continue; ++ } ++ } ++#endif ++ ++ result |= hdhomerun_discover_send_internal(ds, dss, send_ip, device_type, device_id); + } + + /*