1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00

- 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
This commit is contained in:
Thomas Zander 2015-08-22 10:58:56 +00:00
parent f9ada829f2
commit 8808e82cae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395027
2 changed files with 8 additions and 15 deletions

View File

@ -4,7 +4,7 @@
PORTNAME= hal
DISTVERSION= 0.5.14
PORTREVISION= 29
PORTREVISION= 30
CATEGORIES= sysutils
MASTER_SITES= http://hal.freedesktop.org/releases/

View File

@ -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;
+