From owner-svn-ports-head@freebsd.org Sat Aug 22 10:58:57 2015 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 D841B9BE3A5; Sat, 22 Aug 2015 10:58:57 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 AEBDB1081; Sat, 22 Aug 2015 10:58:57 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7MAwvs6039034; Sat, 22 Aug 2015 10:58:57 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7MAwvMO039032; Sat, 22 Aug 2015 10:58:57 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <201508221058.t7MAwvMO039032@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Sat, 22 Aug 2015 10:58:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r395027 - in head/sysutils/hal: . files X-SVN-Group: ports-head 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.20 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, 22 Aug 2015 10:58:57 -0000 Author: riggs Date: Sat Aug 22 10:58:56 2015 New Revision: 395027 URL: https://svnweb.freebsd.org/changeset/ports/395027 Log: - Allow to detect video interfaces when kernel is built without STACK - Bump PORTREVISION PR: 194345 Submitted by: lenzi.sergio@gmail.com Reviewed by: pi Approved by: maintainer timeout Modified: head/sysutils/hal/Makefile head/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c Modified: head/sysutils/hal/Makefile ============================================================================== --- head/sysutils/hal/Makefile Sat Aug 22 10:55:59 2015 (r395026) +++ head/sysutils/hal/Makefile Sat Aug 22 10:58:56 2015 (r395027) @@ -4,7 +4,7 @@ PORTNAME= hal DISTVERSION= 0.5.14 -PORTREVISION= 29 +PORTREVISION= 30 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ Modified: head/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c ============================================================================== --- head/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c Sat Aug 22 10:55:59 2015 (r395026) +++ head/sysutils/hal/files/patch-hald_freebsd_probing_probe-video4linux.c Sat Aug 22 10:58:56 2015 (r395027) @@ -1,6 +1,6 @@ ---- hald/freebsd/probing/probe-video4linux.c.orig 2010-02-21 14:51:01.000000000 -0500 -+++ hald/freebsd/probing/probe-video4linux.c 2010-02-21 14:54:51.000000000 -0500 -@@ -0,0 +1,225 @@ +--- hald/freebsd/probing/probe-video4linux.c.orig 2014-10-03 22:48:53.887627582 -0300 ++++ hald/freebsd/probing/probe-video4linux.c 2014-10-12 23:37:47.263963719 -0300 +@@ -0,0 +1,218 @@ +/*************************************************************************** + * CVSID: $Id$ + * @@ -87,17 +87,6 @@ + return -1; + } + g_free (contents); -+ -+ len = 4; -+ sysctlnametomib ("kern.proc.pid", mib, &len); -+ -+ len = sizeof(struct kinfo_proc); -+ mib[3] = pid; -+ -+ /* This is just a rough test. */ -+ if (sysctl (mib, 4, NULL, &len, NULL, 0) == -1) -+ return -1; -+ + return i; +} + @@ -110,6 +99,7 @@ + int bus = -1; + int addr = -1; + int intf = -1; ++ //int i; + char *device_file = NULL; + char *busstr; + char *addrstr; @@ -118,6 +108,7 @@ + struct v4l2_capability v2cap; + LibHalChangeSet *cset; + ++ + if (! hfp_init (argc, argv)) + goto out; + @@ -134,6 +125,8 @@ + bus = atoi (busstr); + addr = atoi (addrstr); + intf = atoi (intfstr); ++ ++ //g_message("bus:%d, addr=%d, intf=%d",bus,addr,intf); + if (intf != 0) + goto out; +